Re: [PATCH 2/2] nvme: drop WARN_ON_ONCE on write_stream bounds check

Greg Kroah-Hartman <[email protected]> Thu, 30 Jul 2026 17:02:32 +0200
Newsgroups org.infradead.lists.linux-nvme,org.kernel.vger.linux-kernel
Message-ID <2026073054-visiting-plural-7eb0@gregkh>
On Thu, Jul 30, 2026 at 08:27:07AM -0600, Keith Busch wrote:
> On Thu, Jul 30, 2026 at 04:04:03PM +0200, Greg Kroah-Hartman wrote:
> > It's only the systems that have panic-on-warn enabled that need to worry
> > about user-triggered calls to that macro, and those systems know what
> > they are getting themselves into, including the huge number of CVE fixes
> > they then need to be responsible for backporting :)
> 
> This is a bit of a rug pull. We've long held the pattern that WARN is an
> appropriate macro for conditions that should never happen, but don't
> leave the system in an unrecoverable or compromised state. For
> unrecoverable conditions, use BUG. It has been a valuable tool for
> debugging and bug reporting.

Sure, that's fine, just don't have such a path that a user can trigger,
and all is good.  syzbot has been dealing with this for years, it's not
a rug-pull at all.

thanks,

greg k-h