================================ WARNING: inconsistent lock state 5.5.0-next-20200207-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.0/10151 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88808f8e81c8 (&(&local->client_conns_lock)->rlock){+.?.}, at: spin_lock include/linux/spinlock.h:338 [inline] ffff88808f8e81c8 (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_one_client_conn net/rxrpc/conn_client.c:948 [inline] ffff88808f8e81c8 (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_client_conn+0x6ed/0xc90 net/rxrpc/conn_client.c:1001 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4484 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/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+0x358/0x4e30 net/rxrpc/conn_client.c:701 rxrpc_new_client_call+0x9c0/0x1ad0 net/rxrpc/call_object.c:290 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:595 [inline] rxrpc_do_sendmsg+0xffa/0x1d5f net/rxrpc/sendmsg.c:652 rxrpc_sendmsg+0x4d6/0x5f0 net/rxrpc/af_rxrpc.c:586 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:672 ____sys_sendmsg+0x358/0x880 net/socket.c:2343 ___sys_sendmsg+0x100/0x170 net/socket.c:2397 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2487 __do_sys_sendmmsg net/socket.c:2516 [inline] __se_sys_sendmmsg net/socket.c:2513 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2513 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 4502 hardirqs last enabled at (4502): [] trace_hardirqs_on_thunk+0x1a/0x1c arch/x86/entry/thunk_64.S:41 hardirqs last disabled at (4501): [] trace_hardirqs_off_thunk+0x1a/0x1c arch/x86/entry/thunk_64.S:42 softirqs last enabled at (4328): [] spin_unlock_bh include/linux/spinlock.h:383 [inline] softirqs last enabled at (4328): [] __release_sock+0xca/0x390 net/core/sock.c:2430 softirqs last disabled at (4483): [] invoke_softirq kernel/softirq.c:373 [inline] softirqs last disabled at (4483): [] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 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.0/10151: #0: ffff8880a7d92150 (sk_lock-AF_INET6){+.+.}, at: lock_sock include/net/sock.h:1516 [inline] #0: ffff8880a7d92150 (sk_lock-AF_INET6){+.+.}, at: inet_stream_connect+0x44/0xa0 net/ipv4/af_inet.c:718 #1: ffffffff89bac640 (rcu_callback){....}, at: rcu_do_batch kernel/rcu/tree.c:2176 [inline] #1: ffffffff89bac640 (rcu_callback){....}, at: rcu_core+0x562/0x1390 kernel/rcu/tree.c:2410 stack backtrace: CPU: 1 PID: 10151 Comm: syz-executor.0 Not tainted 5.5.0-next-20200207-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+0x327/0x378 kernel/locking/lockdep.c:3100 valid_state kernel/locking/lockdep.c:3111 [inline] mark_lock_irq kernel/locking/lockdep.c:3308 [inline] mark_lock+0xbb4/0x1220 kernel/locking/lockdep.c:3665 mark_usage kernel/locking/lockdep.c:3565 [inline] __lock_acquire+0x1e8e/0x4a00 kernel/locking/lockdep.c:3908 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4484 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/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+0x6ed/0xc90 net/rxrpc/conn_client.c:1001 rxrpc_put_connection net/rxrpc/ar-internal.h:965 [inline] rxrpc_rcu_destroy_call+0xbd/0x200 net/rxrpc/call_object.c:572 rcu_do_batch kernel/rcu/tree.c:2186 [inline] rcu_core+0x5e1/0x1390 kernel/rcu/tree.c:2410 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2419 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:24 Code: 89 f6 e8 52 b6 07 00 8b 95 78 ff ff ff 85 d2 75 23 eb 35 31 d2 4c 89 e7 ff d3 84 c0 74 2a 48 8d bd 78 ff ff ff e8 df b5 07 00 <8b> 85 78 ff ff ff 85 c0 74 14 48 8d bd 78 ff ff ff e8 09 a4 07 00 RSP: 0018:ffffc9000655f4e0 EFLAGS: 00000296 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000001 RBX: ffffffff81644aa0 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 1ffff92000cabe00 RDI: ffffc9000655f528 RBP: ffffc9000655f568 R08: 0000000000000001 R09: ffffc9000655f538 R10: ffffc9000655f508 R11: ffffc9000655f518 R12: ffffc9000655f598 R13: 0000000000000000 R14: ffff88804df10400 R15: ffff8880aa4001c0 stack_trace_save+0x8f/0xc0 kernel/stacktrace.c:123 save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:488 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:529 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc_track_caller+0x15f/0x760 mm/slab.c:3671 kmemdup+0x27/0x60 mm/util.c:127 kmemdup include/linux/string.h:499 [inline] dccp_feat_clone_sp_val.part.0+0x5d/0xe0 net/dccp/feat.c:369 dccp_feat_clone_sp_val net/dccp/feat.c:368 [inline] dccp_feat_change_recv net/dccp/feat.c:1141 [inline] dccp_feat_parse_options+0x1303/0x1bc0 net/dccp/feat.c:1411 dccp_parse_options+0x69d/0x1250 net/dccp/options.c:124 dccp_rcv_state_process+0x247/0x193a net/dccp/input.c:650 dccp_v6_do_rcv+0x269/0xbf0 net/dccp/ipv6.c:638 sk_backlog_rcv include/net/sock.h:938 [inline] __release_sock+0x129/0x390 net/core/sock.c:2437 release_sock+0x59/0x1c0 net/core/sock.c:2953 inet_wait_for_connect net/ipv4/af_inet.c:588 [inline] __inet_stream_connect+0x5a6/0xec0 net/ipv4/af_inet.c:680 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719 __sys_connect_file+0x161/0x1c0 net/socket.c:1857 __sys_connect+0x174/0x1b0 net/socket.c:1874 __do_sys_connect net/socket.c:1885 [inline] __se_sys_connect net/socket.c:1882 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1882 do_syscall_64+0xfa/0x790 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:00007fa7cdf6dc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007fa7cdf6e6d4 RCX: 000000000045b399 RDX: 000000000000001c RSI: 0000000020419000 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000007e R14: 00000000004c1cc8 R15: 000000000075bf2c