Linux Kernel Mentees list
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Bluetooth: Fix data-race on dst/src in connect paths
@ 2026-05-29 17:33 SeungJu Cheon
  2026-05-29 17:33 ` [PATCH v1 1/2] Bluetooth: ISO: Fix data-race on iso_pi fields in hci_get_route calls SeungJu Cheon
  2026-05-29 17:33 ` [PATCH v1 2/2] Bluetooth: SCO: Fix data-race on dst in sco_connect SeungJu Cheon
  0 siblings, 2 replies; 3+ messages in thread
From: SeungJu Cheon @ 2026-05-29 17:33 UTC (permalink / raw)
  To: marcel, luiz.dentz
  Cc: linux-bluetooth, linux-kernel, me, skhan, linux-kernel-mentees,
	SeungJu Cheon

Two KCSAN-reported data races on socket address fields passed to
hci_get_route() without proper synchronization.

Patch 1/2 fixes ISO: iso_connect_bis(), iso_connect_cis(),
iso_listen_bis(), and iso_conn_big_sync() read iso_pi(sk)->dst/src
without lock_sock before calling hci_get_route().

Patch 2/2 fixes SCO: sco_connect() reads sco_pi(sk)->dst after
lock_sock has been released by the caller.

Both races were confirmed with KCSAN using VHCI-based reproducers.

SeungJu Cheon (2):
  Bluetooth: ISO: Fix data-race on iso_pi fields in hci_get_route calls
  Bluetooth: SCO: Fix data-race on dst in sco_connect

 net/bluetooth/iso.c | 51 ++++++++++++++++++++++++++++++++++-----------
 net/bluetooth/sco.c | 11 +++++++---
 2 files changed, 47 insertions(+), 15 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-29 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-29 17:33 [PATCH v1 0/2] Bluetooth: Fix data-race on dst/src in connect paths SeungJu Cheon
2026-05-29 17:33 ` [PATCH v1 1/2] Bluetooth: ISO: Fix data-race on iso_pi fields in hci_get_route calls SeungJu Cheon
2026-05-29 17:33 ` [PATCH v1 2/2] Bluetooth: SCO: Fix data-race on dst in sco_connect SeungJu Cheon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox