================================ WARNING: inconsistent lock state 5.9.0-rc3-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.4/22147 [HC0[0]:SC1[1]:HE1:SE0] takes: ffffffff89c54ff8 (padata_works_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffffffff89c54ff8 (padata_works_lock){+.?.}-{2:2}, at: padata_do_parallel+0x4d7/0x860 kernel/padata.c:220 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1f3/0xae0 kernel/locking/lockdep.c:5006 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] padata_do_parallel+0x4d7/0x860 kernel/padata.c:220 pcrypt_aead_encrypt+0x39f/0x4d0 crypto/pcrypt.c:115 crypto_aead_encrypt+0xaa/0xf0 crypto/aead.c:94 tls_do_encryption net/tls/tls_sw.c:528 [inline] tls_push_record+0x12ce/0x2e60 net/tls/tls_sw.c:762 bpf_exec_tx_verdict+0xd82/0x11a0 net/tls/tls_sw.c:802 tls_sw_sendmsg+0xa41/0x1800 net/tls/tls_sw.c:1014 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:671 __sys_sendto+0x21c/0x320 net/socket.c:1992 __do_sys_sendto net/socket.c:2004 [inline] __se_sys_sendto net/socket.c:2000 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2000 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 irq event stamp: 160 hardirqs last enabled at (160): [] __local_bh_enable_ip+0x10f/0x1f0 kernel/softirq.c:200 hardirqs last disabled at (159): [] __local_bh_enable_ip+0x154/0x1f0 kernel/softirq.c:177 softirqs last enabled at (106): [] asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 softirqs last disabled at (133): [] asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(padata_works_lock); lock(padata_works_lock); *** DEADLOCK *** 4 locks held by syz-executor.4/22147: #0: ffffffff8d513860 (&table[i].mutex){+.+.}-{3:3}, at: nfnl_lock net/netfilter/nfnetlink.c:63 [inline] #0: ffffffff8d513860 (&table[i].mutex){+.+.}-{3:3}, at: nfnetlink_rcv_msg+0x912/0xea0 net/netfilter/nfnetlink.c:230 #1: ffffffff89bcb580 (console_lock){+.+.}-{0:0}, at: vprintk_func+0x8f/0x1a6 kernel/printk/printk_safe.c:393 #2: ffffc90000007d68 ((&d->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #2: ffffc90000007d68 ((&d->timer)){+.-.}-{0:0}, at: call_timer_fn+0xdb/0x760 kernel/time/timer.c:1403 #3: ffffffff89bd6a40 (rcu_read_lock){....}-{1:2}, at: buf_msg net/tipc/msg.h:198 [inline] #3: ffffffff89bd6a40 (rcu_read_lock){....}-{1:2}, at: tipc_bearer_xmit_skb+0x8c/0x3f0 net/tipc/bearer.c:516 stack backtrace: CPU: 0 PID: 22147 Comm: syz-executor.4 Not tainted 5.9.0-rc3-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+0x198/0x1fd lib/dump_stack.c:118 print_usage_bug kernel/locking/lockdep.c:4020 [inline] valid_state kernel/locking/lockdep.c:3361 [inline] mark_lock_irq kernel/locking/lockdep.c:3560 [inline] mark_lock.cold+0x7a/0x7f kernel/locking/lockdep.c:4006 mark_usage kernel/locking/lockdep.c:3905 [inline] __lock_acquire+0x1126/0x5570 kernel/locking/lockdep.c:4380 lock_acquire+0x1f3/0xae0 kernel/locking/lockdep.c:5006 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] padata_do_parallel+0x4d7/0x860 kernel/padata.c:220 pcrypt_aead_encrypt+0x39f/0x4d0 crypto/pcrypt.c:115 crypto_aead_encrypt+0xaa/0xf0 crypto/aead.c:94 tipc_aead_encrypt net/tipc/crypto.c:742 [inline] tipc_crypto_xmit+0x17a9/0x2690 net/tipc/crypto.c:1613 tipc_bearer_xmit_skb+0x180/0x3f0 net/tipc/bearer.c:523 tipc_disc_timeout+0x84b/0xc90 net/tipc/discover.c:334 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1413 expire_timers kernel/time/timer.c:1458 [inline] __run_timers.part.0+0x67c/0xaa0 kernel/time/timer.c:1755 __run_timers kernel/time/timer.c:1736 [inline] run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1768 __do_softirq+0x1f7/0xa91 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x9d/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x235/0x280 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] RIP: 0010:console_unlock+0xb4a/0xe60 kernel/printk/printk.c:2509 Code: 89 48 c1 e8 03 42 80 3c 38 00 0f 85 18 03 00 00 48 83 3d a0 f8 58 08 00 0f 84 90 01 00 00 e8 4d 07 17 00 48 8b 7c 24 30 57 9d <0f> 1f 44 00 00 8b 5c 24 64 31 ff 89 de e8 b4 03 17 00 85 db 0f 84 RSP: 0018:ffffc90005616f38 EFLAGS: 00000212 RAX: 000000000000728f RBX: 0000000000000200 RCX: ffffc900116b9000 RDX: 0000000000040000 RSI: ffffffff815d43b3 RDI: 0000000000000212 RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff8c5f49e7 R10: fffffbfff18be93c R11: 0000000000000001 R12: ffffffff84c29770 R13: 0000000000000068 R14: ffffffff8a3cb5d0 R15: dffffc0000000000 vprintk_emit+0x2ff/0x740 kernel/printk/printk.c:2029 vprintk_func+0x8f/0x1a6 kernel/printk/printk_safe.c:393 printk+0xba/0xed kernel/printk/printk.c:2078 __nla_validate_parse.cold+0x4c/0x56 lib/nlattr.c:545 __nla_parse+0x3d/0x4a lib/nlattr.c:630 nla_parse_nested_deprecated include/net/netlink.h:1218 [inline] ctnetlink_parse_tuple_ip net/netfilter/nf_conntrack_netlink.c:1276 [inline] ctnetlink_parse_tuple_filter+0x23c/0xa40 net/netfilter/nf_conntrack_netlink.c:1415 ctnetlink_parse_tuple net/netfilter/nf_conntrack_netlink.c:1456 [inline] ctnetlink_new_conntrack+0x20b/0xee0 net/netfilter/nf_conntrack_netlink.c:2416 nfnetlink_rcv_msg+0xbe8/0xea0 net/netfilter/nfnetlink.c:235 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2470 nfnetlink_rcv+0x1ac/0x420 net/netfilter/nfnetlink.c:569 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:671 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d5b9 Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f66bf532c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000002a600 RCX: 000000000045d5b9 RDX: 0000000000000000 RSI: 0000000020000640 RDI: 0000000000000003 RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec R13: 00007ffcf4f933cf R14: 00007f66bf5339c0 R15: 000000000118cfec