================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u8:8/26972 [HC0[0]:SC1[3]:HE1:SE0] takes: ffff88809ac5d1e0 (k-sk_lock-AF_INET6){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1709 [inline] ffff88809ac5d1e0 (k-sk_lock-AF_INET6){+.?.}-{0:0}, at: inet6_getname+0x15d/0x650 net/ipv6/af_inet6.c:533 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0xf0/0x2e0 kernel/locking/lockdep.c:5868 lock_sock_nested+0x48/0x100 net/core/sock.c:3780 lock_sock include/net/sock.h:1709 [inline] tcp_sock_set_nodelay+0x2a/0x180 net/ipv4/tcp.c:3718 rds_tcp_listen_init+0x168/0x410 net/rds/tcp_listen.c:418 rds_tcp_init_net+0x154/0x380 net/rds/tcp.c:568 ops_init+0x35c/0x5c0 net/core/net_namespace.c:137 __register_pernet_operations net/core/net_namespace.c:1320 [inline] register_pernet_operations+0x343/0x830 net/core/net_namespace.c:1397 register_pernet_device+0x2a/0x80 net/core/net_namespace.c:1484 rds_tcp_init+0xcf/0x170 net/rds/tcp.c:749 do_one_initcall+0x250/0x8d0 init/main.c:1382 do_initcall_level+0x104/0x190 init/main.c:1444 do_initcalls+0x59/0xa0 init/main.c:1460 kernel_init_freeable+0x2a6/0x3e0 init/main.c:1692 kernel_init+0x1d/0x1d0 init/main.c:1582 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 irq event stamp: 3051466 hardirqs last enabled at (3051466): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (3051466): [] _raw_spin_unlock_irqrestore+0x30/0x80 kernel/locking/spinlock.c:194 hardirqs last disabled at (3051465): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (3051465): [] _raw_spin_lock_irqsave+0x1a/0x60 kernel/locking/spinlock.c:162 softirqs last enabled at (3051446): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (3051446): [] rcu_read_lock_bh include/linux/rcupdate.h:903 [inline] softirqs last enabled at (3051446): [] __dev_queue_xmit+0x274/0x38a0 net/core/dev.c:4761 softirqs last disabled at (3051447): [] do_softirq+0x76/0xd0 kernel/softirq.c:523 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(k-sk_lock-AF_INET6); lock(k-sk_lock-AF_INET6); *** DEADLOCK *** 10 locks held by kworker/u8:8/26972: #0: ffff888064a8a948 ((wq_completion)krds_cp_wq#32/0){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3250 [inline] #0: ffff888064a8a948 ((wq_completion)krds_cp_wq#32/0){+.+.}-{0:0}, at: process_scheduled_works+0x9ea/0x1830 kernel/workqueue.c:3358 #1: ffffc9000541fc40 ((work_completion)(&(&cp->cp_send_w)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3251 [inline] #1: ffffc9000541fc40 ((work_completion)(&(&cp->cp_send_w)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa25/0x1830 kernel/workqueue.c:3358 #2: ffff88809ac5df20 (k-sk_lock-AF_INET6){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1709 [inline] #2: ffff88809ac5df20 (k-sk_lock-AF_INET6){+.?.}-{0:0}, at: tcp_sock_set_cork+0x2c/0x2e0 net/ipv4/tcp.c:3694 #3: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #3: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #3: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: inet6_csk_xmit+0x110/0x6c0 net/ipv6/inet6_connection_sock.c:112 #4: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #4: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #4: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: ip6_xmit+0x283/0x1980 net/ipv6/ip6_output.c:284 #5: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #5: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #5: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: ip6_output+0x126/0x550 net/ipv6/ip6_output.c:234 #6: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: local_lock_acquire include/linux/local_lock_internal.h:46 [inline] #6: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x3eb/0x1950 net/core/dev.c:6617 #7: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #7: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #7: ffffffff8e7602e0 (rcu_read_lock){....}-{1:3}, at: ip6_input+0x23/0x270 net/ipv6/ip6_input.c:499 #8: ffff88809ac5d160 (k-slock-AF_INET6/1){+.-.}-{3:3}, at: tcp_v6_rcv+0x2577/0x2f60 net/ipv6/tcp_ipv6.c:1875 #9: ffff88809ac5d388 (k-clock-AF_INET6){++.-}-{3:3}, at: rds_tcp_data_ready+0x113/0x9a0 net/rds/tcp_recv.c:320 stack backtrace: CPU: 0 UID: 0 PID: 26972 Comm: kworker/u8:8 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: krds_cp_wq#32/0 rds_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28b/0x2e0 kernel/locking/lockdep.c:4042 valid_state kernel/locking/lockdep.c:4056 [inline] mark_lock_irq+0x410/0x420 kernel/locking/lockdep.c:-1 mark_lock+0x115/0x190 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x689/0x2cf0 kernel/locking/lockdep.c:5191 lock_acquire+0xf0/0x2e0 kernel/locking/lockdep.c:5868 lock_sock_nested+0x48/0x100 net/core/sock.c:3780 lock_sock include/net/sock.h:1709 [inline] inet6_getname+0x15d/0x650 net/ipv6/af_inet6.c:533 rds_tcp_get_peer_sport net/rds/tcp_listen.c:70 [inline] rds_tcp_conn_slots_available+0x288/0x470 net/rds/tcp_listen.c:149 rds_recv_hs_exthdrs+0x60f/0x7c0 net/rds/recv.c:265 rds_recv_incoming+0x9f6/0x12d0 net/rds/recv.c:389 rds_tcp_data_recv+0x7f1/0xa40 net/rds/tcp_recv.c:243 __tcp_read_sock+0x196/0x970 net/ipv4/tcp.c:1702 rds_tcp_read_sock net/rds/tcp_recv.c:277 [inline] rds_tcp_data_ready+0x369/0x9a0 net/rds/tcp_recv.c:331 tcp_data_queue+0x1e2e/0x5e50 net/ipv4/tcp_input.c:5719 tcp_rcv_established+0xf45/0x2740 net/ipv4/tcp_input.c:6710 tcp_v6_do_rcv+0x8eb/0x1ba0 net/ipv6/tcp_ipv6.c:1609 tcp_v6_rcv+0x2653/0x2f60 net/ipv6/tcp_ipv6.c:1879 ip6_protocol_deliver_rcu+0xa73/0x1600 net/ipv6/ip6_input.c:438 ip6_input_finish+0x191/0x370 net/ipv6/ip6_input.c:489 NF_HOOK+0x336/0x3c0 include/linux/netfilter.h:318 ip6_input+0x16a/0x270 net/ipv6/ip6_input.c:500 NF_HOOK+0x336/0x3c0 include/linux/netfilter.h:318 __netif_receive_skb_one_core net/core/dev.c:6156 [inline] __netif_receive_skb net/core/dev.c:6269 [inline] process_backlog+0x7dd/0x1950 net/core/dev.c:6621 __napi_poll+0xae/0x340 net/core/dev.c:7685 napi_poll net/core/dev.c:7748 [inline] net_rx_action+0x627/0xf70 net/core/dev.c:7900 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:924 [inline] __dev_queue_xmit+0x1e6c/0x38a0 net/core/dev.c:4863 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip6_output+0x340/0x550 net/ipv6/ip6_output.c:246 NF_HOOK include/linux/netfilter.h:318 [inline] ip6_xmit+0x1149/0x1980 net/ipv6/ip6_output.c:358 inet6_csk_xmit+0x3bd/0x6c0 net/ipv6/inet6_connection_sock.c:115 __tcp_transmit_skb+0x249b/0x43e0 net/ipv4/tcp_output.c:1693 tcp_transmit_skb net/ipv4/tcp_output.c:1711 [inline] tcp_write_xmit+0x16e8/0x6980 net/ipv4/tcp_output.c:3064 __tcp_push_pending_frames+0x97/0x380 net/ipv4/tcp_output.c:3247 tcp_push_pending_frames include/net/tcp.h:2282 [inline] __tcp_sock_set_cork net/ipv4/tcp.c:3688 [inline] tcp_sock_set_cork+0x186/0x2e0 net/ipv4/tcp.c:3695 rds_send_xmit+0x207e/0x28d0 net/rds/send.c:480 rds_send_worker+0x7d/0x2e0 net/rds/threads.c:200 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: sleeping function called from invalid context at net/core/sock.c:3782 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 26972, name: kworker/u8:8 preempt_count: 303, expected: 0 RCU nest depth: 5, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] local_bh_disable include/linux/bottom_half.h:20 [inline] [] rcu_read_lock_bh include/linux/rcupdate.h:903 [inline] [] __dev_queue_xmit+0x281/0x38a0 net/core/dev.c:4761 CPU: 0 UID: 0 PID: 26972 Comm: kworker/u8:8 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: krds_cp_wq#32/0 rds_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x378/0x4d0 kernel/sched/core.c:8884 lock_sock_nested+0x5d/0x100 net/core/sock.c:3782 lock_sock include/net/sock.h:1709 [inline] inet6_getname+0x15d/0x650 net/ipv6/af_inet6.c:533 rds_tcp_get_peer_sport net/rds/tcp_listen.c:70 [inline] rds_tcp_conn_slots_available+0x288/0x470 net/rds/tcp_listen.c:149 rds_recv_hs_exthdrs+0x60f/0x7c0 net/rds/recv.c:265 rds_recv_incoming+0x9f6/0x12d0 net/rds/recv.c:389 rds_tcp_data_recv+0x7f1/0xa40 net/rds/tcp_recv.c:243 __tcp_read_sock+0x196/0x970 net/ipv4/tcp.c:1702 rds_tcp_read_sock net/rds/tcp_recv.c:277 [inline] rds_tcp_data_ready+0x369/0x9a0 net/rds/tcp_recv.c:331 tcp_data_queue+0x1e2e/0x5e50 net/ipv4/tcp_input.c:5719 tcp_rcv_established+0xf45/0x2740 net/ipv4/tcp_input.c:6710 tcp_v6_do_rcv+0x8eb/0x1ba0 net/ipv6/tcp_ipv6.c:1609 tcp_v6_rcv+0x2653/0x2f60 net/ipv6/tcp_ipv6.c:1879 ip6_protocol_deliver_rcu+0xa73/0x1600 net/ipv6/ip6_input.c:438 ip6_input_finish+0x191/0x370 net/ipv6/ip6_input.c:489 NF_HOOK+0x336/0x3c0 include/linux/netfilter.h:318 ip6_input+0x16a/0x270 net/ipv6/ip6_input.c:500 NF_HOOK+0x336/0x3c0 include/linux/netfilter.h:318 __netif_receive_skb_one_core net/core/dev.c:6156 [inline] __netif_receive_skb net/core/dev.c:6269 [inline] process_backlog+0x7dd/0x1950 net/core/dev.c:6621 __napi_poll+0xae/0x340 net/core/dev.c:7685 napi_poll net/core/dev.c:7748 [inline] net_rx_action+0x627/0xf70 net/core/dev.c:7900 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:924 [inline] __dev_queue_xmit+0x1e6c/0x38a0 net/core/dev.c:4863 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip6_output+0x340/0x550 net/ipv6/ip6_output.c:246 NF_HOOK include/linux/netfilter.h:318 [inline] ip6_xmit+0x1149/0x1980 net/ipv6/ip6_output.c:358 inet6_csk_xmit+0x3bd/0x6c0 net/ipv6/inet6_connection_sock.c:115 __tcp_transmit_skb+0x249b/0x43e0 net/ipv4/tcp_output.c:1693 tcp_transmit_skb net/ipv4/tcp_output.c:1711 [inline] tcp_write_xmit+0x16e8/0x6980 net/ipv4/tcp_output.c:3064 __tcp_push_pending_frames+0x97/0x380 net/ipv4/tcp_output.c:3247 tcp_push_pending_frames include/net/tcp.h:2282 [inline] __tcp_sock_set_cork net/ipv4/tcp.c:3688 [inline] tcp_sock_set_cork+0x186/0x2e0 net/ipv4/tcp.c:3695 rds_send_xmit+0x207e/0x28d0 net/rds/send.c:480 rds_send_worker+0x7d/0x2e0 net/rds/threads.c:200 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245