================================ WARNING: inconsistent lock state 4.19.106-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. ksoftirqd/1/18 [HC0[0]:SC1[1]:HE1:SE0] takes: 00000000f820cc26 (rxrpc_conn_id_lock){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 00000000f820cc26 (rxrpc_conn_id_lock){+.?.}, at: rxrpc_put_client_connection_id.part.0+0x19/0x70 net/rxrpc/conn_client.c:143 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] rxrpc_get_client_connection_id net/rxrpc/conn_client.c:114 [inline] rxrpc_alloc_client_connection net/rxrpc/conn_client.c:198 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:345 [inline] rxrpc_connect_call+0x948/0x4920 net/rxrpc/conn_client.c:702 rxrpc_new_client_call+0x8e7/0x1880 net/rxrpc/call_object.c:291 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:596 [inline] rxrpc_do_sendmsg+0xfc3/0x1ca3 net/rxrpc/sendmsg.c:652 rxrpc_sendmsg+0x4a0/0x5b0 net/rxrpc/af_rxrpc.c:593 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x1bf/0x4e0 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2236 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 6913988 hardirqs last enabled at (6913988): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (6913988): [] _raw_spin_unlock_irqrestore+0x6b/0xe0 kernel/locking/spinlock.c:184 hardirqs last disabled at (6913987): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (6913987): [] _raw_spin_lock_irqsave+0x6f/0xcd kernel/locking/spinlock.c:152 softirqs last enabled at (6913944): [] __do_softirq+0x633/0x921 kernel/softirq.c:318 softirqs last disabled at (6913949): [] run_ksoftirqd kernel/softirq.c:653 [inline] softirqs last disabled at (6913949): [] run_ksoftirqd+0x8e/0x110 kernel/softirq.c:645 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rxrpc_conn_id_lock); lock(rxrpc_conn_id_lock); *** DEADLOCK *** 1 lock held by ksoftirqd/1/18: #0: 00000000e1ac8d3a (rcu_callback){....}, at: __rcu_reclaim kernel/rcu/rcu.h:226 [inline] #0: 00000000e1ac8d3a (rcu_callback){....}, at: rcu_do_batch kernel/rcu/tree.c:2584 [inline] #0: 00000000e1ac8d3a (rcu_callback){....}, at: invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] #0: 00000000e1ac8d3a (rcu_callback){....}, at: __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] #0: 00000000e1ac8d3a (rcu_callback){....}, at: rcu_process_callbacks+0xc79/0x1a30 kernel/rcu/tree.c:2881 stack backtrace: CPU: 1 PID: 18 Comm: ksoftirqd/1 Not tainted 4.19.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_usage_bug.cold+0x330/0x42a kernel/locking/lockdep.c:2540 valid_state kernel/locking/lockdep.c:2553 [inline] mark_lock_irq kernel/locking/lockdep.c:2747 [inline] mark_lock+0xd1b/0x1370 kernel/locking/lockdep.c:3127 mark_irqflags kernel/locking/lockdep.c:3005 [inline] __lock_acquire+0xc62/0x49c0 kernel/locking/lockdep.c:3368 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] rxrpc_put_client_connection_id.part.0+0x19/0x70 net/rxrpc/conn_client.c:143 rxrpc_put_client_connection_id include/linux/spinlock.h:370 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:956 [inline] rxrpc_put_client_conn+0x6c6/0xc20 net/rxrpc/conn_client.c:1002 rxrpc_put_connection net/rxrpc/ar-internal.h:951 [inline] rxrpc_rcu_destroy_call+0xbd/0x200 net/rxrpc/call_object.c:657 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0xba0/0x1a30 kernel/rcu/tree.c:2881 __do_softirq+0x25c/0x921 kernel/softirq.c:292 run_ksoftirqd kernel/softirq.c:653 [inline] run_ksoftirqd+0x8e/0x110 kernel/softirq.c:645 smpboot_thread_fn+0x6a3/0xa30 kernel/smpboot.c:164 kthread+0x354/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 netlink: 'syz-executor.5': attribute type 1 has an invalid length. bond5: making interface bridge1 the new active one bond5: Enslaving bridge1 as an active interface with an up link bond5 (unregistering): Releasing active interface bridge1 bond5 (unregistering): Released all slaves netlink: 'syz-executor.5': attribute type 1 has an invalid length. bond5: making interface bridge2 the new active one bond5: Enslaving bridge2 as an active interface with an up link bond5 (unregistering): Releasing active interface bridge2 bond5 (unregistering): Released all slaves netlink: 'syz-executor.5': attribute type 1 has an invalid length. bond5: making interface bridge3 the new active one bond5: Enslaving bridge3 as an active interface with an up link netlink: 'syz-executor.1': attribute type 1 has an invalid length. netlink: 'syz-executor.3': attribute type 1 has an invalid length. bond5 (unregistering): Releasing active interface bridge3 bond5 (unregistering): Released all slaves bond1: making interface bridge1 the new active one bond1: Enslaving bridge1 as an active interface with an up link bond6: making interface bridge5 the new active one bond6: Enslaving bridge5 as an active interface with an up link bond1 (unregistering): Releasing active interface bridge1 bond1 (unregistering): Released all slaves bond6 (unregistering): Releasing active interface bridge5 bond6 (unregistering): Released all slaves netlink: 'syz-executor.5': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. bond5: making interface bridge4 the new active one bond5: Enslaving bridge4 as an active interface with an up link bond1: making interface bridge2 the new active one bond1: Enslaving bridge2 as an active interface with an up link bond5 (unregistering): Releasing active interface bridge4 ip6t_srh: unknown srh invflags 4000 bond5 (unregistering): Released all slaves netlink: 'syz-executor.3': attribute type 1 has an invalid length. bond1 (unregistering): Releasing active interface bridge2 bond1 (unregistering): Released all slaves bond6: making interface bridge6 the new active one bond6: Enslaving bridge6 as an active interface with an up link bond6 (unregistering): Releasing active interface bridge6 bond6 (unregistering): Released all slaves ip6t_srh: unknown srh invflags 4000 netlink: 'syz-executor.5': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. bond5: making interface bridge5 the new active one bond5: Enslaving bridge5 as an active interface with an up link bond1: making interface bridge3 the new active one bond1: Enslaving bridge3 as an active interface with an up link bond5 (unregistering): Releasing active interface bridge5 ip6t_srh: unknown srh invflags 4000 bond5 (unregistering): Released all slaves bond1 (unregistering): Releasing active interface bridge3 ip6t_srh: unknown srh invflags 4000 bond1 (unregistering): Released all slaves bond6: making interface bridge7 the new active one bond6: Enslaving bridge7 as an active interface with an up link bond6 (unregistering): Releasing active interface bridge7 bond6 (unregistering): Released all slaves ip6t_srh: unknown srh invflags 4000 ip6t_srh: unknown srh invflags 4000 ip6t_srh: unknown srh invflags 4000 ip6t_srh: unknown srh invflags 4000