All of lore.kernel.org
 help / color / mirror / Atom feed
* New rash of fuzzer bugs on kernel.org bugzilla
@ 2018-04-12 20:42 Eric Sandeen
  2018-04-12 23:36 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2018-04-12 20:42 UTC (permalink / raw)
  To: linux-xfs; +Cc: wen.xu

behold:

https://bugzilla.kernel.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=XFS&email1=wen.xu%40gatech.edu&emailreporter1=1&emailtype1=substring&known_name=XFS%20bugs&list_id=983189&product=File%20System&query_based_on=XFS%20bugs&query_format=advanced

the return of the fuzzer.

If you were looking for something to do on xfs and wanted a self-contained reproducible bug with a testcase, well, there you go!

(I'm not sure who gets email from kernel.org bugzilla; I'd encourage anyone who works on xfs to keep an eye on the kernel.org bugzilla one way or another - but anyway, figured I'd highlight these.)

Wen, I think we need to find ways for you to help us help you, as well.
Turning a crank on a fuzzer and sending the bugs off to us for triage will only go so far and so fast, as we have limited resources as well.

One of the most recent bugs filed, which you say does not reproduce on 4.16 but does on 4.15 - honestly, we work on upstream.  Distros and others need to look after older kernels if they care.  If /you/ care, then I'd propose bisecting to find which commit made the problem go away, and propose it for -stable if it looks clearly like a bugfix, and cc: the list.  If you really don't care, then I'd say close the bug and only file against current upstream kernels.

As for the rest, in general, there are other things that can help:

Use CONFIG_FRAME_POINTER so that backtraces are readable
Be sure to include the full relevant dmesg, everything after the mount message
Include your full config so we know which debugging options are on or off
Put some effort into your "poc.c" so you can say /which/ action triggered the flaw.
Run with a debug kernel to catch use after free, etc.

We can always download the bits and do the full investigation from scratch, debug kernel runs, etc etc but anything you can do to give a head start is helpful.

If your goal is to help get these fixed, we'd love to have you contribute as much as you can to the triage steps.  It's probably more fulfilling to be actively engaged in the solution as well as the discovery.  ;)  Others may have further suggestions, or think that my suggestions are bad ones, but that's my $0.02 here.

Thanks,
-Eric

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

* Re: New rash of fuzzer bugs on kernel.org bugzilla
  2018-04-12 20:42 New rash of fuzzer bugs on kernel.org bugzilla Eric Sandeen
@ 2018-04-12 23:36 ` Dave Chinner
  2018-04-13  2:06   ` Eric Sandeen
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2018-04-12 23:36 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: linux-xfs, wen.xu

On Thu, Apr 12, 2018 at 03:42:41PM -0500, Eric Sandeen wrote:
> behold:
> 
> https://bugzilla.kernel.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=XFS&email1=wen.xu%40gatech.edu&emailreporter1=1&emailtype1=substring&known_name=XFS%20bugs&list_id=983189&product=File%20System&query_based_on=XFS%20bugs&query_format=advanced
> 
> the return of the fuzzer.
> 
> If you were looking for something to do on xfs and wanted a
> self-contained reproducible bug with a testcase, well, there you
> go!
> 
> (I'm not sure who gets email from kernel.org bugzilla; I'd
> encourage anyone who works on xfs to keep an eye on the kernel.org
> bugzilla one way or another - but anyway, figured I'd highlight
> these.)

Nobody, I think. I'm betting it's still trying to send to the old
list, or maybe even xfs-masters....

> Wen, I think we need to find ways for you to help us help you, as
> well.  Turning a crank on a fuzzer and sending the bugs off to us
> for triage will only go so far and so fast, as we have limited
> resources as well.
> 
> One of the most recent bugs filed, which you say does not
> reproduce on 4.16 but does on 4.15 - honestly, we work on
> upstream.  Distros and others need to look after older kernels if
> they care.  If /you/ care, then I'd propose bisecting to find
> which commit made the problem go away, and propose it for -stable
> if it looks clearly like a bugfix, and cc: the list.  If you
> really don't care, then I'd say close the bug and only file
> against current upstream kernels.
> 
> As for the rest, in general, there are other things that can
> help:
> 
> Use CONFIG_FRAME_POINTER so that backtraces are readable
> Be sure to include the full relevant dmesg, everything after the mount message
> Include your full config so we know which debugging options are on or off
> Put some effort into your "poc.c" so you can say /which/ action triggered the flaw.
> Run with a debug kernel to catch use after free, etc.

FWIW, I'm not that interested in fuzzing v4 filesystems. We know
they have problems with undetected bit errors and are lacking in
information on disk to detect a lot of error types. Hence there's
only so much we can do to harden them.

As such, I'm much more interested in fuzzers that find problems on
v5 filesystems, because they have more substantial validation checks
and random bit errors are caught by CRC validation. V4 formats are
essentially a legacy format at this point, so while they may point
out problems in the format and the limitations of v4 format
verification, those issues might not even exist on v5 format
filesystems....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

* Re: New rash of fuzzer bugs on kernel.org bugzilla
  2018-04-12 23:36 ` Dave Chinner
@ 2018-04-13  2:06   ` Eric Sandeen
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Sandeen @ 2018-04-13  2:06 UTC (permalink / raw)
  To: Dave Chinner; +Cc: linux-xfs, wen.xu

On 4/12/18 6:36 PM, Dave Chinner wrote:

> FWIW, I'm not that interested in fuzzing v4 filesystems. We know
> they have problems with undetected bit errors and are lacking in
> information on disk to detect a lot of error types. Hence there's
> only so much we can do to harden them.

*nod* - how are you creating these fuzzed images, i.e. what mkfs
do you start with.  Are you randomizing mkfs options, and it just happens
that the ones with problems are the v4 filesystems w/o crcs?  That would
certainly make sense.

Or are you manually restricting the type of filesystems you create for
fuzzing?

-Eric

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

end of thread, other threads:[~2018-04-13  2:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-12 20:42 New rash of fuzzer bugs on kernel.org bugzilla Eric Sandeen
2018-04-12 23:36 ` Dave Chinner
2018-04-13  2:06   ` Eric Sandeen

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.