All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Tso" <tytso@mit.edu>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
	Derek Barbosa <debarbos@redhat.com>,
	Matthieu Baerts <matttbe@kernel.org>,
	Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
	Jason Gunthorpe <jgg@ziepe.ca>,
	Steven Rostedt <rostedt@goodmis.org>,
	users@kernel.org,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Stephen Finucane <stephenfin@redhat.com>
Subject: Re: Linking Patchwork with Sashiko?
Date: Fri, 17 Jul 2026 08:20:48 -0400	[thread overview]
Message-ID: <aloZ9hqSgzN3beqH@mit.edu> (raw)
In-Reply-To: <aliMsSH373RJ31Mq@zed>

On Thu, Jul 16, 2026 at 10:07:03AM -0500, Jacopo Mondi wrote:
> I got fooled by a Sashiko reported issue on patch for a driver I
> maintain. I asked the developer to address it, he did so in a separate
> patch, people got involved, lost quite some time on it, it ended up
> being a false positive.

Thanks, I think I see why the Media subsystem has such a huge
difference in their experience of Sashiko.  With the media subsystem,
you have to support drivers and the driver maintainers don't
necessarily have as much deep experience with the core media
infrastructure / framework.  Hence, you didn't immediately realize
that something which was a false positive.  I'm going to guess that
you have three levels of expertise; (a) the patch authors, some of
whom might have very little experience with the kernel, since their
last project might have been developing the firmware for the card, (b)
the driver maintainers, who know that driver very well, but might not
have deep expertise the core media subsystems, and (c) the core media
infrastructure developers / maintainers, who *do* know what is and
isn't fair.

I think the other difference is that in the media subsystem, you can
rely on the userspace code being "nice" (so you don't need to worry
about certain races or cleanup bugs, because a well-behaved upper
layers of the stack would *never* abuse the kernel system call in that
way).  With file systems, we can *count* on syzbot abusing the system
call interface and filing bugs which they will report to management as
security bugs even though no sane userspace would ever do something
like that.  So we get things which we could call false positives all
the *time* from syzbot, and arguably, if this can be used to crash the
kernel, perhaps it's fair to call it a security issue.  After all, can
you guarantee that only well-behaved media frameworks will be calling
the media subsystem's kernel interfaces?

The combination of these two means that we've already hardened against
many of the cases where userspace does something "unusual", and we are
inured to ignoring many of the syzbot's "false positives" (After all,
if it requires root to trigger an oops, is it really a security issue?
It might be a quality of implementation issue, but if it's a
pre-existing issue, we've been getting complaints from syzbot for
years.)

And then because we don't have to deal with drivers, if we get someone
who is relatively inexperienced trying to fix a syzbot bug, the result
is almost always a complete disaster (especially since good luck
trying to get new contributors to run the regression tests) having the
Sashiko review point out the obvious bugs is a huge time server.
Furthermore, since we don't have the layer of driver maintainers, if
we get a false positive from Sashiko, we don't have trouble
recognizing them, and the main cost to us is telling the patch author
not to fix unrelated problems in a single commit --- and so to either
fix the Sashiko complaint in a separate commit, or to save it for a
later patch series.

This has also helped us because it sometimes gives a newer contributor
another opportunity to work on the subsystem, and we just have to make
sure to warn off a contributor that a particular issue proposed by
Sashiko mgiht be beyond that new contributor's experience.  But I've
seen a few cases where the new contributor has found Sashiko reviews
to be quite engaging.

