================================ WARNING: inconsistent lock state 5.5.0-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.2/12641 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88808c7849c8 (&(&local->client_conns_lock)->rlock){+.?.}, at: spin_lock include/linux/spinlock.h:338 [inline] ffff88808c7849c8 (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_one_client_conn net/rxrpc/conn_client.c:948 [inline] ffff88808c7849c8 (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_client_conn+0x16f/0x8f0 net/rxrpc/conn_client.c:1001 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x154/0x250 kernel/locking/lockdep.c:4484 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:304 [inline] rxrpc_connect_call+0x6ae/0x2dd0 net/rxrpc/conn_client.c:701 rxrpc_new_client_call+0x75b/0xcb0 net/rxrpc/call_object.c:290 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:595 [inline] rxrpc_do_sendmsg+0xe34/0x1960 net/rxrpc/sendmsg.c:652 rxrpc_sendmsg+0x5eb/0x8b0 net/rxrpc/af_rxrpc.c:586 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x4f7/0x7f0 net/socket.c:2343 ___sys_sendmsg net/socket.c:2397 [inline] __sys_sendmmsg+0x2a9/0x5b0 net/socket.c:2487 __do_sys_sendmmsg net/socket.c:2516 [inline] __se_sys_sendmmsg net/socket.c:2513 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2513 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 148504 hardirqs last enabled at (148504): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (148504): [] _raw_spin_unlock_irqrestore+0x72/0xe0 kernel/locking/spinlock.c:191 hardirqs last disabled at (148503): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (148503): [] _raw_spin_lock_irqsave+0x7c/0xc0 kernel/locking/spinlock.c:159 softirqs last enabled at (148468): [] local_bh_enable+0x9/0x30 include/linux/bottom_half.h:31 softirqs last disabled at (148469): [] do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 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 *** 2 locks held by syz-executor.2/12641: #0: ffffffff89590a20 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff89590a20 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x83c/0xd40 net/core/rtnetlink.c:5435 #1: ffffffff892d9908 (rcu_callback){....}, at: rcu_lock_acquire+0x4/0x30 include/linux/rcupdate.h:207 stack backtrace: CPU: 0 PID: 12641 Comm: syz-executor.2 Not tainted 5.5.0-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+0x1fb/0x318 lib/dump_stack.c:118 print_usage_bug kernel/locking/lockdep.c:3100 [inline] valid_state+0x12ce/0x1350 kernel/locking/lockdep.c:3111 mark_lock_irq kernel/locking/lockdep.c:3308 [inline] mark_lock+0x41d/0x1650 kernel/locking/lockdep.c:3665 mark_usage kernel/locking/lockdep.c:3565 [inline] __lock_acquire+0x598/0x1bc0 kernel/locking/lockdep.c:3908 lock_acquire+0x154/0x250 kernel/locking/lockdep.c:4484 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:948 [inline] rxrpc_put_client_conn+0x16f/0x8f0 net/rxrpc/conn_client.c:1001 rxrpc_put_connection net/rxrpc/ar-internal.h:965 [inline] rxrpc_rcu_destroy_call+0x9c/0x1a0 net/rxrpc/call_object.c:572 rcu_do_batch kernel/rcu/tree.c:2186 [inline] rcu_core+0x81b/0x10c0 kernel/rcu/tree.c:2410 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2419 __do_softirq+0x283/0x7bd kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 do_softirq+0xfd/0x190 kernel/softirq.c:337 __local_bh_enable_ip+0x194/0x240 kernel/softirq.c:189 local_bh_enable+0x1f/0x30 include/linux/bottom_half.h:32 get_next_corpse net/netfilter/nf_conntrack_core.c:2012 [inline] nf_ct_iterate_cleanup+0x2fa/0x3a0 net/netfilter/nf_conntrack_core.c:2035 nf_ct_iterate_cleanup_net+0xf9/0x150 net/netfilter/nf_conntrack_core.c:2120 masq_device_event+0x9f/0xd0 net/netfilter/nf_nat_masquerade.c:88 notifier_call_chain kernel/notifier.c:83 [inline] __raw_notifier_call_chain kernel/notifier.c:361 [inline] raw_notifier_call_chain+0xe3/0x190 kernel/notifier.c:368 __dev_notify_flags+0x24a/0x4d0 net/core/dev.c:1943 dev_change_flags+0xec/0x190 net/core/dev.c:8229 do_setlink+0xb17/0x3880 net/core/rtnetlink.c:2596 __rtnl_newlink net/core/rtnetlink.c:3252 [inline] rtnl_newlink+0x1509/0x1c00 net/core/rtnetlink.c:3377 rtnetlink_rcv_msg+0x889/0xd40 net/core/rtnetlink.c:5438 netlink_rcv_skb+0x19e/0x3e0 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5456 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x766/0x920 net/netlink/af_netlink.c:1328 netlink_sendmsg+0xa2b/0xd40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x4f7/0x7f0 net/socket.c:2343 ___sys_sendmsg net/socket.c:2397 [inline] __sys_sendmsg+0x1ed/0x290 net/socket.c:2430 __do_sys_sendmsg net/socket.c:2439 [inline] __se_sys_sendmsg net/socket.c:2437 [inline] __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2437 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b399 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f06296dfc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f06296e06d4 RCX: 000000000045b399 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009c4 R14: 00000000004cb354 R15: 000000000075bf2c