Bug 219294

Summary: NULL dereference pointer in Bluetooth at boot
Product: Drivers Reporter: Christian Casteyde (casteyde.christian)
Component: BluetoothAssignee: linux-bluetooth (linux-bluetooth)
Status: NEW ---    
Severity: normal CC: js, pmenzel+bugzilla.kernel.org, regressions
Priority: P3    
Hardware: AMD   
OS: Linux   
Kernel Version: 6.11 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: lsusb output
lspci output

Description Christian Casteyde 2024-09-20 20:39:48 UTC
Created attachment 306904 [details]
lsusb output

Since Kernel 6.11 compiled from vanilla source, I get occasionnaly an Oops at boot on my Lenovo Slim 5.
This is a regression.

Kernel 6.11 / Slackware 64 (Slackware 15 + recent Mesa).
AMD 7840HS 16Go
When the problem occurs, the boot doesn't finish, but I got the following in syslog:
Sep 19 19:57:15 latile dnsmasq[924]: no servers found in /etc/dnsmasq.d/dnsmasq-resolv.conf, will retry
Sep 20 22:22:29 latile kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GP18.SATA], AE_NOT_FOUND (20240322/dswload2-162)
Sep 20 22:22:29 latile kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20240322/psobject-220)
Sep 20 22:22:29 latile kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6.WLAN._S0W], AE_ALREADY_EXISTS (20240322/dswload2-32
6)
Sep 20 22:22:29 latile kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20240322/psobject-220)
Sep 20 22:22:31 latile kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Sep 20 22:22:34 latile kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Sep 20 22:22:37 latile kernel: BUG: kernel NULL pointer dereference, address: 0000000000000000
Sep 20 22:22:37 latile kernel: #PF: supervisor read access in kernel mode
Sep 20 22:22:37 latile kernel: #PF: error_code(0x0000) - not-present page
Sep 20 22:22:37 latile kernel: Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
Sep 20 22:22:37 latile kernel: CPU: 2 UID: 0 PID: 153 Comm: kworker/2:1 Not tainted 6.11.0 #1
Sep 20 22:22:37 latile kernel: Hardware name: LENOVO 82Y9/LNVNB161216, BIOS M3CN42WW 01/11/2024
Sep 20 22:22:37 latile kernel: Workqueue: pm pm_runtime_work
Sep 20 22:22:37 latile kernel: RIP: 0010:btusb_suspend+0x14/0x1b0
Sep 20 22:22:37 latile kernel: Code: e4 10 00 83 80 d4 0a 00 00 01 eb db 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 0f 1f 44 00 00 41 54 55 53 48 8b 9f 
c8 00 00 00 <48> 8b 13 8b 82 bc 09 00 00 03 82 b8 09 00 00 03 82 c4 09 00 00 03
Sep 20 22:22:37 latile kernel: RSP: 0018:ffffbf1280b67ca0 EFLAGS: 00010206
Sep 20 22:22:37 latile kernel: RAX: ffffffffa62de3b0 RBX: 0000000000000000 RCX: 0000000000000002
Sep 20 22:22:37 latile kernel: RDX: 0000000000000003 RSI: 0000000000000402 RDI: ffff9bcc85e17000
Sep 20 22:22:37 latile kernel: RBP: ffff9bcc85e17000 R08: ffff9bcc8930e800 R09: ffff9bcc85e174b0
Sep 20 22:22:37 latile kernel: R10: 0000000000000003 R11: 0000000000000063 R12: 0000000000000402
Sep 20 22:22:37 latile kernel: R13: 0000000000000003 R14: 0000000000000000 R15: ffff9bcc8930e800
Sep 20 22:22:37 latile kernel: FS:  0000000000000000(0000) GS:ffff9bcfae480000(0000) knlGS:0000000000000000
Sep 20 22:22:37 latile kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 20 22:22:37 latile kernel: CR2: 0000000000000000 CR3: 000000035f82a000 CR4: 0000000000750ef0
Sep 20 22:22:37 latile kernel: PKRU: 55555554
Sep 20 22:22:37 latile kernel: Call Trace:
Sep 20 22:22:37 latile kernel:  <TASK>
Sep 20 22:22:37 latile kernel:  ? __die+0x23/0x70
Sep 20 22:22:37 latile kernel:  ? page_fault_oops+0x159/0x520
Sep 20 22:22:37 latile kernel:  ? exc_page_fault+0x404/0x740
Sep 20 22:22:37 latile kernel:  ? asm_exc_page_fault+0x26/0x30
Sep 20 22:22:37 latile kernel:  ? btusb_isoc_tx_complete+0x60/0x60
Sep 20 22:22:37 latile kernel:  ? btusb_suspend+0x14/0x1b0
Sep 20 22:22:37 latile kernel:  usb_suspend_both+0x94/0x280
Sep 20 22:22:37 latile kernel:  usb_runtime_suspend+0x2e/0x70
Sep 20 22:22:37 latile kernel:  ? usb_autoresume_device+0x50/0x50
Sep 20 22:22:37 latile kernel:  __rpm_callback+0x41/0x170
Sep 20 22:22:37 latile kernel:  ? usb_autoresume_device+0x50/0x50
Sep 20 22:22:37 latile kernel:  rpm_callback+0x55/0x60
Sep 20 22:22:37 latile kernel:  ? usb_autoresume_device+0x50/0x50
Sep 20 22:22:37 latile kernel:  rpm_suspend+0xe8/0x5e0
Sep 20 22:22:37 latile kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Sep 20 22:22:37 latile last message buffered 1 times
Sep 20 22:22:37 latile kernel:  ? finish_task_switch.isra.0+0x96/0x2a0
Sep 20 22:22:37 latile kernel:  __pm_runtime_suspend+0x3c/0xd0
Sep 20 22:22:37 latile kernel:  ? usb_runtime_resume+0x20/0x20
Sep 20 22:22:37 latile kernel:  usb_runtime_idle+0x35/0x40
Sep 20 22:22:37 latile kernel:  rpm_idle+0xbd/0x270
Sep 20 22:22:37 latile kernel:  pm_runtime_work+0x84/0xb0
Sep 20 22:22:37 latile kernel:  process_one_work+0x16d/0x380
Sep 20 22:22:37 latile kernel:  worker_thread+0x2cb/0x3e0
Sep 20 22:22:37 latile kernel:  ? _raw_spin_lock_irqsave+0x1b/0x50
Sep 20 22:22:37 latile kernel:  ? cancel_delayed_work_sync+0x80/0x80
Sep 20 22:22:37 latile kernel:  kthread+0xde/0x110
Sep 20 22:22:37 latile kernel:  ? kthread_park+0x90/0x90
Sep 20 22:22:37 latile kernel:  ret_from_fork+0x31/0x50
Sep 20 22:22:37 latile kernel:  ? kthread_park+0x90/0x90
Sep 20 22:22:37 latile kernel:  ret_from_fork_asm+0x11/0x20
Sep 20 22:22:37 latile kernel:  </TASK>
Sep 20 22:22:37 latile kernel: Modules linked in:
Sep 20 22:22:37 latile kernel: CR2: 0000000000000000
Sep 20 22:22:37 latile kernel: ---[ end trace 0000000000000000 ]---
Sep 20 22:22:37 latile kernel: RIP: 0010:btusb_suspend+0x14/0x1b0
Sep 20 22:22:37 latile kernel: Code: e4 10 00 83 80 d4 0a 00 00 01 eb db 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 0f 1f 44 00 00 41 54 55 53 48 8b 9f c8 00 00 00 <48> 8b 13 8b 82 bc 09 00 00 03 82 b8 09 00 00 03 82 c4 09 00 00 03
Sep 20 22:22:37 latile kernel: RSP: 0018:ffffbf1280b67ca0 EFLAGS: 00010206
Sep 20 22:22:37 latile kernel: RAX: ffffffffa62de3b0 RBX: 0000000000000000 RCX: 0000000000000002
Sep 20 22:22:37 latile kernel: RDX: 0000000000000003 RSI: 0000000000000402 RDI: ffff9bcc85e17000
Sep 20 22:22:37 latile kernel: RBP: ffff9bcc85e17000 R08: ffff9bcc8930e800 R09: ffff9bcc85e174b0
Sep 20 22:22:37 latile kernel: R10: 0000000000000003 R11: 0000000000000063 R12: 0000000000000402
Sep 20 22:22:37 latile kernel: R13: 0000000000000003 R14: 0000000000000000 R15: ffff9bcc8930e800
Sep 20 22:22:37 latile kernel: FS:  0000000000000000(0000) GS:ffff9bcfae480000(0000) knlGS:0000000000000000
Sep 20 22:22:37 latile kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 20 22:22:37 latile kernel: CR2: 0000000000000000 CR3: 000000035f82a000 CR4: 0000000000750ef0
Sep 20 22:22:37 latile kernel: PKRU: 55555554
Sep 20 22:22:42 latile kernel: warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
Sep 20 22:22:49 latile bluetoothd[810]: src/plugin.c:plugin_init() System does not support csip plugin
Sep 20 22:22:49 latile bluetoothd[810]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Sep 20 22:22:49 latile bluetoothd[810]: src/plugin.c:plugin_init() System does not support micp plugin
Sep 20 22:22:49 latile bluetoothd[810]: src/plugin.c:plugin_init() System does not support vcp plugin
Sep 20 22:22:49 latile bluetoothd[810]: src/plugin.c:plugin_init() System does not support mcp plugin
Sep 20 22:22:49 latile bluetoothd[810]: src/plugin.c:plugin_init() System does not support bass plugin
Sep 20 22:22:49 latile bluetoothd[810]: src/plugin.c:plugin_init() System does not support bap plugin
Sep 20 22:24:10 latile kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GP18.SATA], AE_NOT_FOUND (20240322/dswload2-162)
Sep 20 22:24:10 latile kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20240322/psobject-220)
Sep 20 22:24:10 latile kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6.WLAN._S0W], AE_ALREADY_EXISTS (20240322/dswload2-326)
Sep 20 22:24:10 latile kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20240322/psobject-220)
Sep 20 22:24:12 latile kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Sep 20 22:24:16 latile kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Sep 20 22:24:19 latile kernel: warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
Sep 20 22:24:25 latile bluetoothd[807]: src/plugin.c:plugin_init() System does not support csip plugin
Sep 20 22:24:25 latile bluetoothd[807]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Sep 20 22:24:25 latile bluetoothd[807]: src/plugin.c:plugin_init() System does not support micp plugin
Sep 20 22:24:25 latile bluetoothd[807]: src/plugin.c:plugin_init() System does not support vcp plugin
Sep 20 22:24:25 latile bluetoothd[807]: src/plugin.c:plugin_init() System does not support mcp plugin
Sep 20 22:24:25 latile bluetoothd[807]: src/plugin.c:plugin_init() System does not support bass plugin
Sep 20 22:24:25 latile bluetoothd[807]: src/plugin.c:plugin_init() System does not support bap plugin
Sep 20 22:24:25 latile kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Sep 20 22:24:26 latile bluetoothd[807]: Failed to set privacy: Rejected (0x0b)


