================================================================== BUG: KASAN: use-after-free in hci_send_acl+0x41/0x980 net/bluetooth/hci_core.c:3991 Read of size 8 at addr ffff888093265318 by task kworker/u5:0/1529 CPU: 0 PID: 1529 Comm: kworker/u5:0 Not tainted 5.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1f0/0x31e lib/dump_stack.c:118 print_address_description+0x66/0x5a0 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 mm/kasan/report.c:530 hci_send_acl+0x41/0x980 net/bluetooth/hci_core.c:3991 l2cap_bredr_sig_cmd+0x2558/0xa5a0 net/bluetooth/l2cap_core.c:5230 l2cap_sig_channel net/bluetooth/l2cap_core.c:6418 [inline] l2cap_recv_frame+0x858/0x8f10 net/bluetooth/l2cap_core.c:7660 hci_acldata_packet net/bluetooth/hci_core.c:4520 [inline] hci_rx_work+0x7d7/0x9c0 net/bluetooth/hci_core.c:4710 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Allocated by task 1529: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494 kmem_cache_alloc_trace+0x234/0x300 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] hci_chan_create+0x9a/0x270 net/bluetooth/hci_conn.c:1692 l2cap_conn_add+0x66/0xb00 net/bluetooth/l2cap_core.c:7699 l2cap_connect_cfm+0xdb/0x12b0 net/bluetooth/l2cap_core.c:8097 hci_connect_cfm include/net/bluetooth/hci_core.h:1340 [inline] hci_remote_features_evt net/bluetooth/hci_event.c:3210 [inline] hci_event_packet+0x1164c/0x18260 net/bluetooth/hci_event.c:6061 hci_rx_work+0x236/0x9c0 net/bluetooth/hci_core.c:4705 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Freed by task 1529: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x114/0x170 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x10a/0x220 mm/slab.c:3757 hci_disconn_loglink_complete_evt net/bluetooth/hci_event.c:4999 [inline] hci_event_packet+0x304e/0x18260 net/bluetooth/hci_event.c:6188 hci_rx_work+0x236/0x9c0 net/bluetooth/hci_core.c:4705 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff888093265300 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 24 bytes inside of 128-byte region [ffff888093265300, ffff888093265380) The buggy address belongs to the page: page:ffffea00024c9940 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888093265d00 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00028b4a08 ffffea00024c9408 ffff8880aa400700 raw: ffff888093265d00 ffff888093265000 0000000100000009 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888093265200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888093265280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888093265300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888093265380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888093265400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================