syzbot


INFO: trying to register non-static key in sco_sock_timeout (2)

Status: auto-obsoleted due to no activity on 2024/08/05 10:41
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+702262f0d6464cc55bd2@syzkaller.appspotmail.com
First crash: 391d, last: 221d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] INFO: trying to register non-static key in sco_sock_timeout (2) 0 (1) 2023/11/13 01:14
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in sco_sock_timeout 3 876d 928d 0/1 auto-obsoleted due to no activity on 2022/11/08 15:04
linux-4.14 INFO: trying to register non-static key in sco_sock_timeout 1 980d 980d 0/1 auto-closed as invalid on 2022/07/27 14:41
upstream INFO: trying to register non-static key in sco_sock_timeout bluetooth 2 955d 1001d 0/28 auto-closed as invalid on 2022/08/22 03:23

Sample crash report:
INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 0 PID: 11321 Comm: kworker/0:0 Not tainted 6.9.0-rc5-syzkaller-00296-g5eb4573ea63d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events sco_sock_timeout
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 assign_lock_key+0x238/0x270 kernel/locking/lockdep.c:976
 register_lock_class+0x1cf/0x980 kernel/locking/lockdep.c:1289
 __lock_acquire+0xda/0x1fd0 kernel/locking/lockdep.c:5014
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754
 lock_sock_nested+0x48/0x100 net/core/sock.c:3535
 lock_sock include/net/sock.h:1673 [inline]
 sco_sock_timeout+0xc1/0x240 net/bluetooth/sco.c:96
 process_one_work kernel/workqueue.c:3254 [inline]
 process_scheduled_works+0xa12/0x17c0 kernel/workqueue.c:3335
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416
 kthread+0x2f2/0x390 kernel/kthread.c:388
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 2cb7f067 P4D 2cb7f067 PUD 4c4eb067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 PID: 11321 Comm: kworker/0:0 Not tainted 6.9.0-rc5-syzkaller-00296-g5eb4573ea63d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events sco_sock_timeout
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc90009b8fb80 EFLAGS: 00010246
RAX: 1ffff1100fc3a496 RBX: 0000000000000001 RCX: ffffffff819d3d4c
RDX: dffffc0000000000 RSI: ffffffff8c1f7f80 RDI: ffff88807e1d2000
RBP: 0000000000000003 R08: ffffffff8fa8f9af R09: 1ffffffff1f51f35
R10: dffffc0000000000 R11: 0000000000000000 R12: ffff88807e1d2000
R13: dffffc0000000000 R14: ffff88807e1d2080 R15: ffff88806a0fc208
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000002de30000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 sco_sock_timeout+0x114/0x240 net/bluetooth/sco.c:98
 process_one_work kernel/workqueue.c:3254 [inline]
 process_scheduled_works+0xa12/0x17c0 kernel/workqueue.c:3335
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416
 kthread+0x2f2/0x390 kernel/kthread.c:388
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc90009b8fb80 EFLAGS: 00010246
RAX: 1ffff1100fc3a496 RBX: 0000000000000001 RCX: ffffffff819d3d4c
RDX: dffffc0000000000 RSI: ffffffff8c1f7f80 RDI: ffff88807e1d2000
RBP: 0000000000000003 R08: ffffffff8fa8f9af R09: 1ffffffff1f51f35
R10: dffffc0000000000 R11: 0000000000000000 R12: ffff88807e1d2000
R13: dffffc0000000000 R14: ffff88807e1d2080 R15: ffff88806a0fc208
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000002de30000 CR4: 0000000000350ef0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/27 10:40 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in sco_sock_timeout
2023/11/09 01:11 upstream 305230142ae0 df3908d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in sco_sock_timeout
2024/01/20 15:31 upstream 9d64bf433c53 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 INFO: trying to register non-static key in sco_sock_timeout
2024/01/20 00:33 upstream 9d1694dc91ce 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 INFO: trying to register non-static key in sco_sock_timeout
2024/02/14 23:55 net 9b23fceb4158 6a8ec742 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in sco_sock_timeout
* Struck through repros no longer work on HEAD.