Bluetooth: hci0: command tx timeout
sysfs: cannot create duplicate filename '/devices/virtual/bluetooth/hci0/hci0:201'
CPU: 0 UID: 0 PID: 44 Comm: kworker/u5:0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: hci0 hci_rx_work
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
sysfs_warn_dup fs/sysfs/dir.c:30 [inline]
sysfs_create_dir_ns+0x271/0x2a0 fs/sysfs/dir.c:63
create_dir lib/kobject.c:73 [inline]
kobject_add_internal+0x62b/0xd00 lib/kobject.c:240
kobject_add_varg lib/kobject.c:374 [inline]
kobject_add+0x163/0x240 lib/kobject.c:426
device_add+0x408/0xb70 drivers/base/core.c:3629
hci_conn_add_sysfs+0xd5/0x210 net/bluetooth/hci_sysfs.c:48
le_conn_complete_evt+0x10e6/0x16b0 net/bluetooth/hci_event.c:5860
hci_le_conn_complete_evt+0x187/0x470 net/bluetooth/hci_event.c:5891
hci_event_func net/bluetooth/hci_event.c:7770 [inline]
hci_event_packet+0x659/0xef0 net/bluetooth/hci_event.c:7824
hci_rx_work+0x3ee/0x1040 net/bluetooth/hci_core.c:4077
process_one_work kernel/workqueue.c:3302 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466
kthread+0x388/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 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: 44 Comm: kworker/u5:0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: hci0 hci_rx_work
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210
Code: 79 ff ff ff 0f 1f 40 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 c3 cc cc cc cc cc 66 66 66 66 66 66 2e
RSP: 0018:ffffc900004674d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff89791171 RCX: 0000000080000001
RDX: 0000000000000000 RSI: ffffffff89791171 RDI: 000000000000004c
RBP: ffffffff8ab4550a R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffffff8ab454c0 R12: 0000000000000000
R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff88808c826000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa7d90027f0 CR3: 0000000012106000 CR4: 0000000000352ef0
Call Trace:
__kasan_check_byte+0x12/0x40 mm/kasan/common.c:573
kasan_check_byte include/linux/kasan.h:402 [inline]
lock_acquire+0x84/0x350 kernel/locking/lockdep.c:5842
lock_sock_nested+0x41/0x100 net/core/sock.c:3783
lock_sock include/net/sock.h:1713 [inline]
l2cap_sock_new_connection_cb+0x4a/0x2e0 net/bluetooth/l2cap_sock.c:1501
l2cap_connect_cfm+0x368/0x1560 net/bluetooth/l2cap_core.c:7410
hci_connect_cfm+0x95/0x140 include/net/bluetooth/hci_core.h:2139
le_conn_complete_evt+0x1134/0x16b0 net/bluetooth/hci_event.c:5865
hci_le_conn_complete_evt+0x187/0x470 net/bluetooth/hci_event.c:5891
hci_event_func net/bluetooth/hci_event.c:7770 [inline]
hci_event_packet+0x659/0xef0 net/bluetooth/hci_event.c:7824
hci_rx_work+0x3ee/0x1040 net/bluetooth/hci_core.c:4077
process_one_work kernel/workqueue.c:3302 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466
kthread+0x388/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 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: 79 ff ff ff 0f 1f 40 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 c3 cc cc cc cc cc 66 66 66 66 66 66 2e
RSP: 0018:ffffc900004674d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff89791171 RCX: 0000000080000001
RDX: 0000000000000000 RSI: ffffffff89791171 RDI: 000000000000004c
RBP: ffffffff8ab4550a R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffffff8ab454c0 R12: 0000000000000000
R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff88808c826000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbedb999d20 CR3: 0000000012ba4000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess), 4 bytes skipped:
0: 0f 1f 40 00 nopl 0x0(%rax)
4: 90 nop
5: 90 nop
6: 90 nop
7: 90 nop
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: 0f 1f 40 d6 nopl -0x2a(%rax)
18: 48 c1 ef 03 shr $0x3,%rdi
1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
23: fc ff df
* 26: 0f b6 04 07 movzbl (%rdi,%rax,1),%eax <-- trapping instruction
2a: 3c 08 cmp $0x8,%al
2c: 0f 92 c0 setb %al
2f: c3 ret
30: cc int3
31: cc int3
32: cc int3
33: cc int3
34: cc int3
35: 66 data16
36: 66 data16
37: 66 data16
38: 66 data16
39: 66 data16
3a: 66 data16
3b: 2e cs