================================ WARNING: inconsistent lock state 4.19.106-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.5/12530 [HC0[0]:SC1[1]:HE1:SE0] takes: 000000003837b29b (&(&local->client_conns_lock)->rlock){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 000000003837b29b (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_one_client_conn net/rxrpc/conn_client.c:949 [inline] 000000003837b29b (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_client_conn+0x666/0xc00 net/rxrpc/conn_client.c:1002 {SOFTIRQ-ON-W} state was registered at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:309 [inline] rxrpc_connect_call+0x301/0x4630 net/rxrpc/conn_client.c:702 rxrpc_new_client_call+0x8c6/0x1850 net/rxrpc/call_object.c:291 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:596 [inline] rxrpc_do_sendmsg+0xf2e/0x1bc1 net/rxrpc/sendmsg.c:652 rxrpc_sendmsg+0x4a8/0x5b0 net/rxrpc/af_rxrpc.c:593 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x195/0x470 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 1480 hardirqs last enabled at (1480): [] trace_hardirqs_on_thunk+0x1a/0x1c hardirqs last disabled at (1479): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (536): [] __do_softirq+0x650/0x93c kernel/softirq.c:318 softirqs last disabled at (1409): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (1409): [] irq_exit+0x17b/0x1c0 kernel/softirq.c:412 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 syz-executor.5/12530: #0: 0000000070db76d4 (rcu_callback){....}, at: __rcu_reclaim kernel/rcu/rcu.h:226 [inline] #0: 0000000070db76d4 (rcu_callback){....}, at: rcu_do_batch kernel/rcu/tree.c:2584 [inline] #0: 0000000070db76d4 (rcu_callback){....}, at: invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] #0: 0000000070db76d4 (rcu_callback){....}, at: __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] #0: 0000000070db76d4 (rcu_callback){....}, at: rcu_process_callbacks+0xbff/0x17f0 kernel/rcu/tree.c:2881 stack backtrace: CPU: 0 PID: 12530 Comm: syz-executor.5 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+0x188/0x20d lib/dump_stack.c:118 print_usage_bug.cold+0x327/0x425 kernel/locking/lockdep.c:2540 valid_state kernel/locking/lockdep.c:2553 [inline] mark_lock_irq kernel/locking/lockdep.c:2747 [inline] mark_lock+0xc71/0x11b0 kernel/locking/lockdep.c:3127 mark_irqflags kernel/locking/lockdep.c:3005 [inline] __lock_acquire+0xc62/0x49c0 kernel/locking/lockdep.c:3368 lock_acquire+0x170/0x400 kernel/locking/lockdep.c:3903 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:949 [inline] rxrpc_put_client_conn+0x666/0xc00 net/rxrpc/conn_client.c:1002 rxrpc_put_connection net/rxrpc/ar-internal.h:951 [inline] rxrpc_rcu_destroy_call+0xb6/0x1e0 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+0xb2d/0x17f0 kernel/rcu/tree.c:2881 __do_softirq+0x26c/0x93c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17b/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:preempt_count_sub+0x47/0x150 kernel/sched/core.c:3260 Code: 03 83 c0 03 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 ef 00 00 00 8b 0d 09 af 26 0a 85 c9 75 18 65 8b 05 2e 63 bb 7e 25 ff ff ff 7f <39> c3 7f 1a 81 fb fe 00 00 00 76 6a 65 8b 05 16 63 bb 7e f7 db 65 RSP: 0018:ffff8880454d7780 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffff8880454d7728 RDI: 0000000000000001 RBP: ffff8880454d7b20 R08: 0000000000000001 R09: 0000000000000001 R10: 000000000002499b R11: 0000000000064071 R12: ffff8880454d0000 R13: ffff8880454d789d R14: ffff8880454d78a0 R15: ffff8880454d7868 unwind_next_frame+0xd01/0x18a0 arch/x86/kernel/unwind_orc.c:550 __save_stack_trace+0x7a/0xf0 arch/x86/kernel/stacktrace.c:44 save_stack+0x32/0xa0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 kmem_cache_alloc+0x127/0x710 mm/slab.c:3559 copy_sighand kernel/fork.c:1438 [inline] copy_process.part.0+0x1ffb/0x7a60 kernel/fork.c:1891 copy_process kernel/fork.c:1694 [inline] _do_fork+0x22f/0xf40 kernel/fork.c:2207 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c479 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:00007f82215d1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f82215d26d4 RCX: 000000000045c479 RDX: 9999999999999999 RSI: 0000000000000000 RDI: 04000000000003fe RBP: 000000000076bf20 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000074 R14: 00000000004c2d06 R15: 000000000076bf2c x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING Unknown ioctl -2145893024 x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING Unknown ioctl -2145893024 IPVS: ftp: loaded support on port[0] = 21 Unknown ioctl -2145893024 x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING IPVS: ftp: loaded support on port[0] = 21 x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING Unknown ioctl -2145893024 Unknown ioctl -2145893024 cgroup: fork rejected by pids controller in /syz5 device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state audit: type=1400 audit(1582820067.251:88): avc: denied { ioctl } for pid=12740 comm="syz-executor.3" path="socket:[54999]" dev="sockfs" ino=54999 ioctlcmd=0x8912 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_rdma_socket permissive=1 xt_check_match: 9 callbacks suppressed x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING caif_hsicaif_hsi_newlink: failed to get the cfhsi_ops x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING caif_hsicaif_hsi_newlink: failed to get the cfhsi_ops x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING caif_hsicaif_hsi_newlink: failed to get the cfhsi_ops x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING caif_hsicaif_hsi_newlink: failed to get the cfhsi_ops x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING audit: type=1326 audit(1582820070.041:89): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=13071 comm="syz-executor.2" exe="/root/syz-executor.2" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45f2ba code=0x7fc00000 audit: type=1326 audit(1582820070.691:90): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=13071 comm="syz-executor.2" exe="/root/syz-executor.2" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45f2ba code=0x7fc00000 x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING IPv6: ADDRCONF(NETDEV_CHANGE): rose0: link becomes ready xt_check_match: 8 callbacks suppressed x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING caif_hsicaif_hsi_newlink: failed to get the cfhsi_ops x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING