From: Martin Schiller <ms@dev.tdt.de>
To: netdev-bot+sinfo@kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>, Lin Ma <linma@zju.edu.cn>,
Duoming Zhou <duoming@zju.edu.cn>,
Xiyu Yang <xiyuyang19@fudan.edu.cn>,
Xin Tan <tanxin.ctf@gmail.com>,
linux-x25@vger.kernel.org, netdev@vger.kernel.org,
Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>,
Shuai Liu <847807867@qq.com>,
Krystian Kaniewski <krystianmkaniewski@gmail.com>,
syzbot+300375dfd44665f063a6@syzkaller.appspotmail.com,
syzbot+9faa82ae2e94c5c7d2ef@syzkaller.appspotmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2 0/2] net/x25: don't call lock_sock() from softirq in x25_kill_by_neigh()
Date: Fri, 27 Nov 2026 07:43:44 +0100 (CET) [thread overview]
Message-ID: <027c20e8213255a86f182d089390b091@dev.tdt.de> (raw)
In-Reply-To: <179576123458.3294.15178511049839805716@kernel.org>
On Fri, 27 Nov 2026 07:33:54 +0100, netdev-bot wrote:
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by LLM and not proven at runtime). If it was triggered
> please include the symptoms, like the stack trace or kernel messages.
Patch 1 fixes a triggered issue. syzbot hits it with its reproducers,
see the two reports in the Closes: tags. It also reproduces in QEMU
with two lapbether devices on a veth pair: when the link goes down
with a call up, an unpatched kernel with lockdep and
DEBUG_ATOMIC_SLEEP reports (trimmed):
WARNING: inconsistent lock state
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
x25test/26 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffff888000a81218 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x50/0x99
...
BUG: sleeping function called from invalid context at net/core/sock.c:3908
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 26, name: x25test
Call Trace:
<IRQ>
? lock_sock_nested+0x3e/0x6c
? x25_kill_by_neigh+0x50/0x99
? x25_lapb_receive_frame+0x2d9/0x2f7
...
? lapbeth_napi_poll+0x30/0x47
? __napi_poll.constprop.0+0x1f/0x107
? net_rx_action+0x134/0x26c
? handle_softirqs+0x14c/0x2e5
With the series applied, these splats are gone; the tests are
described in the cover letter.
Patch 2 is theoretical. The x25_sendmsg() and x25_output() cases were
found by the netdev AI review of v1, the x25_recvmsg() case by Krystian
by code inspection. The window, a CLEAR or a link failure handled in
softirq while the socket lock is dropped, is narrow, and I have not
reproduced it at runtime.
prev parent reply other threads:[~2026-11-27 6:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 6:28 [PATCH net v2 0/2] net/x25: don't call lock_sock() from softirq in x25_kill_by_neigh() Martin Schiller
2026-11-27 6:28 ` [PATCH net v2 1/2] " Martin Schiller
2026-11-27 6:28 ` [PATCH net v2 2/2] net/x25: re-check x25->neighbour after re-acquiring the socket lock Martin Schiller
2026-11-27 6:33 ` [PATCH net v2 0/2] net/x25: don't call lock_sock() from softirq in x25_kill_by_neigh() netdev-bot+sinfo
2026-11-27 6:43 ` Martin Schiller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=027c20e8213255a86f182d089390b091@dev.tdt.de \
--to=ms@dev.tdt.de \
--cc=847807867@qq.com \
--cc=davem@davemloft.net \
--cc=duoming@zju.edu.cn \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=krystianmkaniewski@gmail.com \
--cc=kuba@kernel.org \
--cc=linma@zju.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-x25@vger.kernel.org \
--cc=netdev-bot+sinfo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ngocthang2710.1999@gmail.com \
--cc=pabeni@redhat.com \
--cc=syzbot+300375dfd44665f063a6@syzkaller.appspotmail.com \
--cc=syzbot+9faa82ae2e94c5c7d2ef@syzkaller.appspotmail.com \
--cc=tanxin.ctf@gmail.com \
--cc=willemb@google.com \
--cc=xiyuyang19@fudan.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox