./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2041495560 <...> Warning: Permanently added '10.128.1.98' (ED25519) to the list of known hosts. execve("./syz-executor2041495560", ["./syz-executor2041495560"], 0x7ffd5dd52470 /* 10 vars */) = 0 brk(NULL) = 0x555591edc000 brk(0x555591edcd40) = 0x555591edcd40 arch_prctl(ARCH_SET_FS, 0x555591edc3c0) = 0 set_tid_address(0x555591edc690) = 5089 set_robust_list(0x555591edc6a0, 24) = 0 rseq(0x555591edcce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2041495560", 4096) = 28 getrandom("\xfc\x7e\xfc\xbc\x87\xd3\x4a\x4b", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555591edcd40 brk(0x555591efdd40) = 0x555591efdd40 brk(0x555591efe000) = 0x555591efe000 mprotect(0x7f052d2fd000, 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 write(1, "executing program\n", 18executing program ) = 18 futex(0x7f052d30332c, FUTEX_WAKE_PRIVATE, 1000000) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f052d2a00a0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f052d291720}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f052d216000 mprotect(0x7f052d217000, 131072, PROT_READ|PROT_WRITE) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f052d236990, parent_tid=0x7f052d236990, exit_signal=0, stack=0x7f052d216000, stack_size=0x20300, tls=0x7f052d2366c0}./strace-static-x86_64: Process 5090 attached [pid 5090] rseq(0x7f052d236fe0, 0x20, 0, 0x53053053) = 0 [pid 5090] set_robust_list(0x7f052d2369a0, 24 [pid 5089] <... clone3 resumed> => {parent_tid=[5090]}, 88) = 5090 [pid 5090] <... set_robust_list resumed>) = 0 [pid 5090] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5090] futex(0x7f052d303328, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5089] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5089] futex(0x7f052d303328, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5090] <... futex resumed>) = 0 [pid 5090] bpf(BPF_MAP_CREATE, {map_type=BPF_MAP_TYPE_LPM_TRIE, key_size=5, value_size=2, max_entries=1, map_flags=BPF_F_NO_PREALLOC|BPF_F_NUMA_NODE, inner_map_fd=-1, numa_node=0, 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 [pid 5089] futex(0x7f052d30332c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5090] <... bpf resumed>) = 3 [pid 5090] futex(0x7f052d30332c, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5090] futex(0x7f052d303328, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5089] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5089] futex(0x7f052d303328, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5090] <... futex resumed>) = 0 [pid 5089] futex(0x7f052d30332c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5090] 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 5090] futex(0x7f052d30332c, FUTEX_WAKE_PRIVATE, 1000000 [pid 5089] <... futex resumed>) = 0 [pid 5090] <... futex resumed>) = 1 [pid 5089] futex(0x7f052d303328, FUTEX_WAKE_PRIVATE, 1000000 [pid 5090] bpf(BPF_MAP_UPDATE_ELEM, {map_fd=3, key=0x20000300, value=0x20000540, flags=BPF_ANY}, 32 [pid 5089] <... futex resumed>) = 0 [pid 5090] <... bpf resumed>) = 0 [pid 5089] futex(0x7f052d30332c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5090] futex(0x7f052d30332c, FUTEX_WAKE_PRIVATE, 1000000 [pid 5089] <... futex resumed>) = 0 [pid 5089] futex(0x7f052d303328, FUTEX_WAKE_PRIVATE, 1000000 [pid 5090] <... futex resumed>) = 1 [pid 5089] <... futex resumed>) = 0 [pid 5089] futex(0x7f052d30332c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5090] 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) = 4 [pid 5090] futex(0x7f052d30332c, FUTEX_WAKE_PRIVATE, 1000000 [pid 5089] <... futex resumed>) = 0 [pid 5090] <... futex resumed>) = 1 [pid 5089] futex(0x7f052d303328, FUTEX_WAKE_PRIVATE, 1000000 [pid 5090] bpf(BPF_RAW_TRACEPOINT_OPEN, {raw_tracepoint={name="kfree", prog_fd=4}}, 16 [pid 5089] <... futex resumed>) = 0 [pid 5089] futex(0x7f052d30332c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=550000000} [pid 5090] <... bpf resumed>) = 5 [pid 5090] futex(0x7f052d30332c, FUTEX_WAKE_PRIVATE, 1000000 [pid 5089] <... futex resumed>) = 0 [pid 5090] <... futex resumed>) = 1 [pid 5089] futex(0x7f052d303328, FUTEX_WAKE_PRIVATE, 1000000 [ 55.211189][ T5090] [ 55.213547][ T5090] ============================================ [ 55.219678][ T5090] WARNING: possible recursive locking detected [ 55.225805][ T5090] 6.10.0-rc4-syzkaller-00936-g50b70845fc5c #0 Not tainted [ 55.232921][ T5090] -------------------------------------------- [ 55.239060][ T5090] syz-executor204/5090 is trying to acquire lock: [ 55.245455][ T5090] ffff88802ff2f1f8 (&trie->lock){....}-{2:2}, at: trie_delete_elem+0x96/0x6a0 [ 55.254331][ T5090] [ 55.254331][ T5090] but task is already holding lock: [ 55.261676][ T5090] ffff88802ff2f1f8 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc8/0xc00 [ 55.270519][ T5090] [ 55.270519][ T5090] other info that might help us debug this: [ 55.278553][ T5090] Possible unsafe locking scenario: [ 55.278553][ T5090] [ 55.285976][ T5090] CPU0 [ 55.289233][ T5090] ---- [ 55.292488][ T5090] lock(&trie->lock); [ 55.296534][ T5090] lock(&trie->lock); [ 55.300579][ T5090] [ 55.300579][ T5090] *** DEADLOCK *** [ 55.300579][ T5090] [ 55.308697][ T5090] May be due to missing lock nesting notation [ 55.308697][ T5090] [ 55.316993][ T5090] 3 locks held by syz-executor204/5090: [ 55.322510][ T5090] #0: ffffffff8e333fa0 (rcu_read_lock){....}-{1:2}, at: bpf_map_update_value+0x3c4/0x540 [ 55.332420][ T5090] #1: ffff88802ff2f1f8 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc8/0xc00 [ 55.341700][ T5090] #2: ffffffff8e333fa0 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x1fc/0x540 [ 55.351070][ T5090] [ 55.351070][ T5090] stack backtrace: [ 55.356946][ T5090] CPU: 0 PID: 5090 Comm: syz-executor204 Not tainted 6.10.0-rc4-syzkaller-00936-g50b70845fc5c #0 [ 55.367418][ T5090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 [ 55.377546][ T5090] Call Trace: [ 55.380809][ T5090] [ 55.383743][ T5090] dump_stack_lvl+0x241/0x360 [ 55.388410][ T5090] ? __pfx_dump_stack_lvl+0x10/0x10 [ 55.393591][ T5090] ? print_deadlock_bug+0x479/0x620 [ 55.398771][ T5090] ? validate_chain+0x11e/0x5900 [ 55.403687][ T5090] validate_chain+0x15d3/0x5900 [ 55.408521][ T5090] ? validate_chain+0x11e/0x5900 [ 55.413435][ T5090] ? __pfx_validate_chain+0x10/0x10 [ 55.418611][ T5090] ? validate_chain+0x11e/0x5900 [ 55.423525][ T5090] ? __pfx_validate_chain+0x10/0x10 [ 55.428702][ T5090] ? __pfx_validate_chain+0x10/0x10 [ 55.433880][ T5090] ? mark_lock+0x9a/0x350 [ 55.438188][ T5090] ? __lock_acquire+0x1346/0x1fd0 [ 55.443190][ T5090] ? validate_chain+0x11e/0x5900 [ 55.448111][ T5090] ? __pfx_validate_chain+0x10/0x10 [ 55.453291][ T5090] ? mark_lock+0x9a/0x350 [ 55.457598][ T5090] __lock_acquire+0x1346/0x1fd0 [ 55.462430][ T5090] lock_acquire+0x1ed/0x550 [ 55.466910][ T5090] ? trie_delete_elem+0x96/0x6a0 [ 55.471832][ T5090] ? __pfx_lock_acquire+0x10/0x10 [ 55.476843][ T5090] ? __lock_acquire+0x1346/0x1fd0 [ 55.481849][ T5090] _raw_spin_lock_irqsave+0xd5/0x120 [ 55.487120][ T5090] ? trie_delete_elem+0x96/0x6a0 [ 55.492042][ T5090] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 55.497915][ T5090] ? __pfx_lock_acquire+0x10/0x10 [ 55.502927][ T5090] trie_delete_elem+0x96/0x6a0 [ 55.507666][ T5090] ? __pfx___cant_migrate+0x10/0x10 [ 55.512845][ T5090] ? bpf_trace_run2+0x1fc/0x540 [ 55.517675][ T5090] bpf_prog_fdee3c9a1e8a2a6e+0x45/0x49 [ 55.523117][ T5090] bpf_trace_run2+0x2ec/0x540 [ 55.527951][ T5090] ? __pfx_bpf_trace_run2+0x10/0x10 [ 55.533130][ T5090] ? trie_update_elem+0x26c/0xc00 [ 55.538131][ T5090] ? _raw_spin_lock_irqsave+0xe1/0x120 [ 55.543572][ T5090] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 55.549463][ T5090] ? trie_update_elem+0x26c/0xc00 [ 55.554464][ T5090] kfree+0x2bb/0x360 [ 55.558341][ T5090] trie_update_elem+0x26c/0xc00 [ 55.563168][ T5090] ? __might_fault+0xaa/0x120 [ 55.567823][ T5090] bpf_map_update_value+0x4d3/0x540 [ 55.573027][ T5090] map_update_elem+0x53a/0x6f0 [ 55.577769][ T5090] __sys_bpf+0x76f/0x810 [ 55.581996][ T5090] ? __pfx___sys_bpf+0x10/0x10 [ 55.586743][ T5090] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 55.593050][ T5090] ? do_syscall_64+0x100/0x230 [ 55.597796][ T5090] __x64_sys_bpf+0x7c/0x90 [ 55.602279][ T5090] do_syscall_64+0xf3/0x230 [ 55.606786][ T5090] ? clear_bhb_loop+0x35/0x90 [ 55.611441][ T5090] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 55.617326][ T5090] RIP: 0033:0x7f052d27a1f9 [ 55.621722][ T5090] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 [ 55.641304][ T5090] RSP: 002b:00007f052d236228 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 55.649695][ T5090] RAX: ffffffffffffffda RBX: 00007f052d303328 RCX: 00007f052d27a1f9 [pid 5090] bpf(BPF_MAP_UPDATE_ELEM, {map_fd=3, key=0x20000740, value=0x20000780, flags=BPF_ANY}, 144 [pid 5089] <... futex resumed>) = 0 [ 55.657651][ T5090] RDX: 0000000000000090 RSI: 0000000020000680 RDI: 0000000000000002 [ 55.665599][ T5090] RBP: 00007f052d303320 R08: 00007f052d2366c0 R09: 00007f052d2366c0 [ 55.673547][ T5090] R10: 00007f052d2366c0 R11: 0000000000000246 R12: 00007f052d30332c [ 55.681582][ T5090] R13: 00007f052d2d1004 R14: 0020756c6c392b25 R15: 00007ffe462caab8 [ 55.689536][ T5090]