Bluetooth: hci0: command tx timeout
sysfs: cannot create duplicate filename '/devices/virtual/bluetooth/hci0/hci0:201'
CPU: 0 UID: 0 PID: 4666 Comm: kworker/u5:1 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: hci0 hci_rx_work
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
sysfs_warn_dup fs/sysfs/dir.c:30 [inline]
sysfs_create_dir_ns+0x259/0x280 fs/sysfs/dir.c:63
create_dir lib/kobject.c:73 [inline]
kobject_add_internal+0x59f/0xb40 lib/kobject.c:240
kobject_add_varg lib/kobject.c:374 [inline]
kobject_add+0x155/0x220 lib/kobject.c:426
device_add+0x408/0xb50 drivers/base/core.c:3627
hci_conn_add_sysfs+0xd5/0x1e0 net/bluetooth/hci_sysfs.c:48
le_conn_complete_evt+0xf39/0x1500 net/bluetooth/hci_event.c:5776
hci_le_conn_complete_evt+0x187/0x450 net/bluetooth/hci_event.c:5825
hci_event_func net/bluetooth/hci_event.c:7586 [inline]
hci_event_packet+0x78f/0x1200 net/bluetooth/hci_event.c:7643
hci_rx_work+0x46a/0xe80 net/bluetooth/hci_core.c:4099
process_one_work kernel/workqueue.c:3263 [inline]
process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
kobject: kobject_add_internal failed for hci0:201 with -EEXIST, don't try to register things with the same name in the same directory.
Bluetooth: hci0: failed to register connection device
Oops: general protection fault, probably for non-canonical address 0xdffffc000000004c: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000260-0x0000000000000267]
CPU: 0 UID: 0 PID: 4666 Comm: kworker/u5:1 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: hci0 hci_rx_work
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210
Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 e9 50 fb 23 09 cc 66 66 66 66 66 66 2e
RSP: 0018:ffffc9000fd07430 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff8920ac58 RCX: 7e159e07d875ea00
RDX: 0000000000000000 RSI: ffffffff8920ac58 RDI: 000000000000004c
RBP: ffffffff8a51e9ea R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffffff8a51e9a0 R12: 0000000000000000
R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f016b0389a0 CR3: 0000000011fa8000 CR4: 0000000000352ef0
Call Trace:
__kasan_check_byte+0x12/0x40 mm/kasan/common.c:579
kasan_check_byte include/linux/kasan.h:401 [inline]
lock_acquire+0x8d/0x360 kernel/locking/lockdep.c:5842
lock_sock_nested+0x48/0x100 net/core/sock.c:3720
lock_sock include/net/sock.h:1679 [inline]
l2cap_sock_new_connection_cb+0x4a/0x2b0 net/bluetooth/l2cap_sock.c:1476
l2cap_connect_cfm+0x37a/0x1040 net/bluetooth/l2cap_core.c:7288
hci_connect_cfm+0x95/0x140 include/net/bluetooth/hci_core.h:2107
le_conn_complete_evt+0xfb8/0x1500 net/bluetooth/hci_event.c:5799
hci_le_conn_complete_evt+0x187/0x450 net/bluetooth/hci_event.c:5825
hci_event_func net/bluetooth/hci_event.c:7586 [inline]
hci_event_packet+0x78f/0x1200 net/bluetooth/hci_event.c:7643
hci_rx_work+0x46a/0xe80 net/bluetooth/hci_core.c:4099
process_one_work kernel/workqueue.c:3263 [inline]
process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210
Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 e9 50 fb 23 09 cc 66 66 66 66 66 66 2e
RSP: 0018:ffffc9000fd07430 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff8920ac58 RCX: 7e159e07d875ea00
RDX: 0000000000000000 RSI: ffffffff8920ac58 RDI: 000000000000004c
RBP: ffffffff8a51e9ea R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffffff8a51e9a0 R12: 0000000000000000
R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f72ea4686b0 CR3: 00000000504c0000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
7: 00
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: 90 nop
13: 90 nop
14: 90 nop
15: 90 nop
16: 90 nop
17: 90 nop
18: 0f 1f 40 d6 nopl -0x2a(%rax)
1c: 48 c1 ef 03 shr $0x3,%rdi
20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
27: fc ff df
* 2a: 0f b6 04 07 movzbl (%rdi,%rax,1),%eax <-- trapping instruction
2e: 3c 08 cmp $0x8,%al
30: 0f 92 c0 setb %al
33: e9 50 fb 23 09 jmp 0x923fb88
38: cc int3
39: 66 data16
3a: 66 data16
3b: 66 data16
3c: 66 data16
3d: 66 data16
3e: 66 data16
3f: 2e cs