device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode ================================================================== BUG: KASAN: use-after-free in __queue_work+0xa2e/0xdf0 kernel/workqueue.c:1383 Read of size 4 at addr ffff88808e0b5e40 by task kworker/1:3/7634 CPU: 1 PID: 7634 Comm: kworker/1:3 Not tainted 4.19.146-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events l2cap_chan_timeout Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x22a lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x307 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 __queue_work+0xa2e/0xdf0 kernel/workqueue.c:1383 __queue_delayed_work+0x174/0x290 kernel/workqueue.c:1524 queue_delayed_work_on+0x148/0x180 kernel/workqueue.c:1560 queue_delayed_work include/linux/workqueue.h:527 [inline] hci_conn_drop include/net/bluetooth/hci_core.h:998 [inline] l2cap_chan_del+0x45b/0x7b0 net/bluetooth/l2cap_core.c:613 l2cap_chan_close+0x35b/0x830 net/bluetooth/l2cap_core.c:754 l2cap_chan_timeout+0x11d/0x1c0 net/bluetooth/l2cap_core.c:427 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2155 worker_thread+0x85/0xb60 kernel/workqueue.c:2298 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 3711: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15d/0x3d0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] kzalloc include/linux/slab.h:709 [inline] __alloc_workqueue_key+0x5b9/0xbb0 kernel/workqueue.c:4087 hci_register_dev+0x185/0x750 net/bluetooth/hci_core.c:3179 __vhci_create_device+0x269/0x4f0 drivers/bluetooth/hci_vhci.c:139 vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_open_timeout+0x34/0x50 drivers/bluetooth/hci_vhci.c:319 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2155 worker_thread+0x85/0xb60 kernel/workqueue.c:2298 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 9357: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x13c/0x220 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 rcu_free_wq+0x99/0xf0 kernel/workqueue.c:3339 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x93a/0x19b0 kernel/rcu/tree.c:2881 __do_softirq+0x25e/0x92d kernel/softirq.c:292 The buggy address belongs to the object at ffff88808e0b5cc0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 384 bytes inside of 512-byte region [ffff88808e0b5cc0, ffff88808e0b5ec0) The buggy address belongs to the page: page:ffffea0002382d40 count:1 mapcount:0 mapping:ffff88812c29c940 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00024573c8 ffffea000236e4c8 ffff88812c29c940 raw: 0000000000000000 ffff88808e0b5040 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808e0b5d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808e0b5d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88808e0b5e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808e0b5e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88808e0b5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================