Linux 9p file system development
 help / color / mirror / Atom feed
From: Dominique Martinet <asmadeus@codewreck.org>
To: Yifei Chu <yifeichu24@gmail.com>
Cc: v9fs@lists.linux.dev, Eric Van Hensbergen <ericvh@kernel.org>,
	Latchesar Ionkov <lucho@ionkov.net>,
	Christian Schoenebeck <linux_oss@crudebyte.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [BUG] 9p: unknown RLOCK status triggers WARN_ONCE panic with panic_on_warn
Date: Fri, 29 May 2026 12:11:30 +0900	[thread overview]
Message-ID: <ahkD4tMzJR3qA0Bu@codewreck.org> (raw)
In-Reply-To: <CAPJnbgJ7ZK7DCjCfG56hd_iKGePmAzudb4hOWd4=9r32nM+KcA@mail.gmail.com>

Yifei Chu wrote on Sun, May 24, 2026 at 10:43:57AM -0400:
> Short version: I found that a 9P2000.L server can return an unknown RLOCK
> status byte and make the Linux 9P client hit a WARN_ONCE() in
> v9fs_file_do_lock(). With panic_on_warn=1, that turns into a reproducible
> kernel panic.

You're right we should not WARN() due to server sending us bogus data
(only on internal state bug)

Please send a patch directly next time, especially since this is trivial

I've saved us both time for this time:
https://lore.kernel.org/r/20260529-lock-warn-v1-1-20c29580d61d@codewreck.org

-- 
Dominique

      reply	other threads:[~2026-05-29  3:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-24 14:43 [BUG] 9p: unknown RLOCK status triggers WARN_ONCE panic with panic_on_warn Yifei Chu
2026-05-29  3:11 ` Dominique Martinet [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=ahkD4tMzJR3qA0Bu@codewreck.org \
    --to=asmadeus@codewreck.org \
    --cc=ericvh@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux_oss@crudebyte.com \
    --cc=lucho@ionkov.net \
    --cc=v9fs@lists.linux.dev \
    --cc=yifeichu24@gmail.com \
    /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