* [LTP] crypto test af_alg04.c crash the LPAR
@ 2019-04-19 13:45 Chethan Jain
2019-04-19 17:11 ` Eric Biggers
0 siblings, 1 reply; 4+ messages in thread
From: Chethan Jain @ 2019-04-19 13:45 UTC (permalink / raw)
To: ltp
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20190419/c1ea8c8e/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] crypto test af_alg04.c crash the LPAR
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
0 siblings, 1 reply; 4+ messages in thread
From: Eric Biggers @ 2019-04-19 17:11 UTC (permalink / raw)
To: ltp
> 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.
- Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] crypto test af_alg04.c crash the LPAR
2019-04-19 17:11 ` Eric Biggers
@ 2019-04-19 18:03 ` Enji Cooper
2019-04-19 19:04 ` Eric Biggers
0 siblings, 1 reply; 4+ messages in thread
From: Enji Cooper @ 2019-04-19 18:03 UTC (permalink / raw)
To: ltp
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.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] crypto test af_alg04.c crash the LPAR
2019-04-19 18:03 ` Enji Cooper
@ 2019-04-19 19:04 ` Eric Biggers
0 siblings, 0 replies; 4+ messages in thread
From: Eric Biggers @ 2019-04-19 19:04 UTC (permalink / raw)
To: ltp
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-19 19:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox