Control: reassign -1 src:linux 6.1.192-2
Control: reassign 1154123 src:linux 6.1.192-1

Reassigning to src:linux, as the linux-image-6.1.0-5x-amd64 packages have
no maintainer in the BTS and the kernel team may not have seen this.
#1154123 reports the same call trace.

I see the same crash on different hardware. The full oops from 6.1.192-2
is attached.

 - Good: 6.1.190-1 (6.1.0-54)
 - Bad: 6.1.192-1 (6.1.0-55) and 6.1.192-2 (6.1.0-56), always reproducible
 - Trace: list_del corruption (LIST_POISON2) in hci_chan_del <-
   l2cap_chan_put <- l2cap_sock_release
 - bluetoothd gets SIGSEGV, systemd restarts it and the BUG repeats about
   every 7 seconds (83 oopses in 19 minutes on 6.1.0-55). After a few dozen
   oopses the whole system froze and only SysRq REISUB recovered it.
 - It triggers a few seconds after bluetoothd starts, or as soon as a
   paired headset connects.

Hardware / software:
 - Dell Precision M6600, BIOS A18
 - TP-Link UB500 USB dongle (2357:0604, Realtek RTL8761BU), btusb/btrtl
 - JBL TUNE510BT headset (A2DP)
 - bluez 5.66-1+deb12u2, PipeWire + WirePlumber
 - Tainted OE only by the out-of-tree evdi module (DisplayLink dock)

The upstream 6.1.192 changelog has no Bluetooth commits, so the regression
probably came in with 6.1.191. Candidates from that release, touching the
code in the trace:
 - Bluetooth: hci_core: Serialize ACL scheduling with channel deletion
 - Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn
 - Bluetooth: L2CAP: access chan->conn safely in get/setsockopt
 - Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd
