acrn-kernel/net/bluetooth
Eric Dumazet 9257a1d6f2 net: annotate data-races around sk->sk_lingertime
[ Upstream commit bc1fb82ae1 ]

sk_getsockopt() runs locklessly. This means sk->sk_lingertime
can be read while other threads are changing its value.

Other reads also happen without socket lock being held,
and must be annotated.

Remove preprocessor logic using BITS_PER_LONG, compilers
are smart enough to figure this by themselves.

v2: fixed a clang W=1 (-Wtautological-constant-out-of-range-compare) warning
    (Jakub)

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:33 +02:00
..
bnep
cmtp
hidp
rfcomm
6lowpan.c
Kconfig
Makefile
a2mp.c
a2mp.h
af_bluetooth.c
amp.c
amp.h
aosp.c
aosp.h
ecdh_helper.c
ecdh_helper.h
eir.c
eir.h
hci_codec.c
hci_codec.h
hci_conn.c
hci_core.c Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_add_adv_monitor() 2023-09-13 09:42:32 +02:00
hci_debugfs.c
hci_debugfs.h
hci_event.c
hci_request.c
hci_request.h
hci_sock.c
hci_sync.c
hci_sysfs.c
iso.c net: annotate data-races around sk->sk_lingertime 2023-09-13 09:42:33 +02:00
l2cap_core.c Bluetooth: L2CAP: Fix use-after-free 2023-08-23 17:52:25 +02:00
l2cap_sock.c
leds.c
leds.h
lib.c
mgmt.c Bluetooth: MGMT: Use correct address for memcpy() 2023-08-23 17:52:27 +02:00
mgmt_config.c
mgmt_config.h
mgmt_util.c
mgmt_util.h
msft.c
msft.h
sco.c net: annotate data-races around sk->sk_lingertime 2023-09-13 09:42:33 +02:00
selftest.c
selftest.h
smp.c
smp.h