Commit b6049b9a authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

net/packet: convert po->auxdata to an atomic flag

stable inclusion
from stable-v5.10.180
commit 05c6db12aece625cd5de696c8b036c55d4ef8290
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=05c6db12aece625cd5de696c8b036c55d4ef8290



--------------------------------

[ Upstream commit fd53c297 ]

po->auxdata can be read while another thread
is changing its value, potentially raising KCSAN splat.

Convert it to PACKET_SOCK_AUXDATA flag.

Fixes: 8dc41944 ("[PACKET]: Add optional checksum computation for recvmsg")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ea20d936
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment