------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 1 PID: 3351 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31 Modules linked in: CPU: 1 PID: 3351 Comm: syz-executor323 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31 Code: 1d 6a 5a e8 09 31 ff 89 de e8 8d 1a ab fd 84 db 75 e0 e8 d4 13 ab fd 48 c7 c7 a0 e1 c1 89 c6 05 4a 5a e8 09 01 e8 2e 36 fb 04 <0f> 0b eb c4 e8 b8 13 ab fd 0f b6 1d 39 5a e8 09 31 ff 89 de e8 58 RSP: 0018:ffffc90000dc0e10 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88803e8754c0 RSI: ffffffff815c51f5 RDI: fffff520001b81b4 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815bdf8e R11: 0000000000000000 R12: ffff888045174000 R13: ffff888045174568 R14: ffff888012680de0 R15: 0000000000000000 FS: 00007f02ff0f7700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d3640 CR3: 0000000014681000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_dec include/linux/refcount.h:344 [inline] refcount_dec include/linux/refcount.h:359 [inline] dev_put include/linux/netdevice.h:4135 [inline] in_dev_finish_destroy+0x172/0x1b0 net/ipv4/devinet.c:244 in_dev_put include/linux/inetdevice.h:265 [inline] in_dev_rcu_put+0x83/0xb0 net/ipv4/devinet.c:301 rcu_do_batch kernel/rcu/tree.c:2559 [inline] rcu_core+0x74a/0x12f0 kernel/rcu/tree.c:2794 __do_softirq+0x29b/0x9f6 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu kernel/softirq.c:422 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 RIP: 0010:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:65 Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 RSP: 0018:ffffc9000f0a75e0 EFLAGS: 00000202 RAX: dffffc0000000000 RBX: ffff888037d62000 RCX: 0000000000000000 RDX: 0000000000000015 RSI: 0000000000000000 RDI: ffffed1006fac415 RBP: 00000000000000a8 R08: ffff888037d62000 R09: ffffed1006fac400 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000dc0 R13: 0000000000000000 R14: 0000000000000dc0 R15: 0000000000000dc0 kasan_unpoison mm/kasan/shadow.c:132 [inline] kasan_unpoison+0x3a/0x60 mm/kasan/shadow.c:109 __kasan_slab_alloc+0x37/0x90 mm/kasan/common.c:456 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x155/0x370 mm/slub.c:2920 kmem_cache_zalloc include/linux/slab.h:674 [inline] __kernfs_new_node+0xd4/0x8b0 fs/kernfs/dir.c:626 kernfs_new_node fs/kernfs/dir.c:688 [inline] kernfs_create_dir_ns+0x9c/0x220 fs/kernfs/dir.c:1025 internal_create_group+0x798/0xb20 fs/sysfs/group.c:137 dpm_sysfs_add+0x7e/0x290 drivers/base/power/sysfs.c:702 device_add+0xa83/0x1db0 drivers/base/core.c:3199 netdev_register_kobject+0x181/0x430 net/core/net-sysfs.c:1955 register_netdevice+0xd33/0x1500 net/core/dev.c:10256 __ip_tunnel_create+0x398/0x5c0 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x330/0x9c0 net/ipv4/ip_tunnel.c:1060 ops_init+0xaf/0x470 net/core/net_namespace.c:140 setup_net+0x40f/0xa30 net/core/net_namespace.c:333 copy_net_ns+0x31e/0x760 net/core/net_namespace.c:474 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xbd/0x1f0 kernel/nsproxy.c:226 ksys_unshare+0x445/0x8e0 kernel/fork.c:2998 __do_sys_unshare kernel/fork.c:3066 [inline] __se_sys_unshare kernel/fork.c:3064 [inline] __x64_sys_unshare+0x2d/0x40 kernel/fork.c:3064 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x447499 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f02ff0f7318 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00000000004cc408 RCX: 0000000000447499 RDX: 00007f02ff0f7700 RSI: a813deebf437d1e2 RDI: 0000000040000000 RBP: 00000000004cc400 R08: 00007f02ff0f7700 R09: 0000000000000000 R10: 00007f02ff0f7700 R11: 0000000000000246 R12: 000000000049c17c R13: 00007ffe65a9108f R14: 00007f02ff0f7400 R15: 0000000000022000