================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
klogd/5033 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffff8881ac322260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250
{SOFTIRQ-ON-W} state was registered at:
  lock_acquire+0x115/0x350
  lock_sock_nested+0x41/0x100
  x25_release+0xa0/0x3d0
  __sock_release+0xa0/0x1f0
  sock_close+0x1c/0x30
  __fput+0x418/0xa50
  task_work_run+0x1d9/0x270
  exit_to_user_mode_loop+0x204/0x770
  do_syscall_64+0x328/0x520
  entry_SYSCALL_64_after_hwframe+0x77/0x7f
irq event stamp: 83540
hardirqs last  enabled at (83540): [<ffffffff8188ee46>] __local_bh_enable_ip+0xd6/0x140
hardirqs last disabled at (83539): [<ffffffff8188ede2>] __local_bh_enable_ip+0x72/0x140
softirqs last  enabled at (83464): [<ffffffff89a9899d>] __alloc_skb+0x18d/0x7a0
softirqs last disabled at (83465): [<ffffffff8188ef37>] do_softirq+0x77/0xd0

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(sk_lock-AF_X25);
  <Interrupt>
    lock(sk_lock-AF_X25);

 *** DEADLOCK ***

locks held by klogd/5033: 1, last CPU#0:
 #0: ffffffff8fd5c6e0 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0

stack backtrace:
CPU: 0 UID: 0 PID: 5033 Comm: klogd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 print_usage_bug+0x28c/0x2e0
 valid_state+0xbe/0xf0
 mark_lock_irq+0x36/0x380
 mark_lock+0x117/0x190
 __lock_acquire+0x6b7/0x2e50
 lock_acquire+0x115/0x350
 lock_sock_nested+0x41/0x100
 x25_kill_by_neigh+0x10d/0x250
 x25_lapb_receive_frame+0x1b0/0xfb0
 netif_receive_skb_core+0x2a6/0x2b0
 lapbeth_napi_poll+0x42/0x90
 __napi_poll+0xaa/0x330
 net_rx_action+0x61d/0xf50
 handle_softirqs+0x226/0x860
 do_softirq+0x77/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x140
 __alloc_skb+0x1b1/0x7a0
 alloc_skb_with_frags+0xc6/0x760
 sock_alloc_send_pskb+0x878/0x990
 unix_dgram_sendmsg+0x4da/0x17b0
 sock_sendmsg_nosec+0x13a/0x180
 __sys_sendto+0x408/0x5a0
 __x64_sys_sendto+0xde/0x100
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f09197179b5
Code: 8b 44 24 08 48 83 c4 28 48 98 c3 48 98 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 26 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 7a 48 8b 15 44 c4 0c 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffe3705cb58 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f09197179b5
RDX: 000000000000007e RSI: 00005594ff6f84a0 RDI: 0000000000000003
RBP: 00005594ff6f3910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013
R13: 00007f09198a5212 R14: 00007ffe3705cc58 R15: 0000000000000000
 </TASK>
BUG: sleeping function called from invalid context at net/core/sock.c:3832
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5033, name: klogd
preempt_count: 101, expected: 0
RCU nest depth: 1, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<ffffffff89a989aa>] __alloc_skb+0x19a/0x7a0
CPU: 0 UID: 0 PID: 5033 Comm: klogd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 __might_resched+0x36a/0x4c0
 lock_sock_nested+0x56/0x100
 x25_kill_by_neigh+0x10d/0x250
 x25_lapb_receive_frame+0x1b0/0xfb0
 netif_receive_skb_core+0x2a6/0x2b0
 lapbeth_napi_poll+0x42/0x90
 __napi_poll+0xaa/0x330
 net_rx_action+0x61d/0xf50
 handle_softirqs+0x226/0x860
 do_softirq+0x77/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x140
 __alloc_skb+0x1b1/0x7a0
 alloc_skb_with_frags+0xc6/0x760
 sock_alloc_send_pskb+0x878/0x990
 unix_dgram_sendmsg+0x4da/0x17b0
 sock_sendmsg_nosec+0x13a/0x180
 __sys_sendto+0x408/0x5a0
 __x64_sys_sendto+0xde/0x100
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f09197179b5
Code: 8b 44 24 08 48 83 c4 28 48 98 c3 48 98 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 26 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 7a 48 8b 15 44 c4 0c 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffe3705cb58 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f09197179b5
RDX: 000000000000007e RSI: 00005594ff6f84a0 RDI: 0000000000000003
RBP: 00005594ff6f3910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013
R13: 00007f09198a5212 R14: 00007ffe3705cc58 R15: 0000000000000000
 </TASK>
