Hello,
syzbot found the following issue on:
HEAD commit: 28c35638ec51 Linux 5.15.219
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=17d7ce25580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=21845b39f8fc6be8
dashboard link:
https://syzkaller.appspot.com/bug?extid=268ee2c437483f50f7aa
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/baa03a1911e6/disk-28c35638.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/fc932057f792/vmlinux-28c35638.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/2d0d901fc7bd/bzImage-28c35638.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+268ee2...@syzkaller.appspotmail.com
================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
ksoftirqd/1/20 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffff888076882120 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1744 [inline]
ffff888076882120 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779
{SOFTIRQ-ON-W} state was registered at:
lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
lock_sock_nested+0x44/0x100 net/core/sock.c:3258
lock_sock include/net/sock.h:1744 [inline]
x25_bind+0x18a/0x3b0 net/x25/af_x25.c:698
__sys_bind+0x2e9/0x3e0 net/socket.c:1730
__do_sys_bind net/socket.c:1741 [inline]
__se_sys_bind net/socket.c:1739 [inline]
__x64_sys_bind+0x76/0x80 net/socket.c:1739
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
irq event stamp: 409738
hardirqs last enabled at (409738): [<ffffffff814936e6>] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:406
hardirqs last disabled at (409737): [<ffffffff81493687>] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:383
softirqs last enabled at (409338): [<ffffffff814961c4>] run_ksoftirqd+0xa4/0x100 kernel/softirq.c:943
softirqs last disabled at (409381): [<ffffffff814961c4>] run_ksoftirqd+0xa4/0x100 kernel/softirq.c:943
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 ***
1 lock held by ksoftirqd/1/20:
#0: ffffffff8c31ef60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313
stack backtrace:
CPU: 1 PID: 20 Comm: ksoftirqd/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<TASK>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3932
mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4135
mark_lock+0x208/0x320 kernel/locking/lockdep.c:4591
mark_usage kernel/locking/lockdep.c:-1 [inline]
__lock_acquire+0xc63/0x7b50 kernel/locking/lockdep.c:4966
lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
lock_sock_nested+0x44/0x100 net/core/sock.c:3258
lock_sock include/net/sock.h:1744 [inline]
x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779
x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138
__netif_receive_skb_one_core net/core/dev.c:5551 [inline]
netif_receive_skb_core+0x149/0x210 net/core/dev.c:5576
lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99
__napi_poll+0xbb/0x430 net/core/dev.c:7101
napi_poll net/core/dev.c:7168 [inline]
net_rx_action+0x522/0xa80 net/core/dev.c:7258
handle_softirqs+0x336/0x830 kernel/softirq.c:576
run_ksoftirqd+0xa4/0x100 kernel/softirq.c:943
smpboot_thread_fn+0x520/0x990 kernel/smpboot.c:164
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
</TASK>
BUG: sleeping function called from invalid context at net/core/sock.c:3260
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 20, name: ksoftirqd/1
INFO: lockdep is turned off.
Preemption disabled at:
[<ffffffff81493a7d>] softirq_handle_begin kernel/softirq.c:414 [inline]
[<ffffffff81493a7d>] handle_softirqs+0xfd/0x830 kernel/softirq.c:552
CPU: 1 PID: 20 Comm: ksoftirqd/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<TASK>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
___might_sleep+0x493/0x610 kernel/sched/core.c:9658
lock_sock_nested+0x5b/0x100 net/core/sock.c:3260
lock_sock include/net/sock.h:1744 [inline]
x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779
x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138
__netif_receive_skb_one_core net/core/dev.c:5551 [inline]
netif_receive_skb_core+0x149/0x210 net/core/dev.c:5576
lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99
__napi_poll+0xbb/0x430 net/core/dev.c:7101
napi_poll net/core/dev.c:7168 [inline]
net_rx_action+0x522/0xa80 net/core/dev.c:7258
handle_softirqs+0x336/0x830 kernel/softirq.c:576
run_ksoftirqd+0xa4/0x100 kernel/softirq.c:943
smpboot_thread_fn+0x520/0x990 kernel/smpboot.c:164
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
</TASK>
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup