Hello,
syzbot found the following issue on:
HEAD commit: 05c93f3395ed Merge branch 'for-next/core' into for-kernelci
git tree: git://
git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output:
https://syzkaller.appspot.com/x/log.txt?x=1149701a580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=3b5338ad1e59a06c
dashboard link:
https://syzkaller.appspot.com/bug?extid=e189a72db7fbaea6c869
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
userspace arch: arm64
CC: [
johan....@gmail.com linux-b...@vger.kernel.org linux-...@vger.kernel.org luiz....@gmail.com mar...@holtmann.org]
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/6b5c913e373c/disk-05c93f33.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/15e75f1266ef/vmlinux-05c93f33.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/dd930129c578/Image-05c93f33.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+e189a7...@syzkaller.appspotmail.com
kobject: kobject_add_internal failed for hci1:201 with -EEXIST, don't try to register things with the same name in the same directory.
Bluetooth: hci1: failed to register connection device
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_write include/linux/instrumented.h:82 [inline]
BUG: KASAN: null-ptr-deref in set_bit include/asm-generic/bitops/instrumented-atomic.h:28 [inline]
BUG: KASAN: null-ptr-deref in l2cap_sock_suspend_cb+0x50/0xb4 net/bluetooth/l2cap_sock.c:1748
Write of size 8 at addr 0000000000000588 by task kworker/u9:1/6144
CPU: 1 UID: 0 PID: 6144 Comm: kworker/u9:1 Not tainted syzkaller #0 PREEMPT
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025
Workqueue: hci1 hci_rx_work
Call trace:
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C)
__dump_stack+0x30/0x40 lib/dump_stack.c:94
dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120
print_report+0x58/0x84 mm/kasan/report.c:485
kasan_report+0xb0/0x110 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:200
__kasan_check_write+0x20/0x30 mm/kasan/shadow.c:37
instrument_atomic_write include/linux/instrumented.h:82 [inline]
set_bit include/asm-generic/bitops/instrumented-atomic.h:28 [inline]
l2cap_sock_suspend_cb+0x50/0xb4 net/bluetooth/l2cap_sock.c:1748
l2cap_chan_ready net/bluetooth/l2cap_core.c:1258 [inline]
l2cap_le_start+0x900/0x10c0 net/bluetooth/l2cap_core.c:1376
l2cap_conn_ready net/bluetooth/l2cap_core.c:1629 [inline]
l2cap_connect_cfm+0x558/0xd40 net/bluetooth/l2cap_core.c:7305
hci_connect_cfm+0x98/0x134 include/net/bluetooth/hci_core.h:2107
le_conn_complete_evt+0xcc0/0x1184 net/bluetooth/hci_event.c:5799
hci_le_conn_complete_evt+0x114/0x3f8 net/bluetooth/hci_event.c:5825
hci_le_meta_evt+0x2cc/0x4b0 net/bluetooth/hci_event.c:7278
hci_event_func net/bluetooth/hci_event.c:7586 [inline]
hci_event_packet+0x6bc/0xf04 net/bluetooth/hci_event.c:7643
hci_rx_work+0x320/0xb18 net/bluetooth/hci_core.c:4099
process_one_work+0x7e8/0x155c kernel/workqueue.c:3263
process_scheduled_works kernel/workqueue.c:3346 [inline]
worker_thread+0x958/0xed8 kernel/workqueue.c:3427
kthread+0x5fc/0x75c kernel/kthread.c:463
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844
==================================================================
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000588
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
CM = 0, WnR = 0, TnD = 0, TagAccess = 0
GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=0000000139adc000
[0000000000000588] pgd=08000001310ec403, p4d=08000001310ec403, pud=0800000122921403, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] SMP
Modules linked in:
CPU: 1 UID: 0 PID: 6144 Comm: kworker/u9:1 Tainted: G B syzkaller #0 PREEMPT
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025
Workqueue: hci1 hci_rx_work
pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
pc : __lse_atomic64_or arch/arm64/include/asm/atomic_lse.h:132 [inline]
pc : arch_atomic64_or arch/arm64/include/asm/atomic.h:65 [inline]
pc : raw_atomic64_or include/linux/atomic/atomic-arch-fallback.h:3798 [inline]
pc : raw_atomic_long_or include/linux/atomic/atomic-long.h:1069 [inline]
pc : arch_set_bit include/asm-generic/bitops/atomic.h:18 [inline]
pc : set_bit include/asm-generic/bitops/instrumented-atomic.h:29 [inline]
pc : l2cap_sock_suspend_cb+0x5c/0xb4 net/bluetooth/l2cap_sock.c:1748
lr : __lse_atomic64_or arch/arm64/include/asm/atomic_lse.h:132 [inline]
lr : arch_atomic64_or arch/arm64/include/asm/atomic.h:65 [inline]
lr : raw_atomic64_or include/linux/atomic/atomic-arch-fallback.h:3798 [inline]
lr : raw_atomic_long_or include/linux/atomic/atomic-long.h:1069 [inline]
lr : arch_set_bit include/asm-generic/bitops/atomic.h:18 [inline]
lr : set_bit include/asm-generic/bitops/instrumented-atomic.h:29 [inline]
lr : l2cap_sock_suspend_cb+0x58/0xb4 net/bluetooth/l2cap_sock.c:1748
sp : ffff8000a27973b0
x29: ffff8000a27973b0 x28: ffff8000a2797420 x27: 1fffe00019c58004
x26: 1fffe00019c58002 x25: 1fffe00019c58000 x24: ffff7000144f2e84
x23: 0000000000000002 x22: dfff800000000000 x21: dfff800000000000
x20: 0000000000000588 x19: 0000000000000000 x18: 00000000ffffffff
x17: 3d3d3d3d3d3d3d3d x16: ffff800082defcc0 x15: 0000000000000001
x14: 1ffff000125d3514 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000100000 x10: 0000000000012831 x9 : ffff8000b19a7000
x8 : 0000000000000002 x7 : 0000000000000001 x6 : ffff800080565b88
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000803c104c
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__lse_atomic64_or arch/arm64/include/asm/atomic_lse.h:-1 [inline] (P)
arch_atomic64_or arch/arm64/include/asm/atomic.h:65 [inline] (P)
raw_atomic64_or include/linux/atomic/atomic-arch-fallback.h:3798 [inline] (P)
raw_atomic_long_or include/linux/atomic/atomic-long.h:1069 [inline] (P)
arch_set_bit include/asm-generic/bitops/atomic.h:18 [inline] (P)
set_bit include/asm-generic/bitops/instrumented-atomic.h:29 [inline] (P)
l2cap_sock_suspend_cb+0x5c/0xb4 net/bluetooth/l2cap_sock.c:1748 (P)
l2cap_chan_ready net/bluetooth/l2cap_core.c:1258 [inline]
l2cap_le_start+0x900/0x10c0 net/bluetooth/l2cap_core.c:1376
l2cap_conn_ready net/bluetooth/l2cap_core.c:1629 [inline]
l2cap_connect_cfm+0x558/0xd40 net/bluetooth/l2cap_core.c:7305
hci_connect_cfm+0x98/0x134 include/net/bluetooth/hci_core.h:2107
le_conn_complete_evt+0xcc0/0x1184 net/bluetooth/hci_event.c:5799
hci_le_conn_complete_evt+0x114/0x3f8 net/bluetooth/hci_event.c:5825
hci_le_meta_evt+0x2cc/0x4b0 net/bluetooth/hci_event.c:7278
hci_event_func net/bluetooth/hci_event.c:7586 [inline]
hci_event_packet+0x6bc/0xf04 net/bluetooth/hci_event.c:7643
hci_rx_work+0x320/0xb18 net/bluetooth/hci_core.c:4099
process_one_work+0x7e8/0x155c kernel/workqueue.c:3263
process_scheduled_works kernel/workqueue.c:3346 [inline]
worker_thread+0x958/0xed8 kernel/workqueue.c:3427
kthread+0x5fc/0x75c kernel/kthread.c:463
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844
Code: 97840524 d503201f 97840483 52800048 (f828329f)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: 97840524 bl 0xfffffffffe101490
4: d503201f nop
8: 97840483 bl 0xfffffffffe101214
c: 52800048 mov w8, #0x2 // #2
* 10: f828329f stset x8, [x20] <-- trapping instruction
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup