]> git.baikalelectronics.ru Git - kernel.git/commit
net: annotate sk->sk_err write from do_recvmmsg()
authorEric Dumazet <edumazet@google.com>
Tue, 9 May 2023 16:35:53 +0000 (16:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:01 +0000 (12:44 +0100)
commit2b6642f09a2a8ba326a82e77c27f43d740643037
treec141ce8403775c16737b6bb230bfd644fb50119c
parenta7b4cb04572dcea6bb9d5ba65b3fe330e658389c
net: annotate sk->sk_err write from do_recvmmsg()

[ Upstream commit e05a5f510f26607616fecdd4ac136310c8bea56b ]

do_recvmmsg() can write to sk->sk_err from multiple threads.

As said before, many other points reading or writing sk_err
need annotations.

Fixes: b054cf52e1b8 ("net: Fix use after free in the recvmmsg exit path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/socket.c