program syz-executor.2 is using a deprecated SCSI ioctl, please convert it to SG_IO kmemleak: 4 new suspected memory leaks (see /sys/kernel/debug/kmemleak) ================================================================== BUG: KASAN: use-after-free in dst_destroy+0x30b/0x350 Read of size 8 at addr ffff888018065df0 by task swapper/1/0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.18.0-rc4-next-20220428 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 print_report.cold+0x5e/0x5db kasan_report+0xbe/0x1c0 dst_destroy+0x30b/0x350 rcu_core+0x7e5/0x1ff0 __do_softirq+0x270/0x8c7 __irq_exit_rcu+0x113/0x170 irq_exit_rcu+0x5/0x20 sysvec_apic_timer_interrupt+0x8e/0xc0 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0010:default_idle+0xb/0x10 Code: ff ff ff 48 89 df e8 b4 cf 5d fd e9 55 ff ff ff 4c 89 e7 e8 a7 cf 5d fd eb 96 0f 1f 44 00 00 eb 07 0f 00 2d 77 c1 48 00 fb f4 cc cc cc cc 41 55 41 54 55 48 89 fd 53 48 83 ec 08 e8 fe 9b 2a RSP: 0018:ffff88800821fe58 EFLAGS: 00000202 RAX: ffffffff8419ac20 RBX: ffff8880081ed040 RCX: ffffffff8417d0b1 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000001 R09: ffff88806cf38d13 R10: ffffed100d9e71a2 R11: 0000000000000001 R12: ffffed100103da08 R13: ffffffff858ef1d0 R14: 0000000000000000 R15: dffffc0000000000 default_idle_call+0x80/0xc0 do_idle+0x3b9/0x530 cpu_startup_entry+0x14/0x20 start_secondary+0x1cf/0x230 secondary_startup_64_no_verify+0xe0/0xeb Allocated by task 304: kasan_save_stack+0x1e/0x40 __kasan_slab_alloc+0x66/0x80 kmem_cache_alloc+0x1aa/0x480 copy_net_ns+0x125/0x760 create_new_namespaces+0x3f6/0xb30 unshare_nsproxy_namespaces+0xc1/0x1f0 ksys_unshare+0x445/0x8d0 __x64_sys_unshare+0x2d/0x40 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae Last potentially related work creation: kasan_save_stack+0x1e/0x40 __kasan_record_aux_stack+0x97/0xa0 insert_work+0x44/0x290 __queue_work+0x61f/0x10a0 call_timer_fn+0x182/0x600 __run_timers.part.0+0x4ad/0xa50 run_timer_softirq+0x143/0x1a0 __do_softirq+0x270/0x8c7 Second to last potentially related work creation: kasan_save_stack+0x1e/0x40 __kasan_record_aux_stack+0x97/0xa0 insert_work+0x44/0x290 __queue_work+0x61f/0x10a0 call_timer_fn+0x182/0x600 __run_timers.part.0+0x4ad/0xa50 run_timer_softirq+0x143/0x1a0 __do_softirq+0x270/0x8c7 The buggy address belongs to the object at ffff888018065600 which belongs to the cache net_namespace of size 5248 The buggy address is located 2032 bytes inside of 5248-byte region [ffff888018065600, ffff888018066a80) The buggy address belongs to the physical page: page:0000000055810e42 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888018065600 pfn:0x18060 head:0000000055810e42 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88800d35d501 flags: 0x100000000010200(slab|head|node=0|zone=1) raw: 0100000000010200 ffffea00011c8600 dead000000000002 ffff88800802f140 raw: ffff888018065600 0000000080050004 00000001ffffffff ffff88800d35d501 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888018065c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888018065d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888018065d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888018065e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888018065e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== program syz-executor.2 is using a deprecated SCSI ioctl, please convert it to SG_IO program syz-executor.2 is using a deprecated SCSI ioctl, please convert it to SG_IO ---------------- Code disassembly (best guess), 2 bytes skipped: 0: ff 48 89 decl -0x77(%rax) 3: df e8 fucomip %st(0),%st 5: b4 cf mov $0xcf,%ah 7: 5d pop %rbp 8: fd std 9: e9 55 ff ff ff jmpq 0xffffff63 e: 4c 89 e7 mov %r12,%rdi 11: e8 a7 cf 5d fd callq 0xfd5dcfbd 16: eb 96 jmp 0xffffffae 18: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 1d: eb 07 jmp 0x26 1f: 0f 00 2d 77 c1 48 00 verw 0x48c177(%rip) # 0x48c19d 26: fb sti 27: f4 hlt * 28: c3 retq <-- trapping instruction 29: cc int3 2a: cc int3 2b: cc int3 2c: cc int3 2d: 41 55 push %r13 2f: 41 54 push %r12 31: 55 push %rbp 32: 48 89 fd mov %rdi,%rbp 35: 53 push %rbx 36: 48 83 ec 08 sub $0x8,%rsp 3a: e8 .byte 0xe8 3b: fe (bad) 3c: 9b fwait 3d: 2a .byte 0x2a