kobject_add_internal failed for hci4:201 with -EEXIST, don't try to register things with the same name in the same directory. Bluetooth: hci4: failed to register connection device ================================================================== BUG: KASAN: wild-memory-access in instrument_atomic_read include/linux/instrumented.h:72 [inline] BUG: KASAN: wild-memory-access in atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] BUG: KASAN: wild-memory-access in l2cap_chan_lock include/net/bluetooth/l2cap.h:863 [inline] BUG: KASAN: wild-memory-access in l2cap_conn_ready net/bluetooth/l2cap_core.c:1782 [inline] BUG: KASAN: wild-memory-access in l2cap_connect_cfm+0x530/0xe10 net/bluetooth/l2cap_core.c:8336 Read of size 4 at addr deacfffffffffc84 by task kworker/u5:6/4310 CPU: 1 PID: 4310 Comm: kworker/u5:6 Not tainted 6.1.124-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: hci4 hci_rx_work Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_report+0xe4/0x4c0 mm/kasan/report.c:430 kasan_report+0xd4/0x130 mm/kasan/report.c:531 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:189 __kasan_check_read+0x2c/0x3c mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:72 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] l2cap_chan_lock include/net/bluetooth/l2cap.h:863 [inline] l2cap_conn_ready net/bluetooth/l2cap_core.c:1782 [inline] l2cap_connect_cfm+0x530/0xe10 net/bluetooth/l2cap_core.c:8336 hci_connect_cfm+0x120/0x1d0 include/net/bluetooth/hci_core.h:1809 le_conn_complete_evt+0xa88/0xfe0 net/bluetooth/hci_event.c:5864 hci_le_conn_complete_evt+0x114/0x404 net/bluetooth/hci_event.c:5890 hci_le_meta_evt+0x2b8/0x47c net/bluetooth/hci_event.c:7059 hci_event_func net/bluetooth/hci_event.c:7370 [inline] hci_event_packet+0x6f8/0x109c net/bluetooth/hci_event.c:7425 hci_rx_work+0x310/0xa84 net/bluetooth/hci_core.c:4086 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 ================================================================== Unable to handle kernel paging request at virtual address fbd51fffffffff90 KASAN: maybe wild-memory-access in range [0xdeacfffffffffc80-0xdeacfffffffffc87] Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 [fbd51fffffffff90] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4310 Comm: kworker/u5:6 Tainted: G B 6.1.124-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: hci4 hci_rx_work pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : atomic_read include/linux/atomic/atomic-instrumented.h:28 [inline] pc : l2cap_chan_lock include/net/bluetooth/l2cap.h:863 [inline] pc : l2cap_conn_ready net/bluetooth/l2cap_core.c:1782 [inline] pc : l2cap_connect_cfm+0x534/0xe10 net/bluetooth/l2cap_core.c:8336 lr : instrument_atomic_read include/linux/instrumented.h:72 [inline] lr : atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] lr : l2cap_chan_lock include/net/bluetooth/l2cap.h:863 [inline] lr : l2cap_conn_ready net/bluetooth/l2cap_core.c:1782 [inline] lr : l2cap_connect_cfm+0x530/0xe10 net/bluetooth/l2cap_core.c:8336 sp : ffff8000212a7540 x29: ffff8000212a75e0 x28: ffff0000f44c4000 x27: ffff0000f44c74c8 x26: dfff800000000000 x25: ffff0000f44c44c8 x24: ffff0000d22d481a x23: dead000000000100 x22: ffff0000d22d4a60 x21: 1fffe0001bd64407 x20: ffff0000deb22039 x19: deacfffffffffc84 x18: 1fffe000367a0176 x17: ffff800015a8d000 x16: ffff80001232dda4 x15: ffff0001b3d00bbc x14: ffff0001b3d00bb8 x13: 1fffe000367a0176 x12: 0000000000100000 x11: 0000000000030196 x10: ffff800032b0b000 x9 : 0000000000000000 x8 : 1bd59fffffffff90 x7 : 1fffe000367a0177 x6 : ffff800008278b14 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000081a9738 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: atomic_read include/linux/atomic/atomic-instrumented.h:28 [inline] l2cap_chan_lock include/net/bluetooth/l2cap.h:863 [inline] l2cap_conn_ready net/bluetooth/l2cap_core.c:1782 [inline] l2cap_connect_cfm+0x534/0xe10 net/bluetooth/l2cap_core.c:8336 hci_connect_cfm+0x120/0x1d0 include/net/bluetooth/hci_core.h:1809 le_conn_complete_evt+0xa88/0xfe0 net/bluetooth/hci_event.c:5864 hci_le_conn_complete_evt+0x114/0x404 net/bluetooth/hci_event.c:5890 hci_le_meta_evt+0x2b8/0x47c net/bluetooth/hci_event.c:7059 hci_event_func net/bluetooth/hci_event.c:7370 [inline] hci_event_packet+0x6f8/0x109c net/bluetooth/hci_event.c:7425 hci_rx_work+0x310/0xa84 net/bluetooth/hci_core.c:4086 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 Code: 52800081 aa1303e0 97a5654b d343fe68 (38fa6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 52800081 mov w1, #0x4 // #4 4: aa1303e0 mov x0, x19 8: 97a5654b bl 0xfffffffffe959534 c: d343fe68 lsr x8, x19, #3 * 10: 38fa6908 ldrsb w8, [x8, x26] <-- trapping instruction