From: Eric Biggers <ebiggers@kernel.org>
To: ltp@lists.linux.it
Subject: [LTP] crypto test af_alg04.c crash the LPAR
Date: Fri, 19 Apr 2019 12:04:47 -0700 [thread overview]
Message-ID: <20190419190446.GB183327@gmail.com> (raw)
In-Reply-To: <3CADF61C-036A-45F5-B7A4-644F3D16F814@gmail.com>
On Fri, Apr 19, 2019 at 11:03:23AM -0700, Enji Cooper wrote:
> On Apr 19, 2019, at 10:11, Eric Biggers <ebiggers@kernel.org> wrote:
>
> >> Is this test doing an intentional crash? When it is run on RHEL8.0 latest
> >> kernel, it immediately crashes the LPAR
> >
> > Do not send HTML email, people will usually ignore it...
> >
> > But yes, the test is testing for a bug that caused a kernel crash, so your
> > kernel has that bug. That's the whole point of the test; see the comment at the
> > top of the file.
> >
> > In general if anything userspace does crashes the kernel, it's a kernel bug.
>
> I agree with your statement, but there are a few things to potentially do to mitigate this:
> 1. If the test is a crash test for a known kernel bug fixed on a particular version, it should have a version check.
What for? It's not possible to reliably determine whether the bug exists based
on the kernel version. The fix has been backported to many older kernels, plus
the bug could be reintroduced in the future.
I trust you'll ensure this bug gets fixed in the kernel you're testing?
> 2. Printing out a diagnostic message to signal the intent may remove potential confusion about the intent of the test, as the end-user might not have access to the test sources. In this case, it might be smart to trigger the message via syslog on all consoles as the output could be lost on stdout.
> Thank you!
> -Enji
Perhaps we should add an INFO log message for good measure, but if a kernel
crash occurs while running LTP don't you need a way to determine which test was
running anyway? A crash could occur during any test; you can't assume that only
tests "intended" to cause a crash will do so. Also, when a test fails you need
the test source anyway, to determine what fix is needed.
- Eric
prev parent reply other threads:[~2019-04-19 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-19 13:45 [LTP] crypto test af_alg04.c crash the LPAR Chethan Jain
2019-04-19 17:11 ` Eric Biggers
2019-04-19 18:03 ` Enji Cooper
2019-04-19 19:04 ` Eric Biggers [this message]
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=20190419190446.GB183327@gmail.com \
--to=ebiggers@kernel.org \
--cc=ltp@lists.linux.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox