Unverified Commit 488688e5 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9326 af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg

parents 1db6f4df 1a66d3b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1895,7 +1895,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
			goto out_err;
	}

	if (sk->sk_shutdown & SEND_SHUTDOWN)
	if (READ_ONCE(sk->sk_shutdown) & SEND_SHUTDOWN)
		goto pipe_err;

	while (sent < len) {