I have not bisected this, so the list is only a guess.
list_del corruption, ffff8a4952bd8740->prev is LIST_POISON2 (dead000000000122)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:56!
invalid opcode: 0000 [#1] PREEMPT SMP PTI
CPU: 3 PID: 7584 Comm: bluetoothd Tainted: G           OE      6.1.0-56-amd64 
#1  Debian 6.1.192-2
Hardware name: Dell Inc. Precision M6600/04YY4M, BIOS A18 09/14/2018
RIP: 0010:__list_del_entry_valid.cold+0x4b/0x6f
Code: fe ff 0f 0b 48 89 f2 48 89 fe 48 c7 c7 40 b5 9a b4 e8 8a 9a fe ff 0f 0b 
48 89 fe 48 89 ca 48 c7 c7 08 b5 9a b4 e8 76 9a fe ff <0f> 0b 48 89 fe 48 c7 c7 
d0 b4 9a b4 e8 65 9a fe ff 0f 0b 48 89 fe
RSP: 0018:ffffccec098cfcb0 EFLAGS: 00010246
RAX: 000000000000004e RBX: ffff8a4952bd8740 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8a499dae03e0 RDI: ffff8a499dae03e0
RBP: ffff8a4683668800 R08: 0000000000000000 R09: ffffccec098cfb48
R10: 0000000000000003 R11: ffffffffb50d4448 R12: 0000000000000000
R13: ffff8a47f80932f0 R14: ffff8a47f8097e18 R15: 0000000000000000
FS:  00007f6276e56800(0000) GS:ffff8a499dac0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000357a273d000 CR3: 00000003a81b0002 CR4: 00000000000606e0
Call Trace:
 <TASK>
 hci_chan_del+0x18/0x90 [bluetooth]
 l2cap_chan_put+0x106/0x130 [bluetooth]
 l2cap_sock_release+0xca/0x100 [bluetooth]
 __sock_release+0x3d/0xb0
 sock_close+0x11/0x20
 __fput+0x93/0x250
 task_work_run+0x59/0x90
 exit_to_user_mode_prepare+0x23d/0x240
 syscall_exit_to_user_mode+0x17/0x40
 do_syscall_64+0x69/0xb0
 ? __x64_sys_poll+0x4a/0x140
 ? exit_to_user_mode_prepare+0x44/0x240
 ? syscall_exit_to_user_mode+0x1e/0x40
 ? do_syscall_64+0x69/0xb0
 ? exit_to_user_mode_prepare+0x44/0x240
 ? sock_getsockopt+0x1e/0x30
 ? __sys_getsockopt+0x1b6/0x1e0
 ? exit_to_user_mode_prepare+0x44/0x240
 ? syscall_exit_to_user_mode+0x1e/0x40
 ? do_syscall_64+0x69/0xb0
 ? syscall_exit_to_user_mode+0x1e/0x40
 ? do_syscall_64+0x69/0xb0
 ? syscall_exit_to_user_mode+0x1e/0x40
 ? do_syscall_64+0x69/0xb0
 ? do_syscall_64+0x69/0xb0
 entry_SYSCALL_64_after_hwframe+0x6e/0xd8
RIP: 0033:0x7f627747c9f0
Code: 0d 00 00 00 eb b2 e8 0f f8 01 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 
00 00 80 3d f1 2b 0e 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 
c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
RSP: 002b:00007fffda51af18 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 000055dc44ec5b80 RCX: 00007f627747c9f0
RDX: 0000000000000004 RSI: 0000000000000001 RDI: 0000000000000024
RBP: 000055dc44ea0610 R08: 00007fffda51af70 R09: 00007f62777fc2c0
R10: 00007fffda51af6c R11: 0000000000000202 R12: 000055dc44eb1240
R13: 000055dc44ec5b80 R14: 00007f627776d0b0 R15: 000055dc44ec5c40
 </TASK>
Modules linked in: cmac algif_hash algif_skcipher af_alg rfcomm bnep ccm 
xt_connmark xt_mark snd_seq_dummy xt_CHECKSUM snd_hrtimer snd_seq xt_MASQUERADE 
nft_chain_nat nf_nat tun bridge stp llc ip6t_REJECT nf_reject_ipv6 xt_hl qrtr 
ip6_tables ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog nft_limit 
xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 
nf_defrag_ipv4 nft_compat nf_tables nfnetlink binfmt_misc intel_rapl_msr 
intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp btusb 
kvm_intel btrtl btbcm btintel btmtk kvm bluetooth irqbypass iwldvm 
ghash_clmulni_intel sha256_ssse3 sha1_ssse3 mac80211 sha3_generic 
jitterentropy_rng snd_hda_codec_idt snd_hda_codec_generic mei_wdt snd_usb_audio 
mei_hdcp dell_rbtn snd_hda_codec_hdmi dell_laptop dell_wmi ledtrig_audio 
sparse_keymap sha512_ssse3 libarc4 snd_hda_intel snd_usbmidi_lib sha512_generic 
snd_intel_dspcfg aesni_intel snd_intel_sdw_acpi snd_hda_codec snd_rawmidi 
crypto_simd snd_seq_device
 cryptd ctr iwlwifi dell_smbios snd_hda_core rapl iTCO_wdt mc drbg 
intel_pmc_bxt snd_hwdep intel_cstate dcdbas dell_smm_hwmon cfg80211 
intel_uncore at24 pcspkr wmi_bmof dell_wmi_descriptor ansi_cprng ecdh_generic 
cdc_acm snd_pcm iTCO_vendor_support ecc mei_me watchdog rfkill snd_timer mei 
snd soundcore dell_smo8800 ac joydev evdev serio_raw cdc_mbim cdc_wdm sg 
firewire_sbp2 msr i2c_dev evdi(OE) parport_pc ppdev lp parport fuse dm_mod loop 
efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 btrfs 
blake2b_generic zstd_compress raid10 raid456 async_raid6_recov async_memcpy 
async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 
multipath linear md_mod bochs drm_vram_helper amdgpu gpu_sched drm_buddy sd_mod 
t10_pi cdc_ncm crc64_rocksoft cdc_ether crc64 crc_t10dif usbnet 
crct10dif_generic hid_generic mii usbhid hid radeon i2c_algo_bit 
drm_display_helper cec ahci rc_core libahci drm_ttm_helper ttm libata xhci_pci 
drm_kms_helper xhci_hcd
 ehci_pci ehci_hcd sdhci_pci firewire_ohci cqhci crct10dif_pclmul scsi_mod 
crct10dif_common i2c_i801 firewire_core sdhci psmouse drm crc32_pclmul usbcore 
crc32c_intel e1000e mmc_core i2c_smbus scsi_common lpc_ich crc_itu_t usb_common 
battery video wmi button
---[ end trace 0000000000000000 ]---

Reply via email to