Cheers,

						- Ted

  parent reply	other threads:[~2026-07-17 12:21 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260528144627.1ae09ff2@foz.lan>
     [not found] ` <1372F826-5513-4EB2-AE27-1DC0D2DE0AEB@linux.dev>
     [not found]   ` <20260529083100.6710b6cd@foz.lan>
     [not found]     ` <20260529083801.2c7e8990@foz.lan>
     [not found]       ` <ahmwUk0uXTkdwohf@debarbos-thinkpadt14gen5.rmtusma.csb>
2026-05-30  8:30         ` Linking Patchwork with Sashiko? Mauro Carvalho Chehab
2026-05-30 15:57           ` Roman Gushchin
2026-05-30 18:00             ` Mauro Carvalho Chehab
2026-05-30 18:49               ` Mauro Carvalho Chehab
2026-05-30 18:53                 ` Mauro Carvalho Chehab
2026-06-02 15:51                   ` Derek Barbosa
2026-06-02 16:51                     ` Mauro Carvalho Chehab
2026-06-02 18:39                       ` Jason Gunthorpe
2026-06-02 20:29                         ` Mauro Carvalho Chehab
2026-06-02 20:13                     ` Roman Gushchin
2026-06-02 20:39                       ` Mauro Carvalho Chehab
2026-06-02 20:44                         ` Roman Gushchin
2026-06-02 23:50                         ` Matthieu Baerts
2026-06-03  3:35                           ` Mauro Carvalho Chehab
2026-06-03  3:49                             ` Roman Gushchin
2026-06-04  6:52                           ` Mauro Carvalho Chehab
2026-06-07 17:56                             ` Mauro Carvalho Chehab
2026-06-30 20:32                               ` Derek Barbosa
2026-07-10  5:45                                 ` Mauro Carvalho Chehab
2026-07-10  6:39                                   ` Mauro Carvalho Chehab
2026-07-11  1:01                                     ` Roman Gushchin
2026-07-13  7:55                                       ` Mauro Carvalho Chehab
2026-07-13  9:41                                         ` Laurent Pinchart
2026-07-13 20:04                                           ` Mauro Carvalho Chehab
2026-07-14 22:55                                             ` Roman Gushchin
2026-07-15  0:59                                               ` Laurent Pinchart
2026-07-15  2:00                                                 ` Roman Gushchin
2026-07-15  3:06                                                   ` Linus Torvalds
2026-07-15 12:21                                                     ` Jori Koolstra
2026-07-15 16:50                                                       ` Steven Rostedt
2026-07-15 18:13                                                       ` Nicolas Dufresne
2026-07-15 19:12                                                         ` Laurent Pinchart
2026-07-15 19:27                                                           ` Nicolas Dufresne
2026-07-15 20:03                                                             ` Laurent Pinchart
2026-07-16 15:04                                                       ` August Zeller
2026-07-15 16:43                                                     ` Laurent Pinchart
2026-07-15 23:28                                                     ` lyude
2026-07-15  7:59                                                   ` Jacopo Mondi
2026-07-15  8:40                                                     ` Mauro Carvalho Chehab
2026-07-15 17:31                                                     ` Theodore Tso
2026-07-16  8:07                                                       ` Jacopo Mondi
2026-07-17  9:40                                                         ` Paolo Bonzini
2026-07-17 12:20                                                         ` Theodore Tso [this message]
2026-07-17 13:25                                                           ` Mauro Carvalho Chehab
2026-07-17 15:22                                                           ` Nicolas Dufresne
2026-07-15 12:38                                                   ` Mark Brown
2026-07-15 16:28                                                   ` Laurent Pinchart
2026-07-15 21:08                                                     ` Roman Gushchin
2026-07-15 23:20                                                       ` Steven Rostedt
2026-07-16  0:09                                                         ` Roman Gushchin
2026-07-17 12:32                                                       ` Laurent Pinchart
2026-07-15  3:54                                                 ` Theodore Tso
2026-07-15  7:13                                                   ` Mauro Carvalho Chehab
2026-07-15 12:42                                                     ` James Bottomley
2026-07-15 16:18                                                       ` Laurent Pinchart
2026-07-15 16:53                                                         ` James Bottomley
2026-07-15 17:09                                                           ` Laurent Pinchart
2026-07-15 16:11                                                   ` Laurent Pinchart
2026-07-15 17:00                                                     ` Jan Kara
2026-07-15 20:28                                                       ` Laurent Pinchart
2026-07-15 20:36                                                         ` James Bottomley
2026-07-15 20:42                                                           ` Laurent Pinchart
2026-07-16  0:14                                                             ` Roman Gushchin
2026-07-16  7:04                                                           ` Mauro Carvalho Chehab
2026-07-15 23:32                                                         ` Steven Rostedt
2026-07-16  0:03                                                           ` Roman Gushchin
2026-07-16  7:21                                                         ` Mauro Carvalho Chehab
2026-07-16 13:33                                                         ` Jan Kara
2026-07-16 18:24                                                         ` Willy Tarreau
2026-07-15 17:14                                                     ` Theodore Tso
2026-07-15 17:35                                                       ` Miguel Ojeda
2026-07-15 17:41                                                       ` Laurent Pinchart
2026-07-15 18:18                                                         ` Linus Torvalds
2026-07-15 18:51                                                           ` Laurent Pinchart
2026-07-15 19:14                                                             ` Linus Torvalds
2026-07-15 20:13                                                               ` Laurent Pinchart
2026-07-16  9:20                                                                 ` Giacomo Tesio
2026-07-16 15:10                                                                 ` August Zeller
2026-07-16 20:54                                                                   ` Theodore Tso
2026-07-15 16:28                                                 ` Ihor Solodrai
2026-07-15 16:39                                                   ` Laurent Pinchart
2026-07-15 17:12                                                     ` Ihor Solodrai
2026-07-15 17:35                                                       ` Mark Brown
2026-07-15 18:39                                                         ` Ihor Solodrai
2026-07-15 20:32                                                           ` Mark Brown
2026-07-15 19:06                                                       ` Laurent Pinchart
2026-07-15 21:13                                                         ` Theodore Tso
2026-07-16  3:00                                                           ` Nicolas Dufresne
2026-07-16  3:53                                                             ` Theodore Tso
2026-07-16  7:55                                                               ` Mauro Carvalho Chehab
2026-07-16 20:54                                                               ` Nicolas Dufresne
2026-07-16 22:30                                                                 ` Dmitry Torokhov
2026-07-16  6:23                                                           ` Jai Luthra
2026-07-16 12:32                                                             ` Theodore Tso
2026-07-15 17:41                                                     ` Jason Gunthorpe
2026-07-15 19:10                                                       ` Laurent Pinchart
2026-07-15 19:55                                                         ` Mark Brown
2026-07-15 19:38                                                       ` Dmitry Torokhov
2026-07-15 21:27 voste62ocr

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=aloZ9hqSgzN3beqH@mit.edu \
    --to=tytso@mit.edu \
    --cc=debarbos@redhat.com \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=jgg@ziepe.ca \
    --cc=konstantin@linuxfoundation.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=matttbe@kernel.org \
    --cc=mchehab+huawei@kernel.org \
    --cc=roman.gushchin@linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=stephenfin@redhat.com \
    --cc=users@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.