8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 ================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xe6/0xf5 lib/list_debug.c:51 Read of size 8 at addr ffff8881ccf387e8 by task syz-executor3/8217 CPU: 0 PID: 8217 Comm: syz-executor3 Not tainted 5.0.0+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __list_del_entry_valid+0xe6/0xf5 lib/list_debug.c:51 __list_del_entry include/linux/list.h:117 [inline] list_del_rcu include/linux/rculist.h:130 [inline] bpf_prog_ksym_node_del kernel/bpf/core.c:634 [inline] bpf_prog_kallsyms_del kernel/bpf/core.c:665 [inline] bpf_prog_kallsyms_del+0x143/0x290 kernel/bpf/core.c:659 bpf_prog_kallsyms_del_subprogs+0xd6/0x170 kernel/bpf/core.c:512 bpf_prog_kallsyms_del_all+0x16/0x30 kernel/bpf/core.c:517 __bpf_prog_put kernel/bpf/syscall.c:1272 [inline] __bpf_prog_put+0x100/0x250 kernel/bpf/syscall.c:1266 bpf_prog_put kernel/bpf/syscall.c:1283 [inline] bpf_prog_release+0x3c/0x50 kernel/bpf/syscall.c:1291 __fput+0x2e5/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411021 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 84 1a 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffce1fb3890 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000411021 RDX: 0000000000000000 RSI: 00000000007309d0 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffce1fb37c0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000017 R15: 0000000000000003 Allocated by task 8216: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_kmalloc mm/kasan/common.c:497 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:470 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:511 kmem_cache_alloc_trace+0x151/0x760 mm/slab.c:3621 kmalloc include/linux/slab.h:545 [inline] kzalloc include/linux/slab.h:740 [inline] bpf_prog_alloc_no_stats+0xe6/0x2b0 kernel/bpf/core.c:92 bpf_prog_alloc+0x31/0x230 kernel/bpf/core.c:114 bpf_prog_load+0x4fc/0x14a0 kernel/bpf/syscall.c:1572 __do_sys_bpf+0x117a/0x3e50 kernel/bpf/syscall.c:2710 __se_sys_bpf kernel/bpf/syscall.c:2672 [inline] __x64_sys_bpf+0x73/0xb0 kernel/bpf/syscall.c:2672 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3619: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:459 kasan_slab_free+0xe/0x10 mm/kasan/common.c:467 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3821 __bpf_prog_free+0x87/0xc0 kernel/bpf/core.c:262 bpf_prog_unlock_free include/linux/filter.h:792 [inline] bpf_prog_free_deferred kernel/bpf/core.c:1985 [inline] bpf_prog_free_deferred+0x272/0x3e0 kernel/bpf/core.c:1969 process_one_work+0x98e/0x1790 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x357/0x430 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff8881ccf38780 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 104 bytes inside of 512-byte region [ffff8881ccf38780, ffff8881ccf38980) The buggy address belongs to the page: page:ffffea000733ce00 count:1 mapcount:0 mapping:ffff8881da800940 index:0xffff8881ccf38a00 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffff8881da801738 ffffea00072adbc8 ffff8881da800940 raw: ffff8881ccf38a00 ffff8881ccf38000 0000000100000005 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881ccf38680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881ccf38700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881ccf38780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881ccf38800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881ccf38880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================