Warning: Permanently added '10.128.10.8' (ED25519) to the list of known hosts. executing program [ 36.332363][ T6161] [ 36.333009][ T6161] ====================================================== [ 36.334885][ T6161] WARNING: possible circular locking dependency detected [ 36.336835][ T6161] 6.8.0-rc6-syzkaller-g9910665503b3 #0 Not tainted [ 36.338726][ T6161] ------------------------------------------------------ [ 36.340743][ T6161] syz-executor181/6161 is trying to acquire lock: [ 36.342572][ T6161] ffff0000d9ee0130 (k-sk_lock-AF_INET6){+.+.}-{0:0}, at: tcp_diag_get_aux+0x680/0x750 [ 36.345307][ T6161] [ 36.345307][ T6161] but task is already holding lock: [ 36.347317][ T6161] ffff0000c35407b8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: inet_diag_dump_icsk+0x2f4/0x1b94 [ 36.350069][ T6161] [ 36.350069][ T6161] which lock already depends on the new lock. [ 36.350069][ T6161] [ 36.352912][ T6161] [ 36.352912][ T6161] the existing dependency chain (in reverse order) is: [ 36.355450][ T6161] [ 36.355450][ T6161] -> #1 (&h->lhash2[i].lock){+.+.}-{2:2}: [ 36.357668][ T6161] _raw_spin_lock+0x48/0x60 [ 36.359115][ T6161] __inet_hash+0x2a4/0xb6c [ 36.360483][ T6161] inet6_hash+0x74/0x9c [ 36.361798][ T6161] inet_csk_listen_start+0x1e4/0x2c8 [ 36.363406][ T6161] __inet_listen_sk+0x204/0x640 [ 36.364916][ T6161] inet_listen+0xac/0x120 [ 36.366203][ T6161] rds_tcp_listen_init+0x378/0x504 [ 36.367782][ T6161] rds_tcp_init_net+0x12c/0x2e8 [ 36.369303][ T6161] ops_init+0x2e8/0x548 [ 36.370634][ T6161] register_pernet_operations+0x268/0x700 [ 36.372354][ T6161] register_pernet_device+0x3c/0x9c [ 36.373959][ T6161] rds_tcp_init+0x74/0xe0 [ 36.375251][ T6161] do_one_initcall+0x23c/0x98c [ 36.376668][ T6161] do_initcall_level+0x154/0x214 [ 36.378130][ T6161] do_initcalls+0x58/0xac [ 36.379475][ T6161] do_basic_setup+0x8c/0xa0 [ 36.380895][ T6161] kernel_init_freeable+0x320/0x474 [ 36.382465][ T6161] kernel_init+0x24/0x29c [ 36.383804][ T6161] ret_from_fork+0x10/0x20 [ 36.385244][ T6161] [ 36.385244][ T6161] -> #0 (k-sk_lock-AF_INET6){+.+.}-{0:0}: [ 36.387442][ T6161] __lock_acquire+0x3384/0x763c [ 36.388926][ T6161] lock_acquire+0x23c/0x71c [ 36.390335][ T6161] subflow_get_info+0x150/0xb2c [ 36.391835][ T6161] tcp_diag_get_aux+0x680/0x750 [ 36.393379][ T6161] inet_sk_diag_fill+0xd60/0x1818 [ 36.394924][ T6161] inet_diag_dump_icsk+0x460/0x1b94 [ 36.396562][ T6161] tcp_diag_dump+0xb0/0xc8 [ 36.397932][ T6161] __inet_diag_dump+0x1e8/0x33c [ 36.399430][ T6161] inet_diag_dump+0x4c/0x5c [ 36.400833][ T6161] netlink_dump+0x474/0xa8c [ 36.402148][ T6161] __netlink_dump_start+0x4f0/0x704 [ 36.403688][ T6161] inet_diag_handler_cmd+0x1ac/0x278 [ 36.405268][ T6161] sock_diag_rcv_msg+0x174/0x39c [ 36.406774][ T6161] netlink_rcv_skb+0x214/0x3c4 [ 36.408206][ T6161] sock_diag_rcv+0x3c/0x54 [ 36.409548][ T6161] netlink_unicast+0x65c/0x898 [ 36.410970][ T6161] netlink_sendmsg+0x83c/0xb20 [ 36.412392][ T6161] sock_write_iter+0x2d8/0x448 [ 36.413908][ T6161] do_iter_readv_writev+0x38c/0x540 [ 36.415468][ T6161] vfs_writev+0x410/0xb58 [ 36.416814][ T6161] do_writev+0x178/0x304 [ 36.418081][ T6161] __arm64_sys_writev+0x80/0x94 [ 36.419592][ T6161] invoke_syscall+0x98/0x2b8 [ 36.420982][ T6161] el0_svc_common+0x130/0x23c [ 36.422481][ T6161] do_el0_svc+0x48/0x58 [ 36.423779][ T6161] el0_svc+0x54/0x168 [ 36.424970][ T6161] el0t_64_sync_handler+0x84/0xfc [ 36.426513][ T6161] el0t_64_sync+0x190/0x194 [ 36.427904][ T6161] [ 36.427904][ T6161] other info that might help us debug this: [ 36.427904][ T6161] [ 36.430696][ T6161] Possible unsafe locking scenario: [ 36.430696][ T6161] [ 36.432738][ T6161] CPU0 CPU1 [ 36.434222][ T6161] ---- ---- [ 36.435735][ T6161] lock(&h->lhash2[i].lock); [ 36.437051][ T6161] lock(k-sk_lock-AF_INET6); [ 36.439082][ T6161] lock(&h->lhash2[i].lock); [ 36.441166][ T6161] lock(k-sk_lock-AF_INET6); [ 36.442529][ T6161] [ 36.442529][ T6161] *** DEADLOCK *** [ 36.442529][ T6161] [ 36.444821][ T6161] 5 locks held by syz-executor181/6161: [ 36.446463][ T6161] #0: ffff800091959dc8 (sock_diag_mutex){+.+.}-{3:3}, at: sock_diag_rcv+0x2c/0x54 [ 36.449131][ T6161] #1: ffff800091959c28 (sock_diag_table_mutex){+.+.}-{3:3}, at: sock_diag_rcv_msg+0x220/0x39c [ 36.452111][ T6161] #2: ffff0000dd3bc680 (nlk_cb_mutex-SOCK_DIAG){+.+.}-{3:3}, at: netlink_dump+0xc4/0xa8c [ 36.454817][ T6161] #3: ffff800091a362c8 (inet_diag_table_mutex){+.+.}-{3:3}, at: __inet_diag_dump+0x17c/0x33c [ 36.457708][ T6161] #4: ffff0000c35407b8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: inet_diag_dump_icsk+0x2f4/0x1b94 [ 36.460688][ T6161] [ 36.460688][ T6161] stack backtrace: [ 36.462341][ T6161] CPU: 0 PID: 6161 Comm: syz-executor181 Not tainted 6.8.0-rc6-syzkaller-g9910665503b3 #0 [ 36.465166][ T6161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 36.468053][ T6161] Call trace: [ 36.468983][ T6161] dump_backtrace+0x1b8/0x1e4 [ 36.470267][ T6161] show_stack+0x2c/0x3c [ 36.471393][ T6161] dump_stack_lvl+0xd0/0x124 [ 36.472674][ T6161] dump_stack+0x1c/0x28 [ 36.473802][ T6161] print_circular_bug+0x150/0x1b8 [ 36.475207][ T6161] check_noncircular+0x310/0x404 [ 36.476563][ T6161] __lock_acquire+0x3384/0x763c [ 36.477954][ T6161] lock_acquire+0x23c/0x71c [ 36.479226][ T6161] subflow_get_info+0x150/0xb2c [ 36.480591][ T6161] tcp_diag_get_aux+0x680/0x750 [ 36.481928][ T6161] inet_sk_diag_fill+0xd60/0x1818 [ 36.483317][ T6161] inet_diag_dump_icsk+0x460/0x1b94 [ 36.484738][ T6161] tcp_diag_dump+0xb0/0xc8 [ 36.485954][ T6161] __inet_diag_dump+0x1e8/0x33c [ 36.487316][ T6161] inet_diag_dump+0x4c/0x5c [ 36.488619][ T6161] netlink_dump+0x474/0xa8c [ 36.489835][ T6161] __netlink_dump_start+0x4f0/0x704 [ 36.491216][ T6161] inet_diag_handler_cmd+0x1ac/0x278 [ 36.492724][ T6161] sock_diag_rcv_msg+0x174/0x39c [ 36.494194][ T6161] netlink_rcv_skb+0x214/0x3c4 [ 36.495536][ T6161] sock_diag_rcv+0x3c/0x54 [ 36.496768][ T6161] netlink_unicast+0x65c/0x898 [ 36.498091][ T6161] netlink_sendmsg+0x83c/0xb20 [ 36.499456][ T6161] sock_write_iter+0x2d8/0x448 [ 36.500862][ T6161] do_iter_readv_writev+0x38c/0x540 [ 36.502333][ T6161] vfs_writev+0x410/0xb58 [ 36.503545][ T6161] do_writev+0x178/0x304 [ 36.504693][ T6161] __arm64_sys_writev+0x80/0x94 [ 36.505989][ T6161] invoke_syscall+0x98/0x2b8 [ 36.507278][ T6161] el0_svc_common+0x130/0x23c [ 36.508602][ T6161] do_el0_svc+0x48/0x58 [ 36.509774][ T6161] el0_svc+0x54/0x168 [ 36.510901][ T6161] el0t_64_sync_handler+0x84/0xfc [ 36.512331][ T6161] el0t_64_sync+0x190/0x194 [ 36.513738][ T6161] BUG: sleeping function called from invalid context at net/core/sock.c:3553 [ 36.516177][ T6161] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6161, name: syz-executor181 [ 36.518724][ T6161] preempt_count: 1, expected: 0 [ 36.520029][ T6161] RCU nest depth: 0, expected: 0 [ 36.521348][ T6161] INFO: lockdep is turned off. [ 36.522642][ T6161] Preemption disabled at: [ 36.522650][ T6161] [] inet_diag_dump_icsk+0x2f4/0x1b94 [ 36.525717][ T6161] CPU: 0 PID: 6161 Comm: syz-executor181 Not tainted 6.8.0-rc6-syzkaller-g9910665503b3 #0 [ 36.528397][ T6161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 36.531055][ T6161] Call trace: [ 36.531953][ T6161] dump_backtrace+0x1b8/0x1e4 [ 36.533245][ T6161] show_stack+0x2c/0x3c [ 36.534354][ T6161] dump_stack_lvl+0xd0/0x124 [ 36.535610][ T6161] dump_stack+0x1c/0x28 [ 36.536786][ T6161] __might_resched+0x374/0x4d0 [ 36.538137][ T6161] __might_sleep+0x90/0xe4 [ 36.539370][ T6161] __lock_sock_fast+0x38/0xec [ 36.540641][ T6161] subflow_get_info+0x158/0xb2c [ 36.542101][ T6161] tcp_diag_get_aux+0x680/0x750 [ 36.543518][ T6161] inet_sk_diag_fill+0xd60/0x1818 [ 36.544953][ T6161] inet_diag_dump_icsk+0x460/0x1b94 [ 36.546407][ T6161] tcp_diag_dump+0xb0/0xc8 [ 36.547630][ T6161] __inet_diag_dump+0x1e8/0x33c [ 36.548940][ T6161] inet_diag_dump+0x4c/0x5c [ 36.550132][ T6161] netlink_dump+0x474/0xa8c [ 36.551346][ T6161] __netlink_dump_start+0x4f0/0x704 [ 36.552765][ T6161] inet_diag_handler_cmd+0x1ac/0x278 [ 36.554188][ T6161] sock_diag_rcv_msg+0x174/0x39c [ 36.555512][ T6161] netlink_rcv_skb+0x214/0x3c4 [ 36.556775][ T6161] sock_diag_rcv+0x3c/0x54 [ 36.557924][ T6161] netlink_unicast+0x65c/0x898 [ 36.559245][ T6161] netlink_sendmsg+0x83c/0xb20 [ 36.560505][ T6161] sock_write_iter+0x2d8/0x448 [ 36.561771][ T6161] do_iter_readv_writev+0x38c/0x540 [ 36.563146][ T6161] vfs_writev+0x410/0xb58 [ 36.564268][ T6161] do_writev+0x178/0x304 [ 36.565443][ T6161] __arm64_sys_writev+0x80/0x94 [ 36.566710][ T6161] invoke_syscall+0x98/0x2b8 [ 36.567944][ T6161] el0_svc_common+0x130/0x23c [ 36.569201][ T6161] do_el0_svc+0x48/0x58 [ 36.570339][ T6161] el0_svc+0x54/0x168 [ 36.571415][ T6161] el0t_64_sync_handler+0x84/0xfc [ 36.572779][ T6161] el0t_64_sync+0x190/0x194