IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: use-after-free in hci_chan_del+0x1c5/0x200 net/bluetooth/hci_conn.c:1728 Read of size 8 at addr ffff88801d0dd518 by task syz-executor481/8472 CPU: 1 PID: 8472 Comm: syz-executor481 Not tainted 5.10.0-rc3-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+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 hci_chan_del+0x1c5/0x200 net/bluetooth/hci_conn.c:1728 l2cap_conn_del+0x478/0x7b0 net/bluetooth/l2cap_core.c:1900 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:8161 [inline] l2cap_disconn_cfm+0x98/0xd0 net/bluetooth/l2cap_core.c:8154 hci_disconn_cfm include/net/bluetooth/hci_core.h:1441 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1557 hci_dev_do_close+0x569/0x1110 net/bluetooth/hci_core.c:1770 hci_unregister_dev+0x223/0xfe0 net/bluetooth/hci_core.c:3827 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:340 __fput+0x285/0x920 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:151 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0xb64/0x29b0 kernel/exit.c:809 do_group_exit+0x125/0x310 kernel/exit.c:906 __do_sys_exit_group kernel/exit.c:917 [inline] __se_sys_exit_group kernel/exit.c:915 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:915 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x445038 Code: Unable to access opcode bytes at RIP 0x44500e. RSP: 002b:00007ffe89f8e028 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000445038 RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 RBP: 00000000004ccd90 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 0000000000000015 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006e0200 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8478: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 kmem_cache_alloc_trace+0x162/0x440 mm/slab.c:3552 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] hci_chan_create+0xaa/0x3c0 net/bluetooth/hci_conn.c:1713 l2cap_conn_add.part.0+0x1e/0xdf0 net/bluetooth/l2cap_core.c:7699 l2cap_conn_add include/net/bluetooth/l2cap.h:858 [inline] l2cap_connect_cfm+0x5be/0xf50 net/bluetooth/l2cap_core.c:8099 hci_connect_cfm include/net/bluetooth/hci_core.h:1426 [inline] le_conn_complete_evt+0x123d/0x18a0 net/bluetooth/hci_event.c:5195 hci_le_conn_complete_evt net/bluetooth/hci_event.c:5220 [inline] hci_le_meta_evt+0x433/0x4400 net/bluetooth/hci_event.c:5920 hci_event_packet+0x5d9/0x7d60 net/bluetooth/hci_event.c:6269 hci_rx_work+0x511/0xd30 net/bluetooth/hci_core.c:4926 process_one_work+0x933/0x15a0 kernel/workqueue.c:2272 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418 kthread+0x3af/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Freed by task 8478: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track+0x1c/0x30 mm/kasan/common.c:56 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0xd8/0x120 mm/kasan/common.c:422 __cache_free mm/slab.c:3420 [inline] kfree+0xe8/0x240 mm/slab.c:3758 hci_disconn_loglink_complete_evt.isra.0+0x1cf/0x240 net/bluetooth/hci_event.c:5023 hci_event_packet+0x2ded/0x7d60 net/bluetooth/hci_event.c:6290 hci_rx_work+0x511/0xd30 net/bluetooth/hci_core.c:4926 process_one_work+0x933/0x15a0 kernel/workqueue.c:2272 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418 kthread+0x3af/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 The buggy address belongs to the object at ffff88801d0dd500 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 24 bytes inside of 128-byte region [ffff88801d0dd500, ffff88801d0dd580) The buggy address belongs to the page: page:0000000050d4219c refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801d0dde00 pfn:0x1d0dd flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea000088d548 ffffea00008d74c8 ffff888010040400 raw: ffff88801d0dde00 ffff88801d0dd000 000000010000000b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801d0dd400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801d0dd480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801d0dd500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801d0dd580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801d0dd600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================