diff options
| author | Matthieu Buffet <matthieu@buffet.re> | 2026-06-10 00:15:10 +0300 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-06-14 00:15:03 +0300 |
| commit | 0ce4243509d1580349dd0d50624036d6b097e958 (patch) | |
| tree | 9e50d12f55d2f33a4f71661999461e54f8557a3b /include/linux/timerqueue.h | |
| parent | 0302cd72fe196aee933e3fb76f6d175d1ab0e843 (diff) | |
| download | linux-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/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
