Bluetooth: hci0: Entering manufacturer mode failed (-110) ================================================================== BUG: KASAN: use-after-free in hci_cmd_timeout+0x1a8/0x1b0 net/bluetooth/hci_core.c:2524 Read of size 8 at addr ffff8880a083cb18 by task kworker/0:3/7408 CPU: 0 PID: 7408 Comm: kworker/0:3 Not tainted 4.14.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events hci_cmd_timeout Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2b9 mm/kasan/report.c:393 hci_cmd_timeout+0x1a8/0x1b0 net/bluetooth/hci_core.c:2524 process_one_work+0x7c0/0x14c0 kernel/workqueue.c:2116 worker_thread+0x5d7/0x1080 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 1191: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552 skb_clone+0x126/0x320 net/core/skbuff.c:1282 hci_cmd_work+0xc0/0x230 net/bluetooth/hci_core.c:4280 process_one_work+0x7c0/0x14c0 kernel/workqueue.c:2116 worker_thread+0x5d7/0x1080 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Freed by task 10564: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xaf/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x7c/0x2b0 mm/slab.c:3758 kfree_skbmem+0x98/0x100 net/core/skbuff.c:586 __kfree_skb net/core/skbuff.c:646 [inline] kfree_skb+0xb6/0x340 net/core/skbuff.c:663 hci_dev_do_open+0x7be/0xf00 net/bluetooth/hci_core.c:1469 hci_power_on+0x88/0x3d0 net/bluetooth/hci_core.c:2080 process_one_work+0x7c0/0x14c0 kernel/workqueue.c:2116 worker_thread+0x5d7/0x1080 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff8880a083ca40 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 216 bytes inside of 232-byte region [ffff8880a083ca40, ffff8880a083cb28) The buggy address belongs to the page: page:ffffea0002820f00 count:1 mapcount:0 mapping:ffff8880a083c040 index:0xffff8880a083ce00 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff8880a083c040 ffff8880a083ce00 0000000100000002 raw: ffffea00028462e0 ffffea000282fde0 ffff8880a9eebc00 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a083ca00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880a083ca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a083cb00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a083cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a083cc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ==================================================================