summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMatthieu Buffet <matthieu@buffet.re>2026-06-10 00:15:10 +0300
committerMickaël Salaün <mic@digikod.net>2026-06-14 00:15:03 +0300
commit0ce4243509d1580349dd0d50624036d6b097e958 (patch)
tree9e50d12f55d2f33a4f71661999461e54f8557a3b /include/linux/debugobjects.h
parent0302cd72fe196aee933e3fb76f6d175d1ab0e843 (diff)
downloadlinux-0ce4243509d1580349dd0d50624036d6b097e958.tar.xz
landlock: Fix unmarked concurrent access to socket family
Socket family is read (twice) in a context where the socket is not locked, so another thread can setsockopt(IPV6_ADDRFORM) to write it concurrently. Add needed READ_ONCE() annotation. Use the proper macro to access __sk_common.skc_family like everywhere else. Fixes: fff69fb03dde ("landlock: Support network rules with TCP bind and connect") Signed-off-by: Matthieu Buffet <matthieu@buffet.re> Link: https://patch.msgid.link/20260609211511.85630-1-matthieu@buffet.re Link: https://patch.msgid.link/20260609211511.85630-2-matthieu@buffet.re [mic: Squash two patches, move variable to ease backport, fix comment formatting] Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions