Bluetooth: hci2: hardware error 0x05 ================================================================== BUG: KASAN: use-after-free in hci_chan_del+0x37/0x190 net/bluetooth/hci_conn.c:1736 Read of size 8 at addr ffff88801d067e18 by task kworker/u5:0/2035 CPU: 1 PID: 2035 Comm: kworker/u5:0 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci2 hci_error_reset Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:120 print_address_description+0x5f/0x3a0 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report+0x15e/0x200 mm/kasan/report.c:413 hci_chan_del+0x37/0x190 net/bluetooth/hci_conn.c:1736 l2cap_conn_del+0x4c5/0x650 net/bluetooth/l2cap_core.c:1906 hci_disconn_cfm include/net/bluetooth/hci_core.h:1462 [inline] hci_conn_hash_flush+0x112/0x240 net/bluetooth/hci_conn.c:1565 hci_dev_do_close+0xa04/0xfe0 net/bluetooth/hci_core.c:1776 hci_error_reset+0xb8/0x120 net/bluetooth/hci_core.c:2320 process_one_work+0x789/0xfc0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Allocated by task 21169: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:401 [inline] ____kasan_kmalloc+0xbd/0xf0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:219 [inline] kmem_cache_alloc_trace+0x200/0x300 mm/slub.c:2919 kmalloc include/linux/slab.h:552 [inline] kernfs_get_open_node fs/kernfs/file.c:552 [inline] kernfs_fop_open+0x909/0xbd0 fs/kernfs/file.c:698 do_dentry_open+0x7cb/0x1010 fs/open.c:817 do_open fs/namei.c:3254 [inline] path_openat+0x2791/0x37a0 fs/namei.c:3371 do_filp_open+0x191/0x3a0 fs/namei.c:3398 do_sys_openat2+0xba/0x380 fs/open.c:1172 do_sys_open fs/open.c:1188 [inline] __do_sys_open fs/open.c:1196 [inline] __se_sys_open fs/open.c:1192 [inline] __x64_sys_open+0x1af/0x1e0 fs/open.c:1192 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88801d067e00 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 24 bytes inside of 128-byte region [ffff88801d067e00, ffff88801d067e80) The buggy address belongs to the page: page:00000000e2ed2d84 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801d067c00 pfn:0x1d067 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea000139e288 ffffea000139ec88 ffff888011041640 raw: ffff88801d067c00 000000000010000e 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801d067d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ffff88801d067d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801d067e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801d067e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801d067f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================