Warning: Permanently added '10.128.1.123' (ED25519) to the list of known hosts. executing program [ 41.542060][ T3960] [ 41.542737][ T3960] ====================================================== [ 41.544493][ T3960] WARNING: possible circular locking dependency detected [ 41.546236][ T3960] 5.15.150-syzkaller #0 Not tainted [ 41.547516][ T3960] ------------------------------------------------------ [ 41.549291][ T3960] syz-executor234/3960 is trying to acquire lock: [ 41.550944][ T3960] ffff0000d2a49aa0 (k-sk_lock-AF_INET6){+.+.}-{0:0}, at: tcp_diag_get_aux+0x680/0x750 [ 41.553476][ T3960] [ 41.553476][ T3960] but task is already holding lock: [ 41.555362][ T3960] ffff0000c5728bc0 (&h->lhash2[i].lock){+.+.}-{2:2}, at: inet_diag_dump_icsk+0xee4/0x1210 [ 41.557965][ T3960] [ 41.557965][ T3960] which lock already depends on the new lock. [ 41.557965][ T3960] [ 41.560637][ T3960] [ 41.560637][ T3960] the existing dependency chain (in reverse order) is: [ 41.562981][ T3960] [ 41.562981][ T3960] -> #1 (&h->lhash2[i].lock){+.+.}-{2:2}: [ 41.565041][ T3960] _raw_spin_lock+0xb0/0x10c [ 41.566356][ T3960] __inet_hash+0xd8/0x754 [ 41.567637][ T3960] inet6_hash+0x74/0x9c [ 41.568842][ T3960] inet_csk_listen_start+0x1e8/0x2cc [ 41.570365][ T3960] inet_listen+0x258/0x6d4 [ 41.571635][ T3960] rds_tcp_listen_init+0x378/0x504 [ 41.573084][ T3960] rds_tcp_init_net+0x128/0x2e4 [ 41.574503][ T3960] ops_init+0x2e8/0x548 [ 41.575709][ T3960] register_pernet_operations+0x268/0x700 [ 41.577303][ T3960] register_pernet_device+0x3c/0x9c [ 41.578784][ T3960] rds_tcp_init+0x74/0xe0 [ 41.580000][ T3960] do_one_initcall+0x234/0x990 [ 41.581392][ T3960] do_initcall_level+0x154/0x214 [ 41.582801][ T3960] do_initcalls+0x58/0xac [ 41.584040][ T3960] do_basic_setup+0x8c/0xa0 [ 41.585337][ T3960] kernel_init_freeable+0x460/0x640 [ 41.586833][ T3960] kernel_init+0x24/0x294 [ 41.588090][ T3960] ret_from_fork+0x10/0x20 [ 41.589353][ T3960] [ 41.589353][ T3960] -> #0 (k-sk_lock-AF_INET6){+.+.}-{0:0}: [ 41.591399][ T3960] __lock_acquire+0x32d4/0x7638 [ 41.592803][ T3960] lock_acquire+0x240/0x77c [ 41.594059][ T3960] subflow_get_info+0x1e8/0xd10 [ 41.595443][ T3960] tcp_diag_get_aux+0x680/0x750 [ 41.596805][ T3960] inet_sk_diag_fill+0xcfc/0x17b4 [ 41.598234][ T3960] inet_diag_dump_icsk+0x104c/0x1210 [ 41.599749][ T3960] tcp_diag_dump+0x3c/0x50 [ 41.601044][ T3960] __inet_diag_dump+0x1e8/0x33c [ 41.602410][ T3960] inet_diag_dump+0x4c/0x5c [ 41.603728][ T3960] netlink_dump+0x470/0xa88 [ 41.605024][ T3960] __netlink_dump_start+0x488/0x6ec [ 41.606496][ T3960] inet_diag_handler_cmd+0x1a8/0x274 [ 41.607994][ T3960] sock_diag_rcv_msg+0x174/0x39c [ 41.609395][ T3960] netlink_rcv_skb+0x20c/0x3b8 [ 41.610785][ T3960] sock_diag_rcv+0x3c/0x54 [ 41.612039][ T3960] netlink_unicast+0x664/0x938 [ 41.613390][ T3960] netlink_sendmsg+0x844/0xb38 [ 41.614779][ T3960] sock_write_iter+0x2b0/0x3f8 [ 41.616149][ T3960] do_iter_readv_writev+0x420/0x5f8 [ 41.617609][ T3960] do_iter_write+0x1b8/0x664 [ 41.618934][ T3960] do_writev+0x220/0x3ec [ 41.620148][ T3960] __arm64_sys_writev+0x80/0x94 [ 41.621545][ T3960] invoke_syscall+0x98/0x2b8 [ 41.622853][ T3960] el0_svc_common+0x138/0x258 [ 41.624187][ T3960] do_el0_svc+0x58/0x14c [ 41.625389][ T3960] el0_svc+0x7c/0x1f0 [ 41.626541][ T3960] el0t_64_sync_handler+0x84/0xe4 [ 41.627985][ T3960] el0t_64_sync+0x1a0/0x1a4 [ 41.629262][ T3960] [ 41.629262][ T3960] other info that might help us debug this: [ 41.629262][ T3960] [ 41.631900][ T3960] Possible unsafe locking scenario: [ 41.631900][ T3960] [ 41.633851][ T3960] CPU0 CPU1 [ 41.635223][ T3960] ---- ---- [ 41.636596][ T3960] lock(&h->lhash2[i].lock); [ 41.637798][ T3960] lock(k-sk_lock-AF_INET6); [ 41.639627][ T3960] lock(&h->lhash2[i].lock); [ 41.641483][ T3960] lock(k-sk_lock-AF_INET6); [ 41.642711][ T3960] [ 41.642711][ T3960] *** DEADLOCK *** [ 41.642711][ T3960] [ 41.644784][ T3960] 5 locks held by syz-executor234/3960: [ 41.646248][ T3960] #0: ffff800016a04148 (sock_diag_mutex){+.+.}-{3:3}, at: sock_diag_rcv+0x2c/0x54 [ 41.648685][ T3960] #1: ffff800016a03fa8 (sock_diag_table_mutex){+.+.}-{3:3}, at: sock_diag_rcv_msg+0x220/0x39c [ 41.651360][ T3960] #2: ffff0000d8776690 (nlk_cb_mutex-SOCK_DIAG){+.+.}-{3:3}, at: netlink_dump+0xbc/0xa88 [ 41.654001][ T3960] #3: ffff800016add3e8 (inet_diag_table_mutex){+.+.}-{3:3}, at: __inet_diag_dump+0x17c/0x33c [ 41.656675][ T3960] #4: ffff0000c5728bc0 (&h->lhash2[i].lock){+.+.}-{2:2}, at: inet_diag_dump_icsk+0xee4/0x1210 [ 41.659386][ T3960] [ 41.659386][ T3960] stack backtrace: [ 41.660920][ T3960] CPU: 0 PID: 3960 Comm: syz-executor234 Not tainted 5.15.150-syzkaller #0 [ 41.663132][ T3960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 41.665729][ T3960] Call trace: [ 41.666568][ T3960] dump_backtrace+0x0/0x530 [ 41.667726][ T3960] show_stack+0x2c/0x3c [ 41.668785][ T3960] dump_stack_lvl+0x108/0x170 [ 41.669996][ T3960] dump_stack+0x1c/0x58 [ 41.671070][ T3960] print_circular_bug+0x150/0x1b8 [ 41.672365][ T3960] check_noncircular+0x2cc/0x378 [ 41.673685][ T3960] __lock_acquire+0x32d4/0x7638 [ 41.674960][ T3960] lock_acquire+0x240/0x77c [ 41.676115][ T3960] subflow_get_info+0x1e8/0xd10 [ 41.677378][ T3960] tcp_diag_get_aux+0x680/0x750 [ 41.678637][ T3960] inet_sk_diag_fill+0xcfc/0x17b4 [ 41.679920][ T3960] inet_diag_dump_icsk+0x104c/0x1210 [ 41.681304][ T3960] tcp_diag_dump+0x3c/0x50 [ 41.682456][ T3960] __inet_diag_dump+0x1e8/0x33c [ 41.683706][ T3960] inet_diag_dump+0x4c/0x5c [ 41.684862][ T3960] netlink_dump+0x470/0xa88 [ 41.686024][ T3960] __netlink_dump_start+0x488/0x6ec [ 41.687348][ T3960] inet_diag_handler_cmd+0x1a8/0x274 [ 41.688703][ T3960] sock_diag_rcv_msg+0x174/0x39c [ 41.689947][ T3960] netlink_rcv_skb+0x20c/0x3b8 [ 41.691210][ T3960] sock_diag_rcv+0x3c/0x54 [ 41.692341][ T3960] netlink_unicast+0x664/0x938 [ 41.693570][ T3960] netlink_sendmsg+0x844/0xb38 [ 41.694799][ T3960] sock_write_iter+0x2b0/0x3f8 [ 41.696020][ T3960] do_iter_readv_writev+0x420/0x5f8 [ 41.697339][ T3960] do_iter_write+0x1b8/0x664 [ 41.698518][ T3960] do_writev+0x220/0x3ec [ 41.699608][ T3960] __arm64_sys_writev+0x80/0x94 [ 41.700821][ T3960] invoke_syscall+0x98/0x2b8 [ 41.702007][ T3960] el0_svc_common+0x138/0x258 [ 41.703232][ T3960] do_el0_svc+0x58/0x14c [ 41.704310][ T3960] el0_svc+0x7c/0x1f0 [ 41.705317][ T3960] el0t_64_sync_handler+0x84/0xe4 [ 41.706625][ T3960] el0t_64_sync+0x1a0/0x1a4 [ 41.707895][ T3960] BUG: sleeping function called from invalid context at net/core/sock.c:3271 [ 41.710049][ T3960] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3960, name: syz-executor234 [ 41.712407][ T3960] INFO: lockdep is turned off. [ 41.713616][ T3960] Preemption disabled at: [ 41.713627][ T3960] [] inet_diag_dump_icsk+0xee4/0x1210 [ 41.716409][ T3960] CPU: 0 PID: 3960 Comm: syz-executor234 Not tainted 5.15.150-syzkaller #0 [ 41.718611][ T3960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 41.721197][ T3960] Call trace: [ 41.722035][ T3960] dump_backtrace+0x0/0x530 [ 41.723196][ T3960] show_stack+0x2c/0x3c [ 41.724254][ T3960] dump_stack_lvl+0x108/0x170 [ 41.725468][ T3960] dump_stack+0x1c/0x58 [ 41.726535][ T3960] ___might_sleep+0x380/0x4dc [ 41.727751][ T3960] __might_sleep+0x98/0xf0 [ 41.728897][ T3960] __lock_sock_fast+0x3c/0xf0 [ 41.730101][ T3960] subflow_get_info+0x1f0/0xd10 [ 41.731369][ T3960] tcp_diag_get_aux+0x680/0x750 [ 41.732629][ T3960] inet_sk_diag_fill+0xcfc/0x17b4 [ 41.733900][ T3960] inet_diag_dump_icsk+0x104c/0x1210 [ 41.735252][ T3960] tcp_diag_dump+0x3c/0x50 [ 41.736373][ T3960] __inet_diag_dump+0x1e8/0x33c [ 41.737627][ T3960] inet_diag_dump+0x4c/0x5c [ 41.738792][ T3960] netlink_dump+0x470/0xa8