syzbot


INFO: trying to register non-static key in hci_uart_send_frame

Status: auto-closed as invalid on 2020/03/21 04:06
Reported-by: syzbot+0ffcf131a7f9b37ebcf3@syzkaller.appspotmail.com
First crash: 1588d, last: 1588d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in hci_uart_send_frame (2) 1 636d 636d 0/1 auto-obsoleted due to no activity on 2022/10/29 20:15
upstream INFO: trying to register non-static key in hci_uart_send_frame bluetooth 2 1806d 1855d 0/26 auto-closed as invalid on 2019/10/15 09:18
upstream INFO: trying to register non-static key in hci_uart_send_frame (3) bluetooth 24 517d 878d 0/26 closed as dup on 2022/08/29 15:41
upstream INFO: trying to register non-static key in hci_uart_send_frame (2) bluetooth 1 1489d 1487d 0/26 auto-closed as invalid on 2020/06/28 09:21

Sample crash report:
SELinux: unrecognized netlink message: protocol=6 nlmsg_type=29231 sclass=netlink_xfrm_socket pig=31770 comm=syz-executor.5
Bluetooth: hci0: command 0xfc11 tx timeout
Bluetooth: hci0: Entering manufacturer mode failed (-110)
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 1169 Comm: kworker/u5:0 Not tainted 4.19.85-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_cmd_work
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 assign_lock_key kernel/locking/lockdep.c:727 [inline]
 register_lock_class+0x19b5/0x1cf0 kernel/locking/lockdep.c:753
 __lock_acquire+0x154/0x49c0 kernel/locking/lockdep.c:3299
 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 hci_uart_send_frame+0x85/0x470 drivers/bluetooth/hci_ldisc.c:287
 hci_send_frame+0x1b0/0x2c0 net/bluetooth/hci_core.c:3475
 hci_cmd_work+0x165/0x2a0 net/bluetooth/hci_core.c:4393
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
kobject: 'loop4' (00000000b33a747d): kobject_uevent_env
kobject: 'loop4' (00000000b33a747d): fill_kobj_path: path = '/devices/virtual/block/loop4'
kobject: 'loop1' (00000000ff81558d): kobject_uevent_env
kobject: 'loop1' (00000000ff81558d): fill_kobj_path: path = '/devices/virtual/block/loop1'
kobject: 'loop3' (000000004a781b7a): kobject_uevent_env
kasan: CONFIG_KASAN_INLINE enabled
kobject: 'loop3' (000000004a781b7a): fill_kobj_path: path = '/devices/virtual/block/loop3'
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 31625 Comm: syz-executor.2 Not tainted 4.19.85-syzkaller #0
kobject: 'loop0' (0000000032714457): kobject_uevent_env
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_common+0xdf/0x610 kernel/sched/wait.c:85
Code: 05 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 48 39 7d d0 0f 84 64 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 0b 05 00 00 49 8b 40 18 89 55 b0 31 db 49 bc 00
RSP: 0018:ffff8880173d76e8 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880a7ab2db8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 1ffffffff1161ccc RDI: 0000000000000000
RBP: ffff8880173d7740 R08: ffffffffffffffe8 R09: ffff8880173d7798
R10: ffffed1014f565b7 R11: ffff8880a7ab2dbb R12: 0000000000000000
kobject: 'loop0' (0000000032714457): fill_kobj_path: path = '/devices/virtual/block/loop0'
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f06425e1700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000711158 CR3: 0000000087597000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __wake_up_common_lock+0xe9/0x190 kernel/sched/wait.c:121
 __wake_up+0xe/0x10 kernel/sched/wait.c:145
 rcu_sync_enter+0x1c7/0x310 kernel/rcu/sync.c:133
 percpu_down_write+0x61/0x437 kernel/locking/percpu-rwsem.c:143
 hci_uart_tty_close+0x13a/0x250 drivers/bluetooth/hci_ldisc.c:544
 tty_ldisc_close.isra.0+0xaf/0xe0 drivers/tty/tty_ldisc.c:486
 tty_ldisc_kill+0x4b/0xc0 drivers/tty/tty_ldisc.c:632
 tty_ldisc_release+0xc6/0x280 drivers/tty/tty_ldisc.c:799
 tty_release_struct+0x1b/0x50 drivers/tty/tty_io.c:1611
 tty_release+0xbcb/0xe90 drivers/tty/tty_io.c:1784
 __fput+0x2dd/0x8b0 fs/file_table.c:278
 ____fput+0x16/0x20 fs/file_table.c:309
 task_work_run+0x145/0x1c0 kernel/task_work.c:113
 get_signal+0x1baa/0x1fc0 kernel/signal.c:2389
 do_signal+0x95/0x1960 arch/x86/kernel/signal.c:821
 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45a639
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f06425e0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000045a639
RDX: 0000000000000009 RSI: 00000000400455c8 RDI: 000000000000000d
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f06425e16d4
R13: 00000000004c3634 R14: 00000000004d77e8 R15: 00000000ffffffff
Modules linked in:
---[ end trace 061c6f45dc03d06d ]---
RIP: 0010:__wake_up_common+0xdf/0x610 kernel/sched/wait.c:85
Code: 05 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 48 39 7d d0 0f 84 64 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 0b 05 00 00 49 8b 40 18 89 55 b0 31 db 49 bc 00
RSP: 0018:ffff8880173d76e8 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880a7ab2db8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 1ffffffff1161ccc RDI: 0000000000000000
RBP: ffff8880173d7740 R08: ffffffffffffffe8 R09: ffff8880173d7798
R10: ffffed1014f565b7 R11: ffff8880a7ab2dbb R12: 0000000000000000
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f06425e1700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000711158 CR3: 0000000087597000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/22 04:06 linux-4.19.y c63ee2939dc1 8098ea0f .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.