device hsr_slave_0 entered promiscuous mode device hsr_slave_1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready ================================================================== BUG: KASAN: use-after-free in __queue_work+0xdff/0x1100 kernel/workqueue.c:1383 Read of size 4 at addr ffff88809a819740 by task kworker/1:2/3708 CPU: 1 PID: 3708 Comm: kworker/1:2 Not tainted 4.19.136-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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load4_noabort+0x88/0x90 mm/kasan/report.c:432 __queue_work+0xdff/0x1100 kernel/workqueue.c:1383 __queue_delayed_work+0x1c6/0x270 kernel/workqueue.c:1524 queue_delayed_work_on+0x195/0x200 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+0x524/0x8e0 net/bluetooth/l2cap_core.c:613 l2cap_chan_close+0x108/0x820 net/bluetooth/l2cap_core.c:754 l2cap_chan_timeout+0x16d/0x210 net/bluetooth/l2cap_core.c:427 process_one_work+0x864/0x1570 kernel/workqueue.c:2155 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x30b/0x410 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 3711: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] kernfs_fop_open+0x2b3/0xd20 fs/kernfs/file.c:648 do_dentry_open+0x4aa/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x793/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3711: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kernfs_fop_release+0x120/0x190 fs/kernfs/file.c:783 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809a8195c0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 384 bytes inside of 512-byte region [ffff88809a8195c0, ffff88809a8197c0) The buggy address belongs to the page: page:ffffea00026a0640 count:1 mapcount:0 mapping:ffff88812c39c940 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea000294eb48 ffffea000299d908 ffff88812c39c940 raw: 0000000000000000 ffff88809a8190c0 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809a819600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809a819680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88809a819700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809a819780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88809a819800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================