IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 8021q: adding VLAN 0 to HW filter on device batadv0 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x33ac/0x4760 kernel/locking/lockdep.c:3215 Read of size 8 at addr ffff888076796880 by task syz-executor.5/7938 CPU: 1 PID: 7938 Comm: syz-executor.5 Not tainted 4.20.0+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x113/0x167 lib/dump_stack.c:113 print_address_description.cold.5+0x9/0x1ff mm/kasan/report.c:187 kasan_report.cold.6+0x1b/0x39 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __lock_acquire+0x33ac/0x4760 kernel/locking/lockdep.c:3215 lock_acquire+0x173/0x3d0 kernel/locking/lockdep.c:3841 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf5/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 seccomp_notify_release+0x52/0x240 kernel/seccomp.c:979 __fput+0x24c/0x800 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x10e/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x1a9/0x200 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+0x40d/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411381 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 74 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:00007fff22be2760 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000411381 RDX: 0000000000000000 RSI: 00000000007202a8 RDI: 0000000000000003 RBP: 0000000000000001 R08: 00000000007202a0 R09: 0000000000021f8e R10: 00007fff22be2680 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000005 Allocated by task 7954: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 kmem_cache_alloc_trace+0x154/0x750 mm/slab.c:3607 kmalloc include/linux/slab.h:545 [inline] kzalloc include/linux/slab.h:740 [inline] seccomp_prepare_filter kernel/seccomp.c:451 [inline] seccomp_prepare_user_filter kernel/seccomp.c:491 [inline] seccomp_set_mode_filter kernel/seccomp.c:1257 [inline] do_seccomp+0x616/0x2330 kernel/seccomp.c:1370 __do_sys_seccomp kernel/seccomp.c:1389 [inline] __se_sys_seccomp kernel/seccomp.c:1386 [inline] __x64_sys_seccomp+0x6e/0xb0 kernel/seccomp.c:1386 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7954: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kfree+0xcf/0x230 mm/slab.c:3804 seccomp_filter_free kernel/seccomp.c:565 [inline] seccomp_set_mode_filter kernel/seccomp.c:1311 [inline] do_seccomp+0x92d/0x2330 kernel/seccomp.c:1370 __do_sys_seccomp kernel/seccomp.c:1389 [inline] __se_sys_seccomp kernel/seccomp.c:1386 [inline] __x64_sys_seccomp+0x6e/0xb0 kernel/seccomp.c:1386 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888076796800 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 128 bytes inside of 192-byte region [ffff888076796800, ffff8880767968c0) The buggy address belongs to the page: page:ffffea0001d9e580 count:1 mapcount:0 mapping:ffff88802d400040 index:0x0 flags: 0x5fffc0000000200(slab) raw: 05fffc0000000200 ffffea0001e8f648 ffff88807e400148 ffff88802d400040 raw: 0000000000000000 ffff888076796000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888076796780: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff888076796800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888076796880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888076796900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888076796980: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ==================================================================