percpu: allocation failed, size=488 align=8 atomic=0, failed to allocate new chunk CPU: 0 PID: 6920 Comm: syz-executor.0 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0 BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 6920, name: syz-executor.0 preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor.0/6920: #0: ffffffff8d79d550 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2f5/0x760 net/core/net_namespace.c:468 #1: ffffffff8d7b1e28 (rtnl_mutex){+.+.}-{3:3}, at: register_netdev+0x11/0x50 net/core/dev.c:10194 #2: ffffffff8c09f148 (pcpu_alloc_mutex){+.+.}-{3:3}, at: pcpu_alloc+0xc77/0x14f0 mm/percpu.c:1774 irq event stamp: 16076 hardirqs last enabled at (16075): [] __up_console_sem+0xae/0xc0 kernel/printk/printk.c:264 hardirqs last disabled at (16076): [] dump_stack_lvl+0x2e/0x134 lib/dump_stack.c:139 softirqs last enabled at (15924): [] inet6_fill_ifla6_attrs+0x1d49/0x23c0 net/ipv6/addrconf.c:5705 softirqs last disabled at (15922): [] inet6_fill_ifla6_attrs+0x1cfe/0x23c0 net/ipv6/addrconf.c:5703 CPU: 0 PID: 6920 Comm: syz-executor.0 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0 syz-executor.0[6920] cmdline: Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:122 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9896 down_read_killable+0x75/0x490 kernel/locking/rwsem.c:1521 mmap_read_lock_killable include/linux/mmap_lock.h:126 [inline] __access_remote_vm+0xac/0x6f0 mm/memory.c:5461 get_mm_cmdline.part.0+0x217/0x620 fs/proc/base.c:299 get_mm_cmdline fs/proc/base.c:367 [inline] get_task_cmdline_kernel+0x1d9/0x220 fs/proc/base.c:367 dump_stack_print_cmdline.part.0+0x82/0x150 lib/dump_stack.c:61 dump_stack_print_cmdline lib/dump_stack.c:89 [inline] dump_stack_print_info+0x185/0x190 lib/dump_stack.c:97 __dump_stack lib/dump_stack.c:121 [inline] dump_stack_lvl+0xc1/0x134 lib/dump_stack.c:140 pcpu_alloc.cold+0x27/0x5d mm/percpu.c:1903 gro_cells_init+0x2a/0x310 net/core/gro_cells.c:73 ip6gre_tunnel_init_common+0x345/0x820 net/ipv6/ip6_gre.c:1514 ip6gre_tunnel_init+0x14/0x170 net/ipv6/ip6_gre.c:1546 register_netdevice+0x5e1/0x1680 net/core/dev.c:10000 register_netdev+0x2d/0x50 net/core/dev.c:10196 ip6gre_init_net+0x3cd/0x630 net/ipv6/ip6_gre.c:1638 ops_init+0xaf/0x470 net/core/net_namespace.c:135 setup_net+0x5d1/0xc50 net/core/net_namespace.c:326 copy_net_ns+0x318/0x760 net/core/net_namespace.c:472 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 copy_namespaces+0x391/0x480 kernel/nsproxy.c:178 copy_process+0x308a/0x7120 kernel/fork.c:2262 kernel_clone+0xe7/0xab0 kernel/fork.c:2677 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2976 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3d01289279 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f3d02461038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f3d0139c1f0 RCX: 00007f3d01289279 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f3d02461050 RBP: 00007f3d012e3189 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f3d02461050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffc10de6fff R14: 00007f3d02461300 R15: 0000000000022000 syz-executor.0[6920] cmdline: Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:122 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140 pcpu_alloc.cold+0x27/0x5d mm/percpu.c:1903 gro_cells_init+0x2a/0x310 net/core/gro_cells.c:73 ip6gre_tunnel_init_common+0x345/0x820 net/ipv6/ip6_gre.c:1514 ip6gre_tunnel_init+0x14/0x170 net/ipv6/ip6_gre.c:1546 register_netdevice+0x5e1/0x1680 net/core/dev.c:10000 register_netdev+0x2d/0x50 net/core/dev.c:10196 ip6gre_init_net+0x3cd/0x630 net/ipv6/ip6_gre.c:1638 ops_init+0xaf/0x470 net/core/net_namespace.c:135 setup_net+0x5d1/0xc50 net/core/net_namespace.c:326 copy_net_ns+0x318/0x760 net/core/net_namespace.c:472 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 copy_namespaces+0x391/0x480 kernel/nsproxy.c:178 copy_process+0x308a/0x7120 kernel/fork.c:2262 kernel_clone+0xe7/0xab0 kernel/fork.c:2677 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2976 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3d01289279 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f3d02461038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f3d0139c1f0 RCX: 00007f3d01289279 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f3d02461050 RBP: 00007f3d012e3189 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f3d02461050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffc10de6fff R14: 00007f3d02461300 R15: 0000000000022000