================================================================== BUG: KASAN: global-out-of-bounds in atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] BUG: KASAN: global-out-of-bounds in __lock_acquire+0x251/0x3ff0 kernel/locking/lockdep.c:3307 Write of size 4 at addr ffffffff8dc84b98 by task syz-executor.4/21116 CPU: 0 PID: 21116 Comm: syz-executor.4 Not tainted 4.19.177-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x5/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] __lock_acquire+0x251/0x3ff0 kernel/locking/lockdep.c:3307 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3b/0x110 net/core/sock.c:2864 l2cap_sock_teardown_cb+0xa0/0x6d0 net/bluetooth/l2cap_sock.c:1340 l2cap_chan_del+0xbc/0xa50 net/bluetooth/l2cap_core.c:599 l2cap_conn_del+0x3a6/0x6e0 net/bluetooth/l2cap_core.c:1729 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:7441 [inline] l2cap_disconn_cfm+0x98/0xd0 net/bluetooth/l2cap_core.c:7434 hci_disconn_cfm include/net/bluetooth/hci_core.h:1261 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1512 hci_dev_do_close+0x659/0xf10 net/bluetooth/hci_core.c:1666 hci_rfkill_set_block+0xe7/0x160 net/bluetooth/hci_core.c:2100 rfkill_set_block+0x1f9/0x540 net/rfkill/core.c:353 rfkill_fop_write+0x250/0x4a0 net/rfkill/core.c:1249 __vfs_write+0xf7/0x770 fs/read_write.c:485 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465ef9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa77fd78188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9 RDX: 00000000fffffeed RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00000000004bcd1c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe639fe80f R14: 00007fa77fd78300 R15: 0000000000022000 The buggy address belongs to the variable: __key.5+0x38/0x40 Memory state around the buggy address: ffffffff8dc84a80: fa fa fa fa 00 fa fa fa fa fa fa fa 00 fa fa fa ffffffff8dc84b00: fa fa fa fa 00 fa fa fa fa fa fa fa 00 fa fa fa >ffffffff8dc84b80: fa fa fa fa 00 fa fa fa fa fa fa fa 00 fa fa fa ^ ffffffff8dc84c00: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8dc84c80: 00 fa fa fa fa fa fa fa 00 fa fa fa fa fa fa fa ==================================================================