BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 16755, name: syz-executor preempt_count: 2, expected: 0 RCU nest depth: 1, expected: 1 5 locks held by syz-executor/16755: #0: ffffffff8e898760 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x3cc/0x570 net/core/net_namespace.c:577 #1: ffffffff8e8a5878 (rtnl_mutex){+.+.}-{4:4}, at: ip_tunnel_init_net+0x2ab/0x800 net/ipv4/ip_tunnel.c:1146 #2: ffff8880600e7440 (&net->mpls.platform_mutex){+.+.}-{4:4}, at: mpls_dev_notify+0x78/0xd10 net/mpls/af_mpls.c:1632 #3: ffffffff8d5ae940 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #3: ffffffff8d5ae940 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #3: ffffffff8d5ae940 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2074 [inline] #3: ffffffff8d5ae940 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run10+0x1f2/0x510 kernel/trace/bpf_trace.c:2124 #4: ffff8880b883fe88 (&s->lock_key#14){+.+.}-{3:3}, at: spin_lock include/linux/spinlock_rt.h:44 [inline] #4: ffff8880b883fe88 (&s->lock_key#14){+.+.}-{3:3}, at: ___slab_alloc+0x12f/0x13e0 mm/slub.c:4521 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 16755 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x32a/0x480 kernel/sched/core.c:8827 __rt_spin_lock kernel/locking/spinlock_rt.c:48 [inline] rt_spin_lock+0xc7/0x3e0 kernel/locking/spinlock_rt.c:57 spin_lock include/linux/spinlock_rt.h:44 [inline] ___slab_alloc+0x12f/0x13e0 mm/slub.c:4521 __slab_alloc+0xc6/0x1f0 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] kmalloc_nolock_noprof+0x1be/0x440 mm/slub.c:5734 bpf_stream_elem_alloc kernel/bpf/stream.c:33 [inline] __bpf_stream_push_str+0xa8/0x2b0 kernel/bpf/stream.c:50 bpf_stream_stage_printk+0x14e/0x1c0 kernel/bpf/stream.c:306 bpf_prog_report_may_goto_violation+0xc4/0x190 kernel/bpf/core.c:3219 bpf_check_timed_may_goto+0xaa/0xb0 kernel/bpf/core.c:3237 arch_bpf_timed_may_goto+0x21/0x40 arch/x86/net/bpf_timed_may_goto.S:40 bpf_prog_6fd842a53d323cc5+0x53/0x5f bpf_dispatcher_nop_func include/linux/bpf.h:1378 [inline] __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run include/linux/filter.h:730 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline] bpf_trace_run10+0x2e4/0x510 kernel/trace/bpf_trace.c:2124 __bpf_trace_percpu_alloc_percpu+0x364/0x400 include/trace/events/percpu.h:11 __do_trace_percpu_alloc_percpu include/trace/events/percpu.h:11 [inline] trace_percpu_alloc_percpu include/trace/events/percpu.h:11 [inline] pcpu_alloc_noprof+0x1557/0x16d0 mm/percpu.c:1892 mpls_add_dev net/mpls/af_mpls.c:1477 [inline] mpls_dev_notify+0xe4/0xd10 net/mpls/af_mpls.c:1635 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2268 [inline] call_netdevice_notifiers net/core/dev.c:2282 [inline] register_netdevice+0x15d2/0x1a80 net/core/dev.c:11429 __ip_tunnel_create+0x3d7/0x550 net/ipv4/ip_tunnel.c:268 ip_tunnel_init_net+0x2ba/0x800 net/ipv4/ip_tunnel.c:1147 ops_init+0x35c/0x5c0 net/core/net_namespace.c:137 setup_net+0x110/0x330 net/core/net_namespace.c:446 copy_net_ns+0x3e3/0x570 net/core/net_namespace.c:581 create_new_namespaces+0x3e7/0x6a0 kernel/nsproxy.c:130 unshare_nsproxy_namespaces+0x11c/0x170 kernel/nsproxy.c:226 ksys_unshare+0x4c8/0x8c0 kernel/fork.c:3171 __do_sys_unshare kernel/fork.c:3242 [inline] __se_sys_unshare kernel/fork.c:3240 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3240 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe7d8480f47 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 10 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff75b4e578 EFLAGS: 00000206 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007fe7d86d5f40 RCX: 00007fe7d8480f47 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000 RBP: 00007fe7d86d67b8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000008 R13: 0000000000000003 R14: 00007fff75b4e848 R15: 0000000000000000