syzbot


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

Status: auto-obsoleted due to no activity on 2023/01/07 15:36
Reported-by: syzbot+1374c12167a7a516a39c@syzkaller.appspotmail.com
First crash: 594d, last: 594d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: trying to register non-static key in hci_uart_tty_receive bluetooth 1 1701d 1700d 0/26 auto-closed as invalid on 2019/10/28 14:58
linux-4.19 INFO: trying to register non-static key in hci_uart_tty_receive 1 1828d 1828d 0/1 auto-closed as invalid on 2019/10/22 04:49
upstream INFO: trying to register non-static key in hci_uart_tty_receive (2) bluetooth 1 1612d 1608d 0/26 auto-closed as invalid on 2020/03/26 00:10
upstream INFO: trying to register non-static key in hci_uart_tty_receive (3) bluetooth 12 579d 916d 0/26 closed as dup on 2022/08/29 15:45

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: 1315 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 assign_lock_key kernel/locking/lockdep.c:728 [inline]
 register_lock_class+0xe82/0x11c0 kernel/locking/lockdep.c:754
 __lock_acquire+0x17d/0x3ff0 kernel/locking/lockdep.c:3304
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 hci_uart_tty_receive+0xc6/0x530 drivers/bluetooth/hci_ldisc.c:611
 tiocsti drivers/tty/tty_io.c:2193 [inline]
 tty_ioctl+0x1026/0x1630 drivers/tty/tty_io.c:2580
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f05edf1a3c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f05ec80b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f05ee02d2c0 RCX: 00007f05edf1a3c9
RDX: 00000000200000c0 RSI: 0000000000005412 RDI: 0000000000000003
RBP: 00007f05edf7533f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffddd9b3e8f R14: 00007f05ec80b300 R15: 0000000000022000
EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue
audit: type=1800 audit(1662737770.526:1435): pid=1338 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="loop5" ino=861 res=0
attempt to access beyond end of device
loop5: rw=2049, want=128, limit=16
Bluetooth: hci6: Frame reassembly failed (-84)
audit: type=1800 audit(1662737770.806:1436): pid=1377 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="loop5" ino=862 res=0
Bluetooth: hci9: Frame reassembly failed (-84)
Bluetooth: hci9: Frame reassembly failed (-84)
attempt to access beyond end of device
loop5: rw=2049, want=128, limit=16
EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue
Bluetooth: hci6: command 0x1003 tx timeout
Bluetooth: hci6: sending frame failed (-49)
Bluetooth: hci9: command 0x1003 tx timeout
Bluetooth: hci9: sending frame failed (-49)
Bluetooth: hci6: command 0x1001 tx timeout
Bluetooth: hci6: sending frame failed (-49)
Bluetooth: hci9: command 0x1001 tx timeout
Bluetooth: hci9: sending frame failed (-49)
Bluetooth: hci6: command 0x1009 tx timeout
Bluetooth: hci9: command 0x1009 tx timeout

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/09 15:36 linux-4.19.y 3f8a27f9e27b 90058bdc .config console log report info ci2-linux-4-19 INFO: trying to register non-static key in hci_uart_tty_receive
* Struck through repros no longer work on HEAD.