================================================================== BUG: KASAN: slab-out-of-bounds in hci_conn_del+0x578/0x5c0 net/bluetooth/hci_conn.c:663 Write of size 8 at addr ffff88811ca4e928 by task syz-executor.1/6106 CPU: 1 PID: 6106 Comm: syz-executor.1 Not tainted 5.13.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x10c/0x14b lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 hci_conn_del+0x578/0x5c0 net/bluetooth/hci_conn.c:663 hci_conn_hash_flush+0x153/0x1e0 net/bluetooth/hci_conn.c:1609 hci_dev_do_close+0x4c8/0xe50 net/bluetooth/hci_core.c:1780 hci_unregister_dev+0x20d/0xe60 net/bluetooth/hci_core.c:3994 vhci_release+0x62/0xd0 drivers/bluetooth/hci_vhci.c:340 __fput+0x209/0x870 fs/file_table.c:280 task_work_run+0xc0/0x160 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xac8/0x25b0 kernel/exit.c:826 do_group_exit+0xe7/0x290 kernel/exit.c:923 __do_sys_exit_group kernel/exit.c:934 [inline] __se_sys_exit_group kernel/exit.c:932 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:932 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x464909 Code: Unable to access opcode bytes at RIP 0x4648df. RSP: 002b:00007fff1754e498 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000001486 RCX: 0000000000464909 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000043 RBP: 00000000004ae1ea R08: 000000000000000b R09: 00000000000600fc R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000006018d R14: 00000000000600fc R15: 000000000000000e Allocated by task 26506: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:428 [inline] ____kasan_kmalloc mm/kasan/common.c:507 [inline] __kasan_kmalloc+0x7a/0x90 mm/kasan/common.c:516 kasan_kmalloc include/linux/kasan.h:246 [inline] __do_kmalloc mm/slab.c:3702 [inline] __kmalloc+0x229/0x460 mm/slab.c:3711 kmalloc include/linux/slab.h:561 [inline] sk_prot_alloc+0xee/0x200 net/core/sock.c:1703 sk_alloc+0x27/0x8d0 net/core/sock.c:1756 sco_sock_alloc.constprop.0+0x22/0x230 net/bluetooth/sco.c:486 sco_sock_create+0x9b/0x150 net/bluetooth/sco.c:523 bt_sock_create+0x11a/0x250 net/bluetooth/af_bluetooth.c:130 __sock_create+0x257/0x540 net/socket.c:1408 sock_create net/socket.c:1459 [inline] __sys_socket+0xd6/0x1a0 net/socket.c:1501 __do_sys_socket net/socket.c:1510 [inline] __se_sys_socket net/socket.c:1508 [inline] __x64_sys_socket+0x6a/0xb0 net/socket.c:1508 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae The buggy address belongs to the object at ffff88811ca4e000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 296 bytes to the right of 2048-byte region [ffff88811ca4e000, ffff88811ca4e800) The buggy address belongs to the page: page:0000000092e960eb refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11ca4e flags: 0x17ffe0000000200(slab|node=0|zone=2|lastcpupid=0x3fff) raw: 017ffe0000000200 ffffea00045e3448 ffffea00040de3c8 ffff888100040800 raw: 0000000000000000 ffff88811ca4e000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88811ca4e800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811ca4e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811ca4e900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88811ca4e980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811ca4ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================