From: ebiederm@xmission.com (Eric W. Biederman)
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Simon Kagstrom" <simon.kagstrom@netinsight.net>,
dedekind1@gmail.com, "Américo Wang" <xiyou.wangcong@gmail.com>,
linux-kernel@vger.kernel.org,
"David Woodhouse" <dwmw2@infradead.org>,
"Ingo Molnar" <mingo@elte.hu>
Subject: Re: [PATCH] Provide ways of crashing the kernel through debugfs
Date: Mon, 01 Feb 2010 20:16:46 -0800 [thread overview]
Message-ID: <m1eil4i85t.fsf@fess.ebiederm.org> (raw)
In-Reply-To: <20100129023327.021cb23d.akpm@linux-foundation.org> (Andrew Morton's message of "Fri\, 29 Jan 2010 02\:33\:27 -0800")
Andrew Morton <akpm@linux-foundation.org> writes:
> On Fri, 29 Jan 2010 07:13:24 +0100 Simon Kagstrom <simon.kagstrom@netinsight.net> wrote:
>
>> On Thu, 28 Jan 2010 16:38:02 +0200
>> Artem Bityutskiy <dedekind1@gmail.com> wrote:
>>
>> > On Wed, 2010-01-27 at 10:53 +0800, Am__rico Wang wrote:
>> > > > Well, it provides a few more ways of crashing the kernel. That's
>> > > > basically the only additional feature you'll get.
>> > >
>> > > Yeah, I can see that, but why do I need to care how I crash the kernel
>> > > as long as I can crash it in a way.
>> >
>> > But Simon did explain in his first e-mail why he cares. You or others
>> > might care for similar reasons.
>>
>> Another argument for the patch is that it's simple and well-contained,
>> it doesn't touch any other code apart from the driver itself.
>>
>> It is also easy to extend with other tests, e.g., provoking kernel
>> hangs to test watchdogs and so on.
>>
>
> Yes, it's the sort of thing which lots of people have written
> throw-away ad-hoc versions of. It probably makes sense to do it once,
> do it right to save people from having to rererereinvent that wheel.
>
> What do others think?
I think it makes sense, and in fact we have already merged one attempt
at doing this generically. drivers/misc/lkdtm.c
I think Simon's patch adds some additional interesting failure modes.
write_after_free, corrupt_stack_write, unaligned_load_store.
Simon is there any chance you can change your patch to an enhancement of lkdtm?
lkdtm actually digs into the interesting failure points with a jprobe
to trigger the harder to reproduce scenarios. Like stack overflow in
an interrupt handler.
Eric
next prev parent reply other threads:[~2010-02-02 4:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 9:56 Simon Kagstrom
2010-01-26 10:08 ` Américo Wang
2010-01-26 10:18 ` Simon Kagstrom
2010-01-27 2:53 ` Américo Wang
2010-01-27 7:09 ` Simon Kagstrom
2010-01-28 14:38 ` Artem Bityutskiy
2010-01-29 6:13 ` Simon Kagstrom
2010-01-29 10:33 ` Andrew Morton
2010-02-02 4:16 ` Eric W. Biederman [this message]
2010-02-02 8:16 ` Simon Kagstrom
2010-02-03 8:52 ` [PATCH] lkdtm: Add debugfs access and loosen KPROBE ties Simon Kagstrom
2010-02-03 22:55 ` Andrew Morton
2010-02-04 9:06 ` [PATCH v2] " Simon Kagstrom
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=m1eil4i85t.fsf@fess.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=akpm@linux-foundation.org \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=simon.kagstrom@netinsight.net \
--cc=xiyou.wangcong@gmail.com \
/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
Powered by JetHome