audit: type=1804 audit(1575663464.988:667): pid=13628 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir609081297/syzkaller.DDVW2a/174/file0" dev="sda1" ino=16661 res=1 Bluetooth: hci1: Frame reassembly failed (-84) Bluetooth: hci1: Frame reassembly failed (-84) Bluetooth: hci4: Entering manufacturer mode failed (-110) ================================================================== BUG: KASAN: use-after-free in hci_cmd_timeout+0x1aa/0x1c0 net/bluetooth/hci_core.c:2525 Read of size 2 at addr ffff888089f45848 by task kworker/0:2/2568 CPU: 0 PID: 2568 Comm: kworker/0:2 Not tainted 4.14.158-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+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/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/0x2af mm/kasan/report.c:393 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:440 hci_cmd_timeout+0x1aa/0x1c0 net/bluetooth/hci_core.c:2525 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 7125: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x51/0x80 mm/slab.c:3696 __kmalloc_reserve.isra.0+0x40/0xe0 net/core/skbuff.c:137 __alloc_skb+0xcf/0x500 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:980 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:336 [inline] hci_prepare_cmd+0x30/0x220 net/bluetooth/hci_request.c:298 hci_req_add_ev+0xa3/0x200 net/bluetooth/hci_request.c:332 __hci_cmd_sync_ev+0x152/0x610 net/bluetooth/hci_request.c:129 __hci_cmd_sync+0x37/0x50 net/bluetooth/hci_request.c:185 btintel_enter_mfg+0x74/0xe0 drivers/bluetooth/btintel.c:81 ag6xx_setup+0xfb/0x770 drivers/bluetooth/hci_ag6xx.c:180 hci_uart_setup+0x1a3/0x430 drivers/bluetooth/hci_ldisc.c:429 hci_dev_do_open+0x575/0xf80 net/bluetooth/hci_core.c:1384 hci_power_on+0x8d/0x3d0 net/bluetooth/hci_core.c:2080 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Freed by task 7125: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 skb_free_head+0x8b/0xb0 net/core/skbuff.c:554 skb_release_data+0x543/0x7c0 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0xb5/0x350 net/core/skbuff.c:663 hci_dev_do_open+0x9db/0xf80 net/bluetooth/hci_core.c:1469 hci_power_on+0x8d/0x3d0 net/bluetooth/hci_core.c:2080 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff888089f45840 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of 512-byte region [ffff888089f45840, ffff888089f45a40) The buggy address belongs to the page: page:ffffea000227d140 count:1 mapcount:0 mapping:ffff888089f450c0 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff888089f450c0 0000000000000000 0000000100000006 raw: ffffea00024ea1e0 ffffea0002463a60 ffff8880aa800940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888089f45700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888089f45780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888089f45800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888089f45880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888089f45900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Bluetooth: hci2: Entering manufacturer mode failed (-110)