All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: "Theodore Tso" <tytso@mit.edu>
Cc: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Roman Gushchin <roman.gushchin@linux.dev>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	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 15:25:59 +0200	[thread overview]
Message-ID: <20260717152559.2d2bfc8d@localhost> (raw)
In-Reply-To: <aloZ9hqSgzN3beqH@mit.edu>

On Fri, 17 Jul 2026 08:20:48 -0400
"Theodore Tso" <tytso@mit.edu> wrote:

> 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.

While there are still a certain amount of (a) and (b), a large amount
of media patches comes from experienced media driver developers with
a reasonable expertise at the core, as several vendors opt to hire
open source development companies.

For (a), current Sashiko reports could look scary, as false positives
might end causing confusion. We tried to reach a consensus with regards
to c/c the author. About half of the comments from people who 
participated at the last media summit think it was OK to c/c the author
at Sashiko reviews provided we add a disclaimer notice at the top of the
e-mail body; the other half thinks otherwise. Yet, there was a consensus
to enable Sashiko for a couple of Kernel releases to see how it goes.

So, we opted to start without c/c the author and placing reviews on a
separate opt-in ML, while also adding them to our patchwork instance
as well.

> 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). 

Yes, this is true. Also, V4L2 and dvb core are responsible to receive
system calls, passing them to drivers only after checking for abuses.

So, most of the issues there are things like use-after-free, error
handling logic, and lack of resource de-allocation (which is only an
issue, in practice, for usb drivers).

There are still a fair amount of such bugs, which is where Sashiko
and static analyzers can help more.

That's one of the reasons why I do think media needs its own custom
prompts.

> 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.  

Syzbot issues are usually related to V4L2 core. We don't get many such
reports, probably because v4l2 core doesn't have too much changes those
days.

-- 
Thanks,
Mauro

  reply	other threads:[~2026-07-17 13:26 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
2026-07-17 13:25                                                           ` Mauro Carvalho Chehab [this message]
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=20260717152559.2d2bfc8d@localhost \
    --to=mchehab+huawei@kernel.org \
    --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=roman.gushchin@linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=stephenfin@redhat.com \
    --cc=tytso@mit.edu \
    --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.