public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [LSF/MM/BPF TOPIC] Documenting the correct pushback on AI inspired (and other) fixes in older drivers
@ 2026-02-05  9:51 James Bottomley
  2026-02-05 16:30 ` Bart Van Assche
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: James Bottomley @ 2026-02-05  9:51 UTC (permalink / raw)
  To: linux-scsi@vger.kernel.org, linux-block@vger.kernel.org,
	linux-fsdevel

To set the stage, we in SCSI have seen an uptick in patches to older
drivers mostly fixing missing free (data leak) and data race problems.
I'm not even sure they're all AI found, but we don't really need to
know that. The problem, that the submitters often don't appreciate, is
that every "fix" has some chance of being wrong, so it requires code
inspection (which is also not free, and which may get it wrong too) and
testing, for which, often, no-one has any immediate hardware. The
problems we see is that missed frees (often in error legs) represent
tiny amounts of memory over the lifetime of the driver (they're often
in the remove legs) and so we have to ask set against the risk of a
wrong patch, is the problem even worth fixing? The same goes for data
races ... and here the suggested fixes are often somewhat complex and,
on analysis, problematic in some way. I've cc'd fsdevel, because I
think you're seeing a similar thing for less well maintained
filesystems.

I'd like to see us formulate a document we can put into the kernel and
point to when they come along. Probably formulated along the lines of
"first do no harm" and pointing out that every "fix" carries risk and
we have to set that risk against what we actually get in terms of
benefits. So require the submitter to specify:

 * What are the user visible effects (memory leak = none), transient
   bad stats data, or actual data corruption or kernel crash (latter
   being most serious)
 * how likely (or often) will this be seen?  If about once a kernel boot(
   or less), at this point if you have anything less than corruption or
   a crash, don't bother fixing it because the effect is too minor
 * For bad stats data, is there an existing tool that uses the data, if
   not don't bother and even if so show it leads to issues
 * How was the fix tested (to reduce risk) i.e. do you have the
   hardware or an acceptable emulation?  If not, report the issue, but
   don't bother sending the fix.

I think this is just a starting point, and, obviously, it's a bit
driver centric, but we can probably add generalizations for filesystems
(and even mm and bpf).

Regards,

James


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-02-08 23:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05  9:51 [LSF/MM/BPF TOPIC] Documenting the correct pushback on AI inspired (and other) fixes in older drivers James Bottomley
2026-02-05 16:30 ` Bart Van Assche
2026-02-05 20:54   ` Matthew Wilcox
2026-02-05 22:38     ` James Bottomley
2026-02-05 16:40 ` Haris Iqbal
2026-02-05 22:40   ` James Bottomley
2026-02-05 23:37     ` Chuck Lever
2026-02-05 22:57 ` Finn Thain
2026-02-06  5:18   ` Darrick J. Wong
2026-02-06 22:38     ` Finn Thain
2026-02-08 17:58   ` James Bottomley
2026-02-08 23:41     ` Finn Thain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox