./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor885151000 <...> Warning: Permanently added '10.128.0.107' (ED25519) to the list of known hosts. execve("./syz-executor885151000", ["./syz-executor885151000"], 0x7fff3d58cc70 /* 10 vars */) = 0 brk(NULL) = 0x5555642cd000 brk(0x5555642cdd00) = 0x5555642cdd00 arch_prctl(ARCH_SET_FS, 0x5555642cd380) = 0 set_tid_address(0x5555642cd650) = 5098 set_robust_list(0x5555642cd660, 24) = 0 rseq(0x5555642cdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor885151000", 4096) = 27 getrandom("\xed\xae\x30\xaa\x88\x76\x8d\x31", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555642cdd00 brk(0x5555642eed00) = 0x5555642eed00 brk(0x5555642ef000) = 0x5555642ef000 mprotect(0x7f573425e000, 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 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5099 attached [pid 5099] set_robust_list(0x5555642cd660, 24 [pid 5098] <... clone resumed>, child_tidptr=0x5555642cd650) = 5099 [pid 5099] <... set_robust_list resumed>) = 0 [pid 5099] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5099] setpgid(0, 0) = 0 [pid 5099] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5099] write(3, "1000", 4) = 4 [pid 5099] close(3) = 0 [pid 5099] write(1, "executing program\n", 18executing program ) = 18 [pid 5099] bpf(BPF_PROG_LOAD, {prog_type=BPF_PROG_TYPE_UNSPEC, insn_cnt=12, insns=0x20000440, license=NULL, log_level=0, log_size=0, log_buf=NULL, kern_version=KERNEL_VERSION(0, 0, 0), prog_flags=0, prog_name="", prog_ifindex=0, expected_attach_type=BPF_CGROUP_INET_INGRESS, prog_btf_fd=-1, func_info_rec_size=0, func_info=NULL, func_info_cnt=0, line_info_rec_size=0, line_info=NULL, line_info_cnt=4294966948, attach_btf_id=0, attach_prog_fd=0, fd_array=NULL}, 144) = -1 EFAULT (Bad address) [pid 5099] socketpair(AF_TIPC, SOCK_DGRAM, 0, [3, 4]) = 0 [pid 5099] close(3) = 0 [pid 5099] bpf(BPF_MAP_CREATE, {map_type=BPF_MAP_TYPE_LPM_TRIE, key_size=7, value_size=65537, max_entries=8, map_flags=BPF_F_NO_PREALLOC, inner_map_fd=-1, map_name="", map_ifindex=0, btf_fd=-1, btf_key_type_id=0, btf_value_type_id=0, btf_vmlinux_value_type_id=0, map_extra=0}, 72) = 3 [pid 5099] bpf(BPF_PROG_LOAD, {prog_type=BPF_PROG_TYPE_UNSPEC, insn_cnt=12, insns=0x20000440, license=NULL, log_level=0, log_size=0, log_buf=NULL, kern_version=KERNEL_VERSION(0, 0, 0), prog_flags=0, prog_name="", prog_ifindex=0, expected_attach_type=BPF_CGROUP_INET_INGRESS, prog_btf_fd=-1, func_info_rec_size=0, func_info=NULL, func_info_cnt=0, line_info_rec_size=0, line_info=NULL, line_info_cnt=0, attach_btf_id=0, attach_prog_fd=0, fd_array=NULL}, 144) = -1 EFAULT (Bad address) [pid 5099] close(3) = 0 [pid 5099] bpf(BPF_MAP_CREATE, {map_type=BPF_MAP_TYPE_LPM_TRIE, key_size=7, value_size=3983, max_entries=9, map_flags=BPF_F_NO_PREALLOC, inner_map_fd=-1, map_name="", map_ifindex=0, btf_fd=-1, btf_key_type_id=0, btf_value_type_id=0, btf_vmlinux_value_type_id=0, map_extra=0}, 72) = 3 [pid 5099] bpf(BPF_MAP_UPDATE_ELEM, {map_fd=3, key=0x20000340, value=0x20000200, flags=BPF_ANY}, 32) = 0 [pid 5099] bpf(BPF_PROG_LOAD, {prog_type=BPF_PROG_TYPE_RAW_TRACEPOINT, insn_cnt=12, insns=0x20000440, license="GPL", log_level=0, log_size=0, log_buf=NULL, kern_version=KERNEL_VERSION(0, 0, 0), prog_flags=0, prog_name="", prog_ifindex=0, expected_attach_type=BPF_CGROUP_INET_INGRESS, prog_btf_fd=-1, func_info_rec_size=0, func_info=NULL, func_info_cnt=0, line_info_rec_size=0, line_info=NULL, line_info_cnt=0, attach_btf_id=0, attach_prog_fd=0, fd_array=NULL}, 144) = 5 [pid 5099] bpf(BPF_RAW_TRACEPOINT_OPEN, {raw_tracepoint={name="timer_start", prog_fd=5}}, 16) = 6 [ 73.067306][ T5093] [ 73.069686][ T5093] ====================================================== [ 73.076717][ T5093] WARNING: possible circular locking dependency detected [ 73.083738][ T5093] 6.9.0-syzkaller-12155-g7015843afcaf #0 Not tainted [ 73.090405][ T5093] ------------------------------------------------------ [ 73.097443][ T5093] sshd/5093 is trying to acquire lock: [ 73.102916][ T5093] ffff8880b9429430 (krc.lock){....}-{2:2}, at: kvfree_call_rcu+0x18a/0x790 [ 73.111589][ T5093] [ 73.111589][ T5093] but task is already holding lock: [ 73.118964][ T5093] ffff8880b942a718 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x744/0xeb0 [ 73.127507][ T5093] [ 73.127507][ T5093] which lock already depends on the new lock. [ 73.127507][ T5093] [ 73.137908][ T5093] [ 73.137908][ T5093] the existing dependency chain (in reverse order) is: [ 73.146915][ T5093] [ 73.146915][ T5093] -> #1 (&base->lock){-.-.}-{2:2}: [ 73.154219][ T5093] lock_acquire+0x1ed/0x550 [ 73.159247][ T5093] _raw_spin_lock_irqsave+0xd5/0x120 [ 73.165072][ T5093] lock_timer_base+0x112/0x240 [ 73.170373][ T5093] __mod_timer+0x1ca/0xeb0 [ 73.175309][ T5093] queue_delayed_work_on+0x1ca/0x390 [ 73.181118][ T5093] kvfree_call_rcu+0x47f/0x790 [ 73.186417][ T5093] rtnl_register_internal+0x482/0x590 [ 73.192316][ T5093] rtnl_register+0x36/0x80 [ 73.197348][ T5093] ip_rt_init+0x2f6/0x3a0 [ 73.202205][ T5093] ip_init+0xe/0x20 [ 73.206541][ T5093] inet_init+0x3d8/0x580 [ 73.211311][ T5093] do_one_initcall+0x248/0x880 [ 73.216602][ T5093] do_initcall_level+0x157/0x210 [ 73.222082][ T5093] do_initcalls+0x3f/0x80 [ 73.226939][ T5093] kernel_init_freeable+0x435/0x5d0 [ 73.232754][ T5093] kernel_init+0x1d/0x2b0 [ 73.237624][ T5093] ret_from_fork+0x4b/0x80 [ 73.242592][ T5093] ret_from_fork_asm+0x1a/0x30 [ 73.247913][ T5093] [ 73.247913][ T5093] -> #0 (krc.lock){....}-{2:2}: [ 73.254974][ T5093] validate_chain+0x18e0/0x5900 [ 73.260361][ T5093] __lock_acquire+0x1346/0x1fd0 [ 73.265842][ T5093] lock_acquire+0x1ed/0x550 [ 73.270878][ T5093] _raw_spin_lock+0x2e/0x40 [ 73.275912][ T5093] kvfree_call_rcu+0x18a/0x790 [ 73.281203][ T5093] trie_delete_elem+0x546/0x6a0 [ 73.286577][ T5093] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 73.292577][ T5093] bpf_trace_run2+0x2ec/0x540 [ 73.297783][ T5093] enqueue_timer+0x3ce/0x570 [ 73.302902][ T5093] __mod_timer+0xa0e/0xeb0 [ 73.308014][ T5093] sk_reset_timer+0x23/0xc0 [ 73.313041][ T5093] tcp_event_new_data_sent+0x203/0x360 [ 73.319029][ T5093] tcp_write_xmit+0x18dc/0x6a10 [ 73.324425][ T5093] __tcp_push_pending_frames+0x9b/0x360 [ 73.330503][ T5093] tcp_sendmsg_locked+0x4313/0x4d70 [ 73.336256][ T5093] tcp_sendmsg+0x30/0x50 [ 73.341029][ T5093] __sock_sendmsg+0x1a6/0x270 [ 73.346229][ T5093] sock_write_iter+0x2dd/0x400 [ 73.351534][ T5093] vfs_write+0xa72/0xc90 [ 73.356319][ T5093] ksys_write+0x1a0/0x2c0 [ 73.361206][ T5093] do_syscall_64+0xf3/0x230 [ 73.366265][ T5093] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.372703][ T5093] [ 73.372703][ T5093] other info that might help us debug this: [ 73.372703][ T5093] [ 73.382955][ T5093] Possible unsafe locking scenario: [ 73.382955][ T5093] [ 73.390411][ T5093] CPU0 CPU1 [ 73.395806][ T5093] ---- ---- [ 73.401188][ T5093] lock(&base->lock); [ 73.405275][ T5093] lock(krc.lock); [ 73.411610][ T5093] lock(&base->lock); [ 73.418204][ T5093] lock(krc.lock); [ 73.422016][ T5093] [ 73.422016][ T5093] *** DEADLOCK *** [ 73.422016][ T5093] [ 73.430200][ T5093] 3 locks held by sshd/5093: [ 73.434835][ T5093] #0: ffff88801fe29ad8 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x22/0x50 [ 73.444044][ T5093] #1: ffff8880b942a718 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x744/0xeb0 [ 73.453053][ T5093] #2: ffffffff8e333e60 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x1fc/0x540 [ 73.462502][ T5093] [ 73.462502][ T5093] stack backtrace: [ 73.468417][ T5093] CPU: 0 PID: 5093 Comm: sshd Not tainted 6.9.0-syzkaller-12155-g7015843afcaf #0 [ 73.477574][ T5093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 73.487689][ T5093] Call Trace: [ 73.490974][ T5093] [ 73.493915][ T5093] dump_stack_lvl+0x241/0x360 [ 73.498693][ T5093] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.503901][ T5093] ? print_circular_bug+0x130/0x1a0 [ 73.509113][ T5093] check_noncircular+0x36a/0x4a0 [ 73.514076][ T5093] ? __pfx_check_noncircular+0x10/0x10 [ 73.519632][ T5093] ? lockdep_lock+0x123/0x2b0 [ 73.524314][ T5093] ? mark_lock+0x9a/0x350 [ 73.528653][ T5093] validate_chain+0x18e0/0x5900 [ 73.533558][ T5093] ? __pfx_validate_chain+0x10/0x10 [ 73.538764][ T5093] ? stack_depot_save_flags+0x6e4/0x830 [ 73.544329][ T5093] ? do_raw_spin_lock+0x14f/0x370 [ 73.549367][ T5093] ? __pfx_lock_release+0x10/0x10 [ 73.554430][ T5093] ? do_raw_spin_unlock+0x13c/0x8b0 [ 73.559682][ T5093] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 73.565596][ T5093] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 73.572128][ T5093] ? stack_trace_save+0x118/0x1d0 [ 73.577175][ T5093] ? mark_lock+0x9a/0x350 [ 73.581604][ T5093] __lock_acquire+0x1346/0x1fd0 [ 73.586480][ T5093] lock_acquire+0x1ed/0x550 [ 73.591036][ T5093] ? kvfree_call_rcu+0x18a/0x790 [ 73.596024][ T5093] ? __pfx_lock_acquire+0x10/0x10 [ 73.601078][ T5093] ? __phys_addr+0xba/0x170 [ 73.605598][ T5093] _raw_spin_lock+0x2e/0x40 [ 73.610163][ T5093] ? kvfree_call_rcu+0x18a/0x790 [ 73.615141][ T5093] kvfree_call_rcu+0x18a/0x790 [ 73.619933][ T5093] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 73.625940][ T5093] ? __pfx_kvfree_call_rcu+0x10/0x10 [ 73.631237][ T5093] ? longest_prefix_match+0x49f/0x650 [ 73.636620][ T5093] trie_delete_elem+0x546/0x6a0 [ 73.641484][ T5093] ? bpf_trace_run2+0x1fc/0x540 [ 73.646345][ T5093] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 73.651806][ T5093] bpf_trace_run2+0x2ec/0x540 [ 73.656499][ T5093] ? __pfx_bpf_trace_run2+0x10/0x10 [ 73.661716][ T5093] ? __pfx_debug_object_activate+0x10/0x10 [ 73.667531][ T5093] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 73.672915][ T5093] enqueue_timer+0x3ce/0x570 [ 73.677608][ T5093] __mod_timer+0xa0e/0xeb0 [ 73.682114][ T5093] ? __pfx___mod_timer+0x10/0x10 [ 73.687118][ T5093] ? __pfx_seqcount_lockdep_reader_access+0x10/0x10 [ 73.693733][ T5093] ? ktime_get+0x3c/0xb0 [ 73.697988][ T5093] ? __asan_memset+0x23/0x50 [ 73.703026][ T5093] sk_reset_timer+0x23/0xc0 [ 73.707541][ T5093] tcp_event_new_data_sent+0x203/0x360 [ 73.713152][ T5093] tcp_write_xmit+0x18dc/0x6a10 [ 73.718032][ T5093] ? __virt_addr_valid+0x183/0x520 [ 73.723148][ T5093] ? __alloc_skb+0x2d5/0x440 [ 73.727757][ T5093] __tcp_push_pending_frames+0x9b/0x360 [ 73.733358][ T5093] tcp_sendmsg_locked+0x4313/0x4d70 [ 73.738602][ T5093] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 73.744940][ T5093] ? __pfx_tcp_sendmsg_locked+0x10/0x10 [ 73.750497][ T5093] ? __local_bh_enable_ip+0x168/0x200 [ 73.755903][ T5093] ? do_raw_spin_unlock+0x13c/0x8b0 [ 73.761220][ T5093] tcp_sendmsg+0x30/0x50 [ 73.765489][ T5093] __sock_sendmsg+0x1a6/0x270 [ 73.770181][ T5093] sock_write_iter+0x2dd/0x400 [ 73.774954][ T5093] ? __pfx_sock_write_iter+0x10/0x10 [ 73.780252][ T5093] ? bpf_lsm_file_permission+0x9/0x10 [ 73.785641][ T5093] ? security_file_permission+0x7f/0xa0 [ 73.791203][ T5093] vfs_write+0xa72/0xc90 [ 73.795454][ T5093] ? __pfx_sock_write_iter+0x10/0x10 [ 73.800743][ T5093] ? __pfx_vfs_write+0x10/0x10 [ 73.805511][ T5093] ? __set_current_blocked+0x310/0x380 [ 73.810978][ T5093] ? __might_fault+0xc6/0x120 [ 73.815660][ T5093] ksys_write+0x1a0/0x2c0 [ 73.820000][ T5093] ? __pfx_ksys_write+0x10/0x10 [ 73.824860][ T5093] ? do_syscall_64+0x100/0x230 [ 73.829720][ T5093] ? do_syscall_64+0xb6/0x230 [ 73.834402][ T5093] do_syscall_64+0xf3/0x230 [ 73.838915][ T5093] ? clear_bhb_loop+0x35/0x90 [ 73.843601][ T5093] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.849510][ T5093] RIP: 0033:0x7f243a716bf2 [ 73.853928][ T5093] Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83 [ 73.873565][ T5093] RSP: 002b:00007fff25eac9c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 73.882008][ T5093] RAX: ffffffffffffffda RBX: 000000000000002c RCX: 00007f243a716bf2 [ 73.890004][ T5093] RDX: 000000000000002c RSI: 0000559e8c36b960 RDI: 0000000000000004 [ 73.898008][ T5093] RBP: 0000559e8c3743f0 R08: 0000000000000000 R09: 0000000000000000 [ 73.906008][ T5093] R10: 0000000000000000 R11: 0000000000000246 R12: 0000559e4db8eaa4 [ 73.913988][ T5093] R13: 0000000000000049 R14: 0000559e4db8f3e8 R15: 00007fff25eaca38 [ 73.922065][ T5093]