./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2796582605 <...> [ 30.877825][ T3215] dhcpcd-run-hook (3215) used greatest stack depth: 22392 bytes left forked to background, child pid 3211 [ 32.940384][ T3212] 8021q: adding VLAN 0 to HW filter on device bond0 [ 32.950660][ T3212] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.15.198' (ECDSA) to the list of known hosts. execve("./syz-executor2796582605", ["./syz-executor2796582605"], 0x7fff9cca4270 /* 10 vars */) = 0 brk(NULL) = 0x555555897000 brk(0x555555897c40) = 0x555555897c40 arch_prctl(ARCH_SET_FS, 0x555555897300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2796582605", 4096) = 28 brk(0x5555558b8c40) = 0x5555558b8c40 brk(0x5555558b9000) = 0x5555558b9000 mprotect(0x7f806821c000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 3 socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 4 sendto(4, [{nlmsg_len=32, nlmsg_type=0x10 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x03\x00\x00\x00\x09\x00\x02\x00\x6c\x32\x74\x70\x00\x00\x00\x00"], 32, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 32 recvfrom(4, [{nlmsg_len=276, nlmsg_type=nlctrl, nlmsg_flags=0, nlmsg_seq=0, nlmsg_pid=3635}, "\x01\x02\x00\x00\x09\x00\x02\x00\x6c\x32\x74\x70\x00\x00\x00\x00\x06\x00\x01\x00\x30\x00\x00\x00\x08\x00\x03\x00\x01\x00\x00\x00\x08\x00\x04\x00\x00\x00\x00\x00\x08\x00\x05\x00\x23\x00\x00\x00\xb8\x00\x06\x00\x14\x00\x01\x00\x08\x00\x01\x00\x00\x00\x00\x00\x08\x00\x02\x00\x0a\x00\x00\x00\x14\x00\x02\x00\x08\x00\x01\x00\x01\x00\x00\x00\x08\x00\x02\x00\x1a\x00\x00\x00\x14\x00\x03\x00\x08\x00\x01\x00"...], 4096, 0, NULL, NULL) = 276 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3635}, {error=0, msg={nlmsg_len=32, nlmsg_type=nlctrl, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 close(4) = 0 syzkaller login: [ 53.243604][ T3635] BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49 [ 53.253477][ T3635] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3635, name: syz-executor279 [ 53.262962][ T3635] preempt_count: 1, expected: 0 [ 53.267839][ T3635] RCU nest depth: 0, expected: 0 [ 53.272763][ T3635] 3 locks held by syz-executor279/3635: [ 53.278339][ T3635] #0: ffffffff8df6b4f0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 [ 53.286611][ T3635] #1: ffffffff8df6b5a8 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x50d/0x780 [ 53.295614][ T3635] #2: ffff888027c94c38 (k-clock-AF_INET){+++.}-{2:2}, at: l2tp_tunnel_register+0x126/0x1210 [ 53.305878][ T3635] Preemption disabled at: [ 53.305886][ T3635] [<0000000000000000>] 0x0 [ 53.314670][ T3635] CPU: 0 PID: 3635 Comm: syz-executor279 Not tainted 6.1.0-rc5-syzkaller-00144-g84368d882b96 #0 [ 53.325273][ T3635] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 53.335332][ T3635] Call Trace: [ 53.338616][ T3635] [ 53.341557][ T3635] dump_stack_lvl+0xd1/0x138 [ 53.346174][ T3635] __might_resched.cold+0x222/0x26b [ 53.351393][ T3635] cpus_read_lock+0x1b/0x140 [ 53.356004][ T3635] static_key_slow_inc+0x12/0x20 [ 53.360963][ T3635] setup_udp_tunnel_sock+0x3e1/0x550 [ 53.366272][ T3635] l2tp_tunnel_register+0xc51/0x1210 [ 53.371588][ T3635] ? l2tp_tunnel_del_work+0x780/0x780 [ 53.376988][ T3635] ? debug_object_free+0x360/0x360 [ 53.382129][ T3635] ? l2tp_recv_common+0x3100/0x3100 [ 53.387357][ T3635] ? l2tp_tunnel_delete+0x50/0x50 [ 53.392408][ T3635] ? l2tp_tunnel_create+0x2bf/0x4b0 [ 53.397627][ T3635] ? l2tp_tunnel_create+0x3c6/0x4b0 [ 53.402853][ T3635] l2tp_nl_cmd_tunnel_create+0x3d6/0x8b0 [ 53.408545][ T3635] ? l2tp_tunnel_notify.constprop.0+0x160/0x160 [ 53.414831][ T3635] ? genl_family_rcv_msg_attrs_parse.constprop.0+0x1b7/0x290 [ 53.422222][ T3635] ? genl_family_rcv_msg_attrs_parse.constprop.0+0xaf/0x290 [ 53.429536][ T3635] genl_family_rcv_msg_doit+0x228/0x320 [ 53.435105][ T3635] ? genl_family_rcv_msg_attrs_parse.constprop.0+0x290/0x290 [ 53.442508][ T3635] ? ns_capable+0xdd/0x100 [ 53.446954][ T3635] genl_rcv_msg+0x445/0x780 [ 53.451479][ T3635] ? genl_start+0x670/0x670 [ 53.456004][ T3635] ? l2tp_tunnel_notify.constprop.0+0x160/0x160 [ 53.462283][ T3635] ? lock_release+0x810/0x810 [ 53.466996][ T3635] netlink_rcv_skb+0x157/0x430 [ 53.471777][ T3635] ? genl_start+0x670/0x670 [ 53.476299][ T3635] ? netlink_ack+0xd60/0xd60 [ 53.480914][ T3635] ? netlink_deliver_tap+0x1b1/0xc50 [ 53.486222][ T3635] genl_rcv+0x28/0x40 [ 53.490219][ T3635] netlink_unicast+0x547/0x7f0 [ 53.495004][ T3635] ? netlink_attachskb+0x890/0x890 [ 53.500134][ T3635] ? __virt_addr_valid+0x61/0x2e0 [ 53.505182][ T3635] ? __phys_addr_symbol+0x30/0x70 [ 53.510573][ T3635] ? __check_object_size+0x2e2/0x5a0 [ 53.515889][ T3635] netlink_sendmsg+0x91b/0xe10 [ 53.520675][ T3635] ? netlink_unicast+0x7f0/0x7f0 [ 53.525660][ T3635] ? bpf_lsm_socket_sendmsg+0x9/0x10 [ 53.530997][ T3635] ? netlink_unicast+0x7f0/0x7f0 [ 53.535960][ T3635] sock_sendmsg+0xd3/0x120 [ 53.540412][ T3635] ____sys_sendmsg+0x712/0x8c0 [ 53.545228][ T3635] ? copy_msghdr_from_user+0xfc/0x150 [ 53.550635][ T3635] ? kernel_sendmsg+0x50/0x50 [ 53.555361][ T3635] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 53.561400][ T3635] ___sys_sendmsg+0x110/0x1b0 [ 53.566108][ T3635] ? do_recvmmsg+0x6e0/0x6e0 [ 53.570734][ T3635] ? lock_release+0x810/0x810 [ 53.575459][ T3635] ? ptrace_stop.part.0+0x49a/0x8c0 [ 53.580793][ T3635] ? do_raw_spin_lock+0x124/0x2b0 [ 53.585839][ T3635] ? rwlock_bug.part.0+0x90/0x90 [ 53.590796][ T3635] ? _raw_spin_lock_irq+0x45/0x50 [ 53.595854][ T3635] ? __fget_light+0x20a/0x270 [ 53.600561][ T3635] __sys_sendmsg+0xf7/0x1c0 [ 53.605083][ T3635] ? __sys_sendmsg_sock+0x40/0x40 [ 53.610123][ T3635] ? lock_downgrade+0x6e0/0x6e0 [ 53.615022][ T3635] ? lockdep_hardirqs_on+0x7d/0x100 [ 53.620325][ T3635] ? _raw_spin_unlock_irq+0x2e/0x50 [ 53.625544][ T3635] ? ptrace_notify+0xfe/0x140 [ 53.630254][ T3635] do_syscall_64+0x39/0xb0 [ 53.634696][ T3635] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.640617][ T3635] RIP: 0033:0x7f80681afba9 [ 53.645077][ T3635] Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 [ 53.664712][ T3635] RSP: 002b:00007ffc4f82c938 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 53.673164][ T3635] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f80681afba9 [ 53.681154][ T3635] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003 sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\x3c\x00\x00\x00\x30\x00\x23\x09\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x05\x00\x07\x00\x00\x00\x00\x00\x08\x00\x09\x00\x00\x00\x00\x00\x06\x00\x02\x00\x00\x00\x00\x00\x08\x00\x0a\x00\x00\x00\x00\x00\x08\x00\x17\x00\xff\xff\xff\xff", iov_len=60}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 60 exit_group(0) = ? +++ exited with 0 +++ [ 53.689146][ T3635] RBP: 00007f8068173570 R08: 0000000000000006 R09: 0000000