[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191202165632.GA4063@linux.intel.com>
Date: Mon, 2 Dec 2019 08:56:32 -0800
From: Sean Christopherson <sean.j.christopherson@...el.com>
To: Dmitry Vyukov <dvyukov@...gle.com>
Cc: syzkaller <syzkaller@...glegroups.com>,
syzbot <syzbot+7e2ab84953e4084a638d@...kaller.appspotmail.com>,
Casey Schaufler <casey@...aufler-ca.com>,
Frederic Weisbecker <frederic@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"H. Peter Anvin" <hpa@...or.com>,
Jim Mattson <jmattson@...gle.com>,
James Morris <jmorris@...ei.org>,
"Raslan, KarimAllah" <karahmed@...zon.de>,
Kate Stewart <kstewart@...uxfoundation.org>,
KVM list <kvm@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-security-module <linux-security-module@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>, Ingo Molnar <mingo@...hat.com>,
Pavel Tatashin <pasha.tatashin@...cle.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Philippe Ombredanne <pombredanne@...b.com>,
Radim Krčmář <rkrcmar@...hat.com>,
"Serge E. Hallyn" <serge@...lyn.com>,
syzkaller-bugs <syzkaller-bugs@...glegroups.com>,
Thomas Gleixner <tglx@...utronix.de>,
the arch/x86 maintainers <x86@...nel.org>
Subject: Re: general protection fault in __schedule (2)
On Thu, Nov 28, 2019 at 10:53:10AM +0100, Dmitry Vyukov wrote:
> On Mon, Nov 25, 2019 at 6:54 PM Sean Christopherson
> <sean.j.christopherson@...el.com> wrote:
> > I have no objection to explicit status tracking or getting pinged on old
> > open bugs. I suppose I don't even mind the belated bisection, I'd probably
> > whine if syzbot didn't do the bisection :-).
> >
> > What's annoying is the report doesn't provide any information about when it
> > originally occured or on what kernel it originally failed. It didn't occur
> > to me that the original bug might be a year old and I only realized it was
> > from an old kernel when I saw "4.19.0-rc4+" in the dashboard's sample crash
> > log. Knowing that the original crash was a year old would have saved me
> > 5-10 minutes of getting myself oriented.
> >
> > Could syzbot provide the date and reported kernel version (assuming the
> > kernel version won't be misleading) of the original failure in its reports?
>
> +syzkaller mailing list for syzbot discussion
>
> We tried to provide some aggregate info in email reports long time ago
> (like trees where it occurred, number of crashes). The problem was
> that any such info captured in emails become stale very quickly. E.g.
> later somebody looks at the report and thinking "oh, linux-next only"
> or "it happened only once", but maybe it's not for a long time. E.g.
> if we say "it last happened 3 months" ago, maybe it's just happened
> again once we send it... While this "emails always provide latest
> updates" works for kernel in other context b/c updates provided by
> humans and there is no other source of truth; it does not play well
> with automated systems, or syzbot will need to send several emails per
> second, because it's really the rate at which things change.
>
> If we add some info, which one should it be? The original crash, the
> one used for bisection, or the latest one? All these are different...
> syzbot does not know "4.19.0-rc4+" strings for commits, it generally
> identifies commits by hashes. There are dates, but then again which
> one? Author or commit? Author is what generally shown, but I remember
> a number of patches where Author date is 1.5 years old for just merged
> commits :)
>
> There is another problem: if we stuff too many info into emails,
> people still stop reading them. This is very serious and real concern.
> If you have 1000-page manual, it's well documented, but it's
> equivalent to no docs at all, nobody is reading 1000 pages to find 1
> bit of info. Especially if you don't know that there is an important
> bit that you need to find in the first place...
>
> What would be undoubtedly positive is presenting information on the
> dashboard better (If we find a way).
> Currently the page says near the top:
>
> First crash: 478d, last: 430d
>
> The idea was that "last: 430d" is supposed to communicate the bit of
> info that confused you. Is it what you were looking for? Is there a
> better way to present it?
Ah, yes, that's what I was looking for. Tweaking the presention of the
dashboard and/or email reports, e.g. to encourage readers to go to the
dashboard in the first place, would definitely help. A few ideas:
- Display the first/last crash dates in yyyy/mm/dd format rather than
showing the number of days since failure. I didn't even realize 478d
and 430d were relative dates until your email, though that's probably
more my failing than syzbot's :-)
- On the dashboard page, separate the basic crash info from the bisection
details, e.g. display the basic crash info using the same table format
as "Duplicate of" and "similar bugs", and/or move the bisection details
below the aforementioned tables. The basic info stands out fairly well
when there aren't bisection details, but for bugs with bisection info
the combined info becomes a wall of text that my eyes tend to skip over.
- Don't rely on the recipients of bisection reports having the original
crash report, e.g. use the dashboard link to reference the crash and
always display it at the top, maybe isolated via whitespace. The other
auto-generated reports could use a similar format to teach folks that
the dashboard link is the canonical reference.
For example, on bisection show:
syzbot has bisected crash:
https://syzkaller.appspot.com/bug?extid=7e2ab84953e4084a638d
first bad commit:
commit 8fcc4b5923af5de58b80b53a069453b135693304
Author: Jim Mattson <jmattson@...gle.com>
Date: Tue Jul 10 09:27:20 2018 +0000
kvm: nVMX: Introduce KVM_CAP_NESTED_STATE
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=124cdbace00000
start commit: 234b69e3 ocfs2: fix ocfs2 read block panic
git tree: upstream
final crash: https://syzkaller.appspot.com/x/report.txt?x=114cdbace00000
console output: https://syzkaller.appspot.com/x/log.txt?x=164cdbace00000
kernel config: https://syzkaller.appspot.com/x/.config?x=5fa12be50bca08d8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=150f0a4e400000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17f67111400000
vs.
syzbot has bisected this bug to:
commit 8fcc4b5923af5de58b80b53a069453b135693304
Author: Jim Mattson <jmattson@...gle.com>
Date: Tue Jul 10 09:27:20 2018 +0000
kvm: nVMX: Introduce KVM_CAP_NESTED_STATE
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=124cdbace00000
start commit: 234b69e3 ocfs2: fix ocfs2 read block panic
git tree: upstream
final crash: https://syzkaller.appspot.com/x/report.txt?x=114cdbace00000
console output: https://syzkaller.appspot.com/x/log.txt?x=164cdbace00000
kernel config: https://syzkaller.appspot.com/x/.config?x=5fa12be50bca08d8
dashboard link: https://syzkaller.appspot.com/bug?extid=7e2ab84953e4084a638d
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=150f0a4e400000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17f67111400000
And a similar format for the initial crash report:
syzbot found the following crash:
https://syzkaller.appspot.com/bug?extid=00be5da1d75f1cc95f6b
HEAD commit: ad062195 Merge tag 'platform-drivers-x86-v5.4-1' of git://..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=154910ad600000
kernel config: https://syzkaller.appspot.com/x/.config?x=f9fc16a6374d5fd0
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
Unfortunately, I don't have any reproducer for this crash yet.
vs.
syzbot found the following crash on:
HEAD commit: ad062195 Merge tag 'platform-drivers-x86-v5.4-1' of git://..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=154910ad600000
kernel config: https://syzkaller.appspot.com/x/.config?x=f9fc16a6374d5fd0
dashboard link: https://syzkaller.appspot.com/bug?extid=00be5da1d75f1cc95f6b
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
Unfortunately, I don't have any reproducer for this crash yet.
Powered by blists - more mailing lists