netlink: 8 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 16 bytes leftover after parsing attributes in process `syz-executor.5'. Bluetooth: hci15: Entering manufacturer mode failed (-110) ================================================================== BUG: KASAN: use-after-free in hci_cmd_timeout+0x19e/0x1b0 net/bluetooth/hci_core.c:2525 Read of size 2 at addr ffff88809ffa4508 by task kworker/0:0/3 CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.172-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+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 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/0x2ae mm/kasan/report.c:393 hci_cmd_timeout+0x19e/0x1b0 net/bluetooth/hci_core.c:2525 process_one_work+0x813/0x1540 kernel/workqueue.c:2114 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2248 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+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.0+0x35/0xd0 net/core/skbuff.c:137 __alloc_skb+0xca/0x4c0 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+0x2a/0x220 net/bluetooth/hci_request.c:298 hci_req_add_ev+0x97/0x1e0 net/bluetooth/hci_request.c:332 __hci_cmd_sync_ev+0x145/0x5b0 net/bluetooth/hci_request.c:129 btintel_enter_mfg+0x72/0xe0 drivers/bluetooth/btintel.c:81 ag6xx_setup+0xe8/0x6e0 drivers/bluetooth/hci_ag6xx.c:180 hci_uart_setup+0x193/0x410 drivers/bluetooth/hci_ldisc.c:429 hci_dev_do_open+0x546/0xf10 net/bluetooth/hci_core.c:1384 hci_power_on+0x88/0x3d0 net/bluetooth/hci_core.c:2080 process_one_work+0x813/0x1540 kernel/workqueue.c:2114 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2248 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Freed by task 1191: save_stack+0x32/0xa0 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+0xcb/0x260 mm/slab.c:3815 skb_free_head+0x83/0xa0 net/core/skbuff.c:554 skb_release_data+0x528/0x7b0 net/core/skbuff.c:574 skb_release_all+0x46/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0xae/0x340 net/core/skbuff.c:663 hci_dev_do_open+0x987/0xf10 net/bluetooth/hci_core.c:1469 hci_power_on+0x88/0x3d0 net/bluetooth/hci_core.c:2080 process_one_work+0x813/0x1540 kernel/workqueue.c:2114 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2248 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 ffff88809ffa4500 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of 512-byte region [ffff88809ffa4500, ffff88809ffa4700) The buggy address belongs to the page: page:ffffea00027fe900 count:1 mapcount:0 mapping:ffff88809ffa4000 index:0xffff88809ffa4c80 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff88809ffa4000 ffff88809ffa4c80 0000000100000004 raw: ffffea0002941da0 ffffea0002663ae0 ffff88812fe56940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809ffa4400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809ffa4480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809ffa4500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809ffa4580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809ffa4600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================