Bluetooth: hci1: Entering manufacturer mode failed (-110) Bluetooth: hci1: command 0xfc11 tx timeout Bluetooth: hci3: Entering manufacturer mode failed (-110) Bluetooth: hci4: Entering manufacturer mode failed (-110) ================================================================== BUG: KASAN: use-after-free in hci_cmd_timeout+0x1b4/0x1d0 net/bluetooth/hci_core.c:2574 Read of size 2 at addr ffff880090873a08 by task kworker/0:0/5 CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 4.20.0-rc1+ #1 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:77 [inline] dump_stack+0x16b/0x224 lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:443 hci_cmd_timeout+0x1b4/0x1d0 net/bluetooth/hci_core.c:2574 process_one_work+0x830/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 7220: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3684 [inline] __kmalloc_node_track_caller+0x50/0x70 mm/slab.c:3698 __kmalloc_reserve.isra.40+0x2c/0xc0 net/core/skbuff.c:137 __alloc_skb+0xd7/0x580 net/core/skbuff.c:205 kobject: 'rfkill127' (00000000bf9eedec): kobject_cleanup, parent (null) alloc_skb include/linux/skbuff.h:997 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] hci_prepare_cmd+0x2c/0x200 net/bluetooth/hci_request.c:287 hci_req_add_ev+0x7f/0x1f0 net/bluetooth/hci_request.c:321 __hci_cmd_sync_ev+0xf8/0x1a0 net/bluetooth/hci_request.c:133 __hci_cmd_sync+0x12/0x20 net/bluetooth/hci_request.c:182 btintel_enter_mfg+0x29/0x70 drivers/bluetooth/btintel.c:82 ag6xx_setup+0x112/0x7c0 drivers/bluetooth/hci_ag6xx.c:180 hci_uart_setup+0x19c/0x3a0 drivers/bluetooth/hci_ldisc.c:418 hci_dev_do_open+0x5a6/0x1360 net/bluetooth/hci_core.c:1423 hci_power_on+0xe2/0x410 net/bluetooth/hci_core.c:2130 process_one_work+0x830/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 7220: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x220 mm/slab.c:3817 skb_free_head+0x74/0x90 net/core/skbuff.c:550 skb_release_data+0x43c/0x5b0 net/core/skbuff.c:570 skb_release_all+0x3d/0x50 net/core/skbuff.c:627 __kfree_skb net/core/skbuff.c:641 [inline] kfree_skb+0x97/0x270 net/core/skbuff.c:659 hci_dev_do_open+0x46c/0x1360 net/bluetooth/hci_core.c:1509 hci_power_on+0xe2/0x410 net/bluetooth/hci_core.c:2130 process_one_work+0x830/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff880090873a00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of 512-byte region [ffff880090873a00, ffff880090873c00) The buggy address belongs to the page: page:ffffea0002421cc0 count:1 mapcount:0 mapping:ffff88012c364940 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002554848 ffffea00023d4a48 ffff88012c364940 raw: 0000000000000000 ffff880090873000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880090873900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880090873980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880090873a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880090873a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880090873b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================