================================ WARNING: inconsistent lock state 4.14.306-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. ksoftirqd/1/17 [HC0[0]:SC1[1]:HE1:SE0] takes: (&(&local->client_conns_lock)->rlock){+.?.}, at: [] spin_lock include/linux/spinlock.h:317 [inline] (&(&local->client_conns_lock)->rlock){+.?.}, at: [] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:905 [inline] (&(&local->client_conns_lock)->rlock){+.?.}, at: [] rxrpc_put_client_conn+0x661/0xac0 net/rxrpc/conn_client.c:957 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152 spin_lock include/linux/spinlock.h:317 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:306 [inline] rxrpc_connect_call+0x2bb/0x3e10 net/rxrpc/conn_client.c:692 rxrpc_new_client_call+0x8f4/0x1a10 net/rxrpc/call_object.c:276 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:531 [inline] rxrpc_do_sendmsg+0x8dc/0xfb0 net/rxrpc/sendmsg.c:583 rxrpc_sendmsg+0x3cf/0x5f0 net/rxrpc/af_rxrpc.c:543 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 irq event stamp: 753932 hardirqs last enabled at (753932): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (753932): [] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192 hardirqs last disabled at (753931): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (753931): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (753800): [] __do_softirq+0x68b/0x9ff kernel/softirq.c:314 softirqs last disabled at (753805): [] run_ksoftirqd+0x50/0x1a0 kernel/softirq.c:670 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(&local->client_conns_lock)->rlock); lock(&(&local->client_conns_lock)->rlock); *** DEADLOCK *** 1 lock held by ksoftirqd/1/17: #0: (rcu_callback){....}, at: [] __rcu_reclaim kernel/rcu/rcu.h:185 [inline] #0: (rcu_callback){....}, at: [] rcu_do_batch kernel/rcu/tree.c:2699 [inline] #0: (rcu_callback){....}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] #0: (rcu_callback){....}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] #0: (rcu_callback){....}, at: [] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946 stack backtrace: CPU: 1 PID: 17 Comm: ksoftirqd/1 Not tainted 4.14.306-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2589 valid_state kernel/locking/lockdep.c:2602 [inline] mark_lock_irq kernel/locking/lockdep.c:2796 [inline] mark_lock+0xb4d/0x1050 kernel/locking/lockdep.c:3194 mark_irqflags kernel/locking/lockdep.c:3072 [inline] __lock_acquire+0xc81/0x3f20 kernel/locking/lockdep.c:3448 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152 spin_lock include/linux/spinlock.h:317 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:905 [inline] rxrpc_put_client_conn+0x661/0xac0 net/rxrpc/conn_client.c:957 rxrpc_put_connection net/rxrpc/ar-internal.h:862 [inline] rxrpc_rcu_destroy_call+0x83/0x190 net/rxrpc/call_object.c:653 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 run_ksoftirqd+0x50/0x1a0 kernel/softirq.c:670 smpboot_thread_fn+0x5c1/0x920 kernel/smpboot.c:164 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406 bridge0: port 2(bridge_slave_1) entered disabled state bridge0: port 1(bridge_slave_0) entered disabled state device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state device veth0_vlan left promiscuous mode device veth0_vlan entered promiscuous mode IPVS: ftp: loaded support on port[0] = 21 audit: type=1804 audit(1677158338.522:2): pid=10863 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/34/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677158338.552:3): pid=10863 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/34/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677158338.622:4): pid=10890 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/34/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677158338.622:5): pid=10890 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/34/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677158338.622:6): pid=10890 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/34/file0/bus" dev="loop5" ino=7 res=1 encrypted_key: insufficient parameters specified bridge0: port 2(bridge_slave_1) entered disabled state bridge0: port 1(bridge_slave_0) entered disabled state encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state encrypted_key: insufficient parameters specified device bridge_slave_0 left promiscuous mode audit: type=1804 audit(1677158339.082:7): pid=10924 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1999543085/syzkaller.JgoCSd/44/cgroup.controllers" dev="sda1" ino=14058 res=1 bridge0: port 1(bridge_slave_0) entered disabled state audit: type=1804 audit(1677158339.262:8): pid=10928 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1999543085/syzkaller.JgoCSd/44/memory.events" dev="sda1" ino=14059 res=1 audit: type=1804 audit(1677158339.582:9): pid=10956 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/35/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677158339.582:10): pid=10956 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/35/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677158339.672:11): pid=10974 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir240186945/syzkaller.BiUAF1/35/file0/bus" dev="loop5" ino=7 res=1 kauditd_printk_skb: 55 callbacks suppressed audit: type=1804 audit(1677158343.583:67): pid=11174 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir2418648591/syzkaller.KoPska/53/file0/bus" dev="loop3" ino=7 res=1 audit: type=1804 audit(1677158343.583:68): pid=11150 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir2334868287/syzkaller.4HgF6x/51/memory.events" dev="sda1" ino=14040 res=1 audit: type=1804 audit(1677158343.623:69): pid=11174 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir2418648591/syzkaller.KoPska/53/file0/bus" dev="loop3" ino=7 res=1 audit: type=1804 audit(1677158343.643:70): pid=11159 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir375964681/syzkaller.oA5DGU/45/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677158343.643:71): pid=11174 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir2418648591/syzkaller.KoPska/53/file0/bus" dev="loop3" ino=7 res=1 audit: type=1804 audit(1677158343.653:72): pid=11159 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir375964681/syzkaller.oA5DGU/45/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677158343.733:73): pid=11181 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir375964681/syzkaller.oA5DGU/45/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677158343.733:74): pid=11181 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir375964681/syzkaller.oA5DGU/45/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677158343.743:75): pid=11181 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir375964681/syzkaller.oA5DGU/45/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677158343.973:76): pid=11169 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1999543085/syzkaller.JgoCSd/48/file0/bus" dev="loop4" ino=7 res=1