Confirming this regression on an additional machine. Not a laptop, no audio
device involved. This is a desktop with a Bluetooth HID mouse.
Hardware
ASUS ROG STRIX B450-F GAMING, BIOS 3003, AMD Ryzen (kvm_amd)
08:00.0 Network controller [0280]: Intel Wi-Fi 6 AX200 [8086:2723] (rev
1a)
Subsystem: Intel Corporation Wi-Fi 6 AX200NGW [8086:0084]
Kernel driver in use: iwlwifi
Bus 001 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Paired device: Logitech MX Master 3 (Bluetooth HID), not A2DP.
Kernel
6.1.0-56-amd64 (6.1.192-2), Debian 6.1.192-2
Symptom
list_del corruption, ...->prev is LIST_POISON2 (dead000000000122)
kernel BUG at lib/list_debug.c:56!
invalid opcode: 0000 [#15] PREEMPT SMP NOPTI
CPU: 9 PID: 6678 Comm: bluetoothd Tainted: P D OE
RIP: 0010:__list_del_entry_valid.cold+0x4b/0x6f
Preceded by: Bluetooth: hci0: Bad flag given (0x1) vs supported (0x0)
Repeats every ~7.3 s as systemd restarts bluetoothd. 37 occurrences
this boot.
Scale, and the hang
The previous boot (journalctl -k -b -1) logged 8973 occurrences of
'list_del corruption' / 'NULL pointer'. At the ~7 s cadence that is
roughly 18 hours of oopses in a single boot. It did not reach the
10000 oops_limit panic; instead shutdown hung:
rfkill: input handler enabled
EXT4-fs (nvme0n1p2): unmounting filesystem.
watchdog: watchdog0: watchdog did not stop!
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
System had to be power-cycled. Matches the report from Gustav Meyer
(#9999 oopses, then hung until power button).
Timing detail possibly relevant to triage
The first BUG fires ~9 s after bluetoothd starts, before the mouse
connects (hci0: Bad flag -> BUG, HID attaches a few seconds later).
So the trigger is not device- or profile-specific; a bare L2CAP socket
close on connect appears sufficient. No A2DP/headset present on this
machine at all.
Regression window
6.1.191 introduced 967473b1e8bb ("Bluetooth: L2CAP: Fix
slab-use-after-free
Read in l2cap_send_cmd", upstream b4f82f9ed43a), which moved
hci_chan_del() from l2cap_conn_del() into l2cap_conn_free() (kref
destructor). The follow-up restoring the original placement
(ab4eedb790ca) did not reach 6.1.y, as 6.1.y took the two commits in
the opposite order. The channel is now unlinked concurrently with
hci_conn_cleanup() -> hci_chan_list_flush(), giving the second delete
and LIST_POISON2. Mainline, 6.12 and 6.18 are unaffected.
6.1.190 and 6.1.0-54 are clean on this hardware (confirmed by other
reporters and consistent with the above).
Workaround in use: bluetooth.service disabled and masked.
No fixed package in bookworm-security yet (still 6.1.192-2).
Happy to test a rebuilt lib/list_debug or bluetooth module if useful.
--
Christopher Tastad
<[email protected]>
Mobile: 612-817-7989 <(612)%20817-7989>