IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: use-after-free in hci_chan_del+0x1c5/0x200 net/bluetooth/hci_conn.c:1736 Read of size 8 at addr ffff888012eac918 by task syz-executor505/8484 CPU: 1 PID: 8484 Comm: syz-executor505 Not tainted 5.10.0-rc3-next-20201110-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/0x4c8 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:1736 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:1565 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+0x283/0x920 fs/file_table.c:280 task_work_run+0xdd/0x190 kernel/task_work.c:140 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0xb9b/0x29f0 kernel/exit.c:823 do_group_exit+0x125/0x310 kernel/exit.c:920 __do_sys_exit_group kernel/exit.c:931 [inline] __se_sys_exit_group kernel/exit.c:929 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:929 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x445088 Code: Unable to access opcode bytes at RIP 0x44505e. RSP: 002b:00007ffcd164cfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000445088 RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 RBP: 00000000004ccdd0 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006e0200 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8490: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:49 kasan_set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:480 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] hci_chan_create+0xaa/0x3c0 net/bluetooth/hci_conn.c:1721 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:5200 hci_le_conn_complete_evt net/bluetooth/hci_event.c:5225 [inline] hci_le_meta_evt+0x715/0x4450 net/bluetooth/hci_event.c:5923 hci_event_packet+0x5d9/0x7d60 net/bluetooth/hci_event.c:6272 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 8490: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:49 kasan_set_track+0x1c/0x30 mm/kasan/common.c:57 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:356 __kasan_slab_free+0x102/0x140 mm/kasan/common.c:438 slab_free_hook mm/slub.c:1545 [inline] slab_free_freelist_hook+0x5d/0x150 mm/slub.c:1583 slab_free mm/slub.c:3155 [inline] kfree+0xdb/0x360 mm/slub.c:4154 hci_disconn_loglink_complete_evt.isra.0+0x1cf/0x240 net/bluetooth/hci_event.c:5028 hci_event_packet+0x2ded/0x7d60 net/bluetooth/hci_event.c:6293 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 ffff888012eac900 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 24 bytes inside of 128-byte region [ffff888012eac900, ffff888012eac980) The buggy address belongs to the page: page:0000000063935590 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12eac flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea00004d02c0 0000000400000004 ffff888010041640 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888012eac800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888012eac880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888012eac900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888012eac980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888012eaca00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================