Previously, I also got this Oops:

Sep 17 21:53:06 latile kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Sep 17 21:53:10 latile kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Sep 17 21:53:14 latile kernel: warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
Sep 17 21:53:22 latile bluetoothd[828]: src/plugin.c:plugin_init() System does not support csip plugin
Sep 17 21:53:22 latile bluetoothd[828]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Sep 17 21:53:22 latile bluetoothd[828]: src/plugin.c:plugin_init() System does not support micp plugin
Sep 17 21:53:22 latile bluetoothd[828]: src/plugin.c:plugin_init() System does not support vcp plugin
Sep 17 21:53:22 latile bluetoothd[828]: src/plugin.c:plugin_init() System does not support mcp plugin
Sep 17 21:53:22 latile bluetoothd[828]: src/plugin.c:plugin_init() System does not support bass plugin
Sep 17 21:53:22 latile bluetoothd[828]: src/plugin.c:plugin_init() System does not support bap plugin
Sep 17 21:53:23 latile bluetoothd[828]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Not Powered (0x0f)
Sep 17 21:53:23 latile kernel: Bluetooth: hci0: Execution of wmt command timed out
Sep 17 21:53:23 latile kernel: Bluetooth: hci0: Failed to send wmt func ctrl (-110)
Sep 17 21:53:23 latile kernel: Oops: general protection fault, probably for non-canonical address 0xdead000000000108: 0000 [#1] PREEMPT SMP NOPTI
Sep 17 21:53:23 latile kernel: CPU: 6 UID: 0 PID: 151 Comm: kworker/u65:0 Not tainted 6.11.0 #1
Sep 17 21:53:23 latile kernel: Hardware name: LENOVO 82Y9/LNVNB161216, BIOS M3CN42WW 01/11/2024
Sep 17 21:53:23 latile kernel: Workqueue: hci0 hci_cmd_sync_work
Sep 17 21:53:23 latile kernel: RIP: 0010:mgmt_pending_remove+0x10/0x40
Sep 17 21:53:23 latile kernel: Code: 00 be 03 00 00 00 48 89 d7 e8 cc 2b 26 ff eb d1 66 2e 0f 1f 84 00 00 00 00 00 66 0f 1f 00 0f 1f 44 00 00 48 8b 47 
08 48 8b 17 <48> 89 42 08 48 89 10 48 b8 00 01 00 00 00 00 ad de 48 89 07 48 83
Sep 17 21:53:23 latile kernel: RSP: 0018:ffffad1700b07df0 EFLAGS: 00010286
Sep 17 21:53:23 latile kernel: RAX: dead000000000122 RBX: ffff95410d16b780 RCX: 000000000000d816
Sep 17 21:53:23 latile kernel: RDX: dead000000000100 RSI: 0000000000035630 RDI: ffff95410d16b780
Sep 17 21:53:23 latile kernel: RBP: 00000000ffffffea R08: 0000000000280d00 R09: ffffffffae3e4ee3
Sep 17 21:53:23 latile kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffff95410b628000
Sep 17 21:53:23 latile kernel: R13: ffff95410b628010 R14: ffff954100f20820 R15: dead000000000100
Sep 17 21:53:23 latile kernel: FS:  0000000000000000(0000) GS:ffff95442e580000(0000) knlGS:0000000000000000
Sep 17 21:53:23 latile kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 17 21:53:23 latile kernel: CR2: 000000000c82ef90 CR3: 000000026a82a000 CR4: 0000000000750ef0
Sep 17 21:53:23 latile kernel: PKRU: 55555554
Sep 17 21:53:23 latile kernel: Call Trace:
Sep 17 21:53:23 latile kernel:  <TASK>
Sep 17 21:53:23 latile kernel:  ? die_addr+0x36/0x90
Sep 17 21:53:23 latile kernel:  ? exc_general_protection+0x217/0x420
Sep 17 21:53:23 latile kernel:  ? asm_exc_general_protection+0x26/0x30
Sep 17 21:53:23 latile kernel:  ? kmalloc_reserve+0x93/0x100
Sep 17 21:53:23 latile kernel:  ? mgmt_pending_remove+0x10/0x40
Sep 17 21:53:23 latile kernel:  mgmt_remove_adv_monitor_complete+0x78/0xb0
Sep 17 21:53:23 latile kernel:  hci_cmd_sync_work+0xaf/0xf0
Sep 17 21:53:23 latile kernel:  process_one_work+0x16d/0x380
Sep 17 21:53:23 latile kernel:  worker_thread+0x2cb/0x3e0
Sep 17 21:53:23 latile kernel:  ? cancel_delayed_work_sync+0x80/0x80
Sep 17 21:53:23 latile kernel:  kthread+0xde/0x110
Sep 17 21:53:23 latile kernel:  ? kthread_park+0x90/0x90
Sep 17 21:53:23 latile kernel:  ret_from_fork+0x31/0x50
Sep 17 21:53:23 latile kernel:  ? kthread_park+0x90/0x90
Sep 17 21:53:23 latile kernel:  ret_from_fork_asm+0x11/0x20
Sep 17 21:53:23 latile kernel:  </TASK>
Sep 17 21:53:23 latile kernel: Modules linked in:
Sep 17 21:53:23 latile kernel: ---[ end trace 0000000000000000 ]---
Sep 17 21:53:23 latile kernel: RIP: 0010:mgmt_pending_remove+0x10/0x40
Sep 17 21:53:23 latile kernel: Code: 00 be 03 00 00 00 48 89 d7 e8 cc 2b 26 ff eb d1 66 2e 0f 1f 84 00 00 00 00 00 66 0f 1f 00 0f 1f 44 00 00 48 8b 47 08 48 8b 17 <48> 89 42 08 48 89 10 48 b8 00 01 00 00 00 00 ad de 48 89 07 48 83
Sep 17 21:53:23 latile kernel: RSP: 0018:ffffad1700b07df0 EFLAGS: 00010286
Sep 17 21:53:23 latile kernel: RAX: dead000000000122 RBX: ffff95410d16b780 RCX: 000000000000d816
Sep 17 21:53:23 latile kernel: RDX: dead000000000100 RSI: 0000000000035630 RDI: ffff95410d16b780
Sep 17 21:53:23 latile kernel: RBP: 00000000ffffffea R08: 0000000000280d00 R09: ffffffffae3e4ee3
Sep 17 21:53:23 latile kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffff95410b628000
Sep 17 21:53:23 latile kernel: R13: ffff95410b628010 R14: ffff954100f20820 R15: dead000000000100
Sep 17 21:53:23 latile kernel: FS:  0000000000000000(0000) GS:ffff95442e5c0000(0000) knlGS:0000000000000000
Sep 17 21:53:23 latile kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 17 21:53:23 latile kernel: CR2: 00007f253beef5f0 CR3: 000000026a82a000 CR4: 0000000000750ef0
Sep 17 21:53:23 latile kernel: PKRU: 55555554
Sep 17 21:54:26 latile kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GP18.SATA], AE_NOT_FOUND (20240322/dswload2-162)
Sep 17 21:54:26 latile kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20240322/psobject-220)
Sep 17 21:54:26 latile kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6.WLAN._S0W], AE_ALREADY_EXISTS (20240322/dswload2-326)
Sep 17 21:54:26 latile kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20240322/psobject-220)
Sep 17 21:54:28 latile kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Sep 17 21:54:32 latile kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Sep 17 21:54:40 latile kernel: warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
Sep 17 21:54:50 latile bluetoothd[838]: src/plugin.c:plugin_init() System does not support csip plugin
Sep 17 21:54:50 latile bluetoothd[838]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Sep 17 21:54:50 latile bluetoothd[838]: src/plugin.c:plugin_init() System does not support micp plugin
Sep 17 21:54:50 latile bluetoothd[838]: src/plugin.c:plugin_init() System does not support vcp plugin
Sep 17 21:54:50 latile bluetoothd[838]: src/plugin.c:plugin_init() System does not support mcp plugin
Sep 17 21:54:50 latile bluetoothd[838]: src/plugin.c:plugin_init() System does not support bass plugin
Sep 17 21:54:50 latile bluetoothd[838]: src/plugin.c:plugin_init() System does not support bap plugin
Sep 17 21:54:51 latile kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Sep 17 21:54:51 latile bluetoothd[838]: Failed to set privacy: Rejected (0x0b)
Sep 17 21:54:51 latile dnsmasq[941]: no servers found in /etc/dnsmasq.d/dnsmasq-resolv.conf, will retry
Sep 17 21:54:51 latile acpid: input device has been disconnected, fd 22
Comment 1 Christian Casteyde 2024-09-20 20:40:20 UTC
Created attachment 306905 [details]
lspci output
Comment 2 The Linux kernel's regression tracker (Thorsten Leemhuis) 2024-09-25 13:54:18 UTC
Christian, I consider forwarding this by mail to the developers. Can I CC you when doing so? This would expose your email address to the public.

