Warning: Permanently added '10.128.0.254' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 70.704378][ T4091] [ 70.706749][ T4091] ====================================================== [ 70.713751][ T4091] WARNING: possible circular locking dependency detected [ 70.720760][ T4091] 5.15.114-syzkaller #0 Not tainted [ 70.725940][ T4091] ------------------------------------------------------ [ 70.732941][ T4091] syz-executor168/4091 is trying to acquire lock: [ 70.739336][ T4091] ffff88801a8bbc70 (&rs->rs_recv_lock){...-}-{2:2}, at: rds_wake_sk_sleep+0x2a/0xd0 [ 70.748753][ T4091] [ 70.748753][ T4091] but task is already holding lock: [ 70.756101][ T4091] ffff88801d600900 (&rm->m_rs_lock){..-.}-{2:2}, at: rds_send_remove_from_sock+0x129/0x800 [ 70.766094][ T4091] [ 70.766094][ T4091] which lock already depends on the new lock. [ 70.766094][ T4091] [ 70.776478][ T4091] [ 70.776478][ T4091] the existing dependency chain (in reverse order) is: [ 70.785474][ T4091] [ 70.785474][ T4091] -> #1 (&rm->m_rs_lock){..-.}-{2:2}: [ 70.793016][ T4091] lock_acquire+0x1db/0x4f0 [ 70.798035][ T4091] _raw_spin_lock_irqsave+0xd1/0x120 [ 70.803828][ T4091] rds_message_put+0x148/0xc80 [ 70.809100][ T4091] rds_clear_recv_queue+0x2de/0x3b0 [ 70.814805][ T4091] rds_release+0xc1/0x2e0 [ 70.819730][ T4091] sock_close+0xcd/0x230 [ 70.824478][ T4091] __fput+0x3bf/0x890 [ 70.828970][ T4091] task_work_run+0x129/0x1a0 [ 70.834072][ T4091] do_exit+0x6a3/0x2480 [ 70.838740][ T4091] do_group_exit+0x144/0x310 [ 70.843841][ T4091] get_signal+0xc66/0x14e0 [ 70.848766][ T4091] arch_do_signal_or_restart+0xc3/0x1890 [ 70.855000][ T4091] exit_to_user_mode_loop+0x97/0x130 [ 70.860796][ T4091] exit_to_user_mode_prepare+0xb1/0x140 [ 70.866846][ T4091] syscall_exit_to_user_mode+0x5d/0x250 [ 70.872906][ T4091] do_syscall_64+0x49/0xb0 [ 70.877833][ T4091] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 70.884234][ T4091] [ 70.884234][ T4091] -> #0 (&rs->rs_recv_lock){...-}-{2:2}: [ 70.892039][ T4091] validate_chain+0x1646/0x58b0 [ 70.897398][ T4091] __lock_acquire+0x1295/0x1ff0 [ 70.902768][ T4091] lock_acquire+0x1db/0x4f0 [ 70.907802][ T4091] _raw_read_lock_irqsave+0xd9/0x120 [ 70.913596][ T4091] rds_wake_sk_sleep+0x2a/0xd0 [ 70.919051][ T4091] rds_send_remove_from_sock+0x1c9/0x800 [ 70.925193][ T4091] rds_send_path_drop_acked+0x362/0x3a0 [ 70.931247][ T4091] rds_tcp_write_space+0x193/0x560 [ 70.936867][ T4091] tcp_check_space+0x141/0x970 [ 70.942139][ T4091] tcp_rcv_established+0xeb6/0x1e20 [ 70.947847][ T4091] tcp_v4_do_rcv+0x423/0x960 [ 70.952947][ T4091] __release_sock+0x198/0x4b0 [ 70.958134][ T4091] release_sock+0x5d/0x1c0 [ 70.963066][ T4091] rds_send_xmit+0x1d16/0x2530 [ 70.968343][ T4091] rds_sendmsg+0x1b97/0x2240 [ 70.973440][ T4091] ____sys_sendmsg+0x59e/0x8f0 [ 70.978715][ T4091] ___sys_sendmsg+0x252/0x2e0 [ 70.983997][ T4091] __se_sys_sendmsg+0x19a/0x260 [ 70.989357][ T4091] do_syscall_64+0x3d/0xb0 [ 70.994283][ T4091] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 71.000692][ T4091] [ 71.000692][ T4091] other info that might help us debug this: [ 71.000692][ T4091] [ 71.010903][ T4091] Possible unsafe locking scenario: [ 71.010903][ T4091] [ 71.018447][ T4091] CPU0 CPU1 [ 71.023797][ T4091] ---- ---- [ 71.029144][ T4091] lock(&rm->m_rs_lock); [ 71.033463][ T4091] lock(&rs->rs_recv_lock); [ 71.040556][ T4091] lock(&rm->m_rs_lock); [ 71.047388][ T4091] lock(&rs->rs_recv_lock); [ 71.051963][ T4091] [ 71.051963][ T4091] *** DEADLOCK *** [ 71.051963][ T4091] [ 71.060091][ T4091] 3 locks held by syz-executor168/4091: [ 71.065618][ T4091] #0: ffff88807895c920 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sock_set_cork+0x29/0x1b0 [ 71.075536][ T4091] #1: ffff88807895cbd0 (k-clock-AF_INET){++.-}-{2:2}, at: rds_tcp_write_space+0x30/0x560 [ 71.085525][ T4091] #2: ffff88801d600900 (&rm->m_rs_lock){..-.}-{2:2}, at: rds_send_remove_from_sock+0x129/0x800 [ 71.095996][ T4091] [ 71.095996][ T4091] stack backtrace: [ 71.101881][ T4091] CPU: 1 PID: 4091 Comm: syz-executor168 Not tainted 5.15.114-syzkaller #0 [ 71.110472][ T4091] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 71.120527][ T4091] Call Trace: [ 71.123802][ T4091] [ 71.126728][ T4091] dump_stack_lvl+0x1e3/0x2cb [ 71.131402][ T4091] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 71.137029][ T4091] ? print_circular_bug+0x12b/0x1a0 [ 71.142230][ T4091] check_noncircular+0x2f8/0x3b0 [ 71.147169][ T4091] ? add_chain_block+0x850/0x850 [ 71.152097][ T4091] ? queued_spin_lock_slowpath+0x42/0x50 [ 71.157716][ T4091] ? lockdep_lock+0x1a7/0x2a0 [ 71.162388][ T4091] validate_chain+0x1646/0x58b0 [ 71.167237][ T4091] ? is_bpf_text_address+0x24f/0x260 [ 71.172513][ T4091] ? reacquire_held_locks+0x660/0x660 [ 71.177872][ T4091] ? reacquire_held_locks+0x660/0x660 [ 71.183232][ T4091] ? arch_stack_walk+0xf3/0x140 [ 71.188073][ T4091] ? look_up_lock_class+0x77/0x120 [ 71.193175][ T4091] ? register_lock_class+0x100/0x9a0 [ 71.198450][ T4091] ? look_up_lock_class+0x77/0x120 [ 71.203559][ T4091] ? register_lock_class+0x100/0x9a0 [ 71.208841][ T4091] ? is_dynamic_key+0x1f0/0x1f0 [ 71.213683][ T4091] ? validate_chain+0x112/0x58b0 [ 71.218610][ T4091] ? mark_lock+0x98/0x340 [ 71.222928][ T4091] __lock_acquire+0x1295/0x1ff0 [ 71.227783][ T4091] lock_acquire+0x1db/0x4f0 [ 71.232278][ T4091] ? rds_wake_sk_sleep+0x2a/0xd0 [ 71.237207][ T4091] ? read_lock_is_recursive+0x10/0x10 [ 71.242568][ T4091] ? read_lock_is_recursive+0x10/0x10 [ 71.247930][ T4091] ? do_raw_spin_lock+0x14a/0x370 [ 71.252947][ T4091] ? __rwlock_init+0x140/0x140 [ 71.257728][ T4091] _raw_read_lock_irqsave+0xd9/0x120 [ 71.263068][ T4091] ? rds_wake_sk_sleep+0x2a/0xd0 [ 71.268008][ T4091] ? _raw_read_lock+0x40/0x40 [ 71.272680][ T4091] ? _raw_spin_lock_irqsave+0xdd/0x120 [ 71.278140][ T4091] ? _raw_spin_lock+0x40/0x40 [ 71.282812][ T4091] rds_wake_sk_sleep+0x2a/0xd0 [ 71.287579][ T4091] rds_send_remove_from_sock+0x1c9/0x800 [ 71.293206][ T4091] ? rds_tcp_write_space+0x560/0x560 [ 71.298597][ T4091] rds_send_path_drop_acked+0x362/0x3a0 [ 71.304159][ T4091] ? rds_tcp_write_space+0x560/0x560 [ 71.309436][ T4091] ? rds_atomic_send_complete+0x410/0x410 [ 71.315150][ T4091] rds_tcp_write_space+0x193/0x560 [ 71.320267][ T4091] ? datagram_poll+0x3f0/0x3f0 [ 71.325024][ T4091] tcp_check_space+0x141/0x970 [ 71.329956][ T4091] tcp_rcv_established+0xeb6/0x1e20 [ 71.335145][ T4091] ? print_irqtrace_events+0x210/0x210 [ 71.340602][ T4091] ? lockdep_hardirqs_on+0x94/0x130 [ 71.345793][ T4091] ? tcp_check_space+0x970/0x970 [ 71.350723][ T4091] tcp_v4_do_rcv+0x423/0x960 [ 71.355301][ T4091] __release_sock+0x198/0x4b0 [ 71.359974][ T4091] release_sock+0x5d/0x1c0 [ 71.364376][ T4091] ? rds_tcp_xmit_path_prepare+0x90/0x90 [ 71.369997][ T4091] rds_send_xmit+0x1d16/0x2530 [ 71.374760][ T4091] ? rds_send_path_reset+0x3d0/0x3d0 [ 71.380123][ T4091] rds_sendmsg+0x1b97/0x2240 [ 71.384730][ T4091] ? __might_sleep+0xc0/0xc0 [ 71.389316][ T4091] ? rds_send_sndbuf_remove+0x230/0x230 [ 71.394853][ T4091] ? aa_sk_perm+0x8fc/0xa30 [ 71.399349][ T4091] ? aa_af_perm+0x350/0x350 [ 71.403849][ T4091] ? aa_sock_msg_perm+0x91/0x150 [ 71.408776][ T4091] ? bpf_lsm_socket_sendmsg+0x5/0x10 [ 71.414052][ T4091] ? security_socket_sendmsg+0x7d/0xa0 [ 71.419499][ T4091] ? rds_send_sndbuf_remove+0x230/0x230 [ 71.425033][ T4091] ____sys_sendmsg+0x59e/0x8f0 [ 71.429792][ T4091] ? iovec_from_user+0x5d/0x390 [ 71.434639][ T4091] ? __sys_sendmsg_sock+0x30/0x30 [ 71.439664][ T4091] ___sys_sendmsg+0x252/0x2e0 [ 71.444333][ T4091] ? __sys_sendmsg+0x260/0x260 [ 71.449103][ T4091] ? __fdget+0x191/0x220 [ 71.453337][ T4091] __se_sys_sendmsg+0x19a/0x260 [ 71.458180][ T4091] ? __x64_sys_sendmsg+0x80/0x80 [ 71.463115][ T4091] ? syscall_enter_from_user_mode+0x2e/0x230 [ 71.469086][ T4091] ? lockdep_hardirqs_on+0x94/0x130 [ 71.474276][ T4091] ? syscall_enter_from_user_mode+0x2e/0x230 [ 71.480248][ T4091] do_syscall_64+0x3d/0xb0 [ 71.484652][ T4091] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 71.490623][ T4091] RIP: 0033:0x7f609a864c79 [ 71.495031][ T4091] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 b8 ff ff ff f7 d8 64 89 01 48 [ 71.514624][ T4091] RSP: 002b:00007f609a7d4318 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 71.523023][ T4091] RAX: ffffffffffffffda RBX: 00007f609a8ec448 RCX: 00007f609a864c79 [ 71.530983][ T4091] RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004 [ 71.538942][ T4091] RBP: 00007f609a8ec440 R08: 00007f609a7d4700 R09: 0000000000000000 [ 71.546902][ T4091] R10: 00007f609a7d4700 R11: 0000000000000246 R12: 00007f609a8ba074 executing program [ 71.554861][ T4091] R13: 00007ffd3d73ba3f R14: 00007f609a7d4400 R15: 0000000000022000 [ 71.562830][ T4091] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program