BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4175, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor.0/4175: #0: ffffffff8d0969d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x14/0x30 net/netlink/genetlink.c:860 #1: ffffffff8d096a88 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8d096a88 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x3e5/0x630 net/netlink/genetlink.c:848 #2: ffff88801168cc38 (k-clock-AF_INET){+++.}-{2:2}, at: l2tp_tunnel_register+0xf9/0xf60 net/l2tp/l2tp_core.c:1477 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 4175 Comm: syz-executor.0 Not tainted 6.1.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x5b/0x81 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9890 percpu_down_read include/linux/percpu-rwsem.h:49 [inline] cpus_read_lock+0x15/0xd0 kernel/cpu.c:310 static_key_slow_inc+0xd/0x20 kernel/jump_label.c:158 l2tp_tunnel_register+0x9c3/0xf60 net/l2tp/l2tp_core.c:1509 l2tp_nl_cmd_tunnel_create+0x364/0x9a0 net/l2tp/l2tp_netlink.c:245 genl_family_rcv_msg_doit+0x1e4/0x2f0 net/netlink/genetlink.c:756 genl_family_rcv_msg net/netlink/genetlink.c:833 [inline] genl_rcv_msg+0x34c/0x630 net/netlink/genetlink.c:850 netlink_rcv_skb+0x11c/0x370 net/netlink/af_netlink.c:2540 genl_rcv+0x23/0x30 net/netlink/genetlink.c:861 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x437/0x710 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x786/0xc30 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xaf/0xe0 net/socket.c:734 sock_no_sendpage+0x100/0x150 net/core/sock.c:3219 kernel_sendpage.part.0+0x12f/0x520 net/socket.c:3561 kernel_sendpage net/socket.c:3558 [inline] sock_sendpage+0xc1/0x190 net/socket.c:1054 pipe_to_sendpage+0x249/0x410 fs/splice.c:361 splice_from_pipe_feed fs/splice.c:415 [inline] __splice_from_pipe+0x375/0x810 fs/splice.c:559 splice_from_pipe fs/splice.c:594 [inline] generic_splice_sendpage+0xbe/0x120 fs/splice.c:743 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xff/0x1d0 fs/splice.c:931 splice_direct_to_actor+0x2bf/0x790 fs/splice.c:886 do_splice_direct+0x14c/0x260 fs/splice.c:974 do_sendfile+0x93d/0x1150 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x18a/0x1d0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5b5a68b639 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:00007f5b5b350168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5b5a7abf80 RCX: 00007f5b5a68b639 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f5b5a6e6ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc53d868ef R14: 00007f5b5b350300 R15: 0000000000022000