Also: I guess bisecting (https://docs.kernel.org/next/admin-guide/bug-bisect.html ) is not an option given the "occasionally" aspect?
Comment 3 Christian Casteyde 2024-09-25 15:05:36 UTC
Hello
Yes you can forward and Cc me.
The problem is effectively rare (got it twice only for now).
Best regards

⁣Télécharger BlueMail pour Android ​

Le 25 sept. 2024 à 15:54, à 15:54, bugzilla-daemon@kernel.org a écrit:
>https://bugzilla.kernel.org/show_bug.cgi?id=219294
>
>The Linux kernel's regression tracker (Thorsten Leemhuis)
>(regressions@leemhuis.info) changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>              CC|                            |regressions@leemhuis.info
>
>--- Comment #2 from The Linux kernel's regression tracker (Thorsten
>Leemhuis) (regressions@leemhuis.info) ---
>Christian, I consider forwarding this by mail to the developers. Can I
>CC you
>when doing so? This would expose your email address to the public.
>
>Also: I guess bisecting
>(https://docs.kernel.org/next/admin-guide/bug-bisect.html ) is not an
>option
>given the "occasionally" aspect?
>
>--
>You may reply to this email to add a comment.
>
>You are receiving this mail because:
>You reported the bug.
Comment 4 The Linux kernel's regression tracker (Thorsten Leemhuis) 2024-09-26 09:21:47 UTC
Forwarded: https://lore.kernel.org/regressions/af319b4c-2417-4f2f-85d0-e72d1c4fb2ac@leemhuis.info/T/#u
Comment 5 Julian Stecklina 2024-12-13 09:20:12 UTC
I also see this occasionally on boot on my Framework 13 laptop running Linux 6.12.3. The result is a hang after the GDM login screen and the user session doesn't start. I think it also happened on 6.12.1.

Dec 13 10:11:46 avalon kernel: Bluetooth: RFCOMM TTY layer initialized
Dec 13 10:11:46 avalon kernel: Bluetooth: RFCOMM socket layer initialized
Dec 13 10:11:46 avalon kernel: Bluetooth: RFCOMM ver 1.11
Dec 13 10:11:49 avalon kernel: BUG: kernel NULL pointer dereference, address: 0000000000000000
Dec 13 10:11:49 avalon kernel: #PF: supervisor read access in kernel mode
Dec 13 10:11:49 avalon kernel: #PF: error_code(0x0000) - not-present page
Dec 13 10:11:49 avalon kernel: PGD 0 P4D 0 
Dec 13 10:11:49 avalon kernel: Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
Dec 13 10:11:49 avalon kernel: CPU: 12 UID: 0 PID: 196 Comm: kworker/12:1 Not tainted 6.12.3 #1-NixOS
Dec 13 10:11:49 avalon kernel: Hardware name: Framework Laptop 13 (AMD Ryzen 7040Series)/FRANMDCP07, BIOS 03.05 03/29/2024
Dec 13 10:11:49 avalon kernel: Workqueue: pm pm_runtime_work
Dec 13 10:11:49 avalon kernel: RIP: 0010:btusb_suspend+0x161/0x200 [btusb]
Dec 13 10:11:49 avalon kernel: Code: 00 00 01 e9 fb fe ff ff 48 89 fa 48 c7 c6 3f f2 32 c2 48 c7 c7 58 a3 32 c2 e8 7b f6 c1 e0 81 e5 00 04 00 00 0f 84 c6 fe ff ff <48> 8b 13 8b 82 bc 09 00 00 03 82 b8 09 00 00 03 82 c4 09 00 00 03
Dec 13 10:11:49 avalon kernel: RSP: 0018:ffffae7ac066fca0 EFLAGS: 00010206
Dec 13 10:11:49 avalon kernel: RAX: ffffffffc2322a30 RBX: 0000000000000000 RCX: 0000000000000003
Dec 13 10:11:49 avalon kernel: RDX: ffff94f941331000 RSI: 0000000000000402 RDI: ffff94f941344800
Dec 13 10:11:49 avalon kernel: RBP: 0000000000000400 R08: 0000000000000000 R09: 0000000000000000
Dec 13 10:11:49 avalon kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000402
Dec 13 10:11:49 avalon kernel: R13: 0000000000000003 R14: 0000000000000000 R15: ffff94f954df0000
Dec 13 10:11:49 avalon kernel: FS:  0000000000000000(0000) GS:ffff95009e600000(0000) knlGS:0000000000000000
Dec 13 10:11:49 avalon kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Dec 13 10:11:49 avalon kernel: CR2: 0000000000000000 CR3: 0000000036e22000 CR4: 0000000000f50ef0
Dec 13 10:11:49 avalon kernel: PKRU: 55555554
Dec 13 10:11:49 avalon kernel: Call Trace:
Dec 13 10:11:49 avalon kernel:  <TASK>
Dec 13 10:11:49 avalon kernel:  ? __die+0x23/0x80
Dec 13 10:11:49 avalon kernel:  ? page_fault_oops+0x173/0x5b0
Dec 13 10:11:49 avalon kernel:  ? page_counter_uncharge+0x21/0x50
Dec 13 10:11:49 avalon kernel:  ? exc_page_fault+0x71/0x160
Dec 13 10:11:49 avalon kernel:  ? asm_exc_page_fault+0x26/0x30
Dec 13 10:11:49 avalon kernel:  ? __pfx_btusb_suspend+0x10/0x10 [btusb]
Dec 13 10:11:49 avalon kernel:  ? btusb_suspend+0x161/0x200 [btusb]
Dec 13 10:11:49 avalon kernel:  usb_suspend_both+0x94/0x290
Dec 13 10:11:49 avalon kernel:  usb_runtime_suspend+0x2e/0x80
Dec 13 10:11:49 avalon kernel:  ? __pfx_usb_runtime_suspend+0x10/0x10
Dec 13 10:11:49 avalon kernel:  __rpm_callback+0x41/0x170
Dec 13 10:11:49 avalon kernel:  ? __pfx_usb_runtime_suspend+0x10/0x10
Dec 13 10:11:49 avalon kernel:  rpm_callback+0x59/0x70
Dec 13 10:11:49 avalon kernel:  ? __pfx_usb_runtime_suspend+0x10/0x10
Dec 13 10:11:49 avalon kernel:  rpm_suspend+0xe8/0x5e0
Dec 13 10:11:49 avalon kernel:  ? psi_task_switch+0xfb/0x200
Dec 13 10:11:49 avalon kernel:  ? finish_task_switch.isra.0+0x9c/0x2f0
Dec 13 10:11:49 avalon kernel:  __pm_runtime_suspend+0x3c/0xd0
Dec 13 10:11:49 avalon kernel:  ? __pfx_usb_runtime_idle+0x10/0x10
Dec 13 10:11:49 avalon kernel:  usb_runtime_idle+0x39/0x50
Dec 13 10:11:49 avalon kernel:  rpm_idle+0xbd/0x280
Dec 13 10:11:49 avalon kernel:  pm_runtime_work+0x84/0xb0
Dec 13 10:11:49 avalon kernel:  process_one_work+0x18f/0x3b0
Dec 13 10:11:49 avalon kernel:  worker_thread+0x230/0x340
Dec 13 10:11:49 avalon kernel:  ? __pfx_worker_thread+0x10/0x10
Dec 13 10:11:49 avalon kernel:  ? __pfx_worker_thread+0x10/0x10
Dec 13 10:11:49 avalon kernel:  kthread+0xcd/0x100
Dec 13 10:11:49 avalon kernel:  ? __pfx_kthread+0x10/0x10
Dec 13 10:11:49 avalon kernel:  ret_from_fork+0x31/0x50
Dec 13 10:11:49 avalon kernel:  ? __pfx_kthread+0x10/0x10
Dec 13 10:11:49 avalon kernel:  ret_from_fork_asm+0x1a/0x30
Dec 13 10:11:49 avalon kernel:  </TASK>
Dec 13 10:11:49 avalon kernel: Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq qrtr cmac algif_hash algif_skcipher af_alg af_packet xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bnep msr nls_>
Dec 13 10:11:49 avalon kernel:  hid_sensor_trigger snd_rpl_pci_acp6x snd_hda_intel industrialio_triggered_buffer kfifo_buf snd_acp_pci hid_sensor_iio_common snd_intel_dspcfg sch_fq_codel cros_ec_dev industrialio snd_usb_audio spd5118 snd_intel_sdw_acpi snd_acp_legacy_common cfg80211 uvcvideo sp5100_tco snd_hda_codec>
Dec 13 10:11:49 avalon kernel:  tpm_tis i2c_hid_acpi tpm_tis_core tap button i2c_hid macvlan evdev mac_hid amd_pmc serio_raw bridge stp llc kvm_amd ccp kvm fuse efi_pstore configfs nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress efivarfs dmi_sysfs ip_tables x_tables autofs4 xfs libcrc32c crc32>
Dec 13 10:11:49 avalon kernel: CR2: 0000000000000000
Dec 13 10:11:49 avalon kernel: ---[ end trace 0000000000000000 ]---
Comment 7 Christian Casteyde 2024-12-20 17:40:59 UTC
Le vendredi 13 décembre 2024, 10:29:57 CET bugzilla-daemon@kernel.org a 
écrit :
> https://bugzilla.kernel.org/show_bug.cgi?id=219294
> 
> Paul Menzel (pmenzel+bugzilla.kernel.org@molgen.mpg.de) changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> CC|                            |pmenzel+bugzilla.kernel.org
>                    |                            |@molgen.mpg.de
> 
> --- Comment #6 from Paul Menzel (pmenzel+bugzilla.kernel.org@molgen.mpg.de)
> ---
> Luiz responded [1]:
> > I suspect this has been fixed recently:
> > 
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.g
> > it/commit/?id=6f3f7e9414834fc4210a2d11ff6172031e98d9ff
> Does this commit fix the issue for you?
> 
> [1]:
> https://lore.kernel.org/all/CABBYNZJJ+28EvyEvDsVzZv6ZbZLhSkZ-tuDckAvNfR_=qCK
> VMw@mail.gmail.com/#t

I didn't managed to apply the patch on 6.12.6.
There was rejects I fixed manually, but it doesn't build with the following 
error:
drivers/bluetooth/btusb.c: Dans la fonction « btusb_probe »:
drivers/bluetooth/btusb.c:3862:21: erreur: « struct btusb_data » n'a pas de 
membre nommé « disconnect »
 3862 |                 data->disconnect = btusb_mtk_disconnect;

The commit doesn't contains header diff.