Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753129Ab0AZKIg (ORCPT ); Tue, 26 Jan 2010 05:08:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753094Ab0AZKIf (ORCPT ); Tue, 26 Jan 2010 05:08:35 -0500 Received: from qw-out-2122.google.com ([74.125.92.26]:40663 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752948Ab0AZKIe convert rfc822-to-8bit (ORCPT ); Tue, 26 Jan 2010 05:08:34 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oCrsW9WJIPhG9COHF7l1XlM0NkyWQHPJ5eBxVF9KW65JgIRZ280bBercbAmQxNOTc5 otRlO2C5zsLfflT2d4qPwtiyh6kAxVN+hyGkmkHTqefk7ZNLxtkq2B86f0DAZkD4KIya PEzsM8SRDmVYhZOA09X+bxUMTGnYvu+HVgMwY= MIME-Version: 1.0 In-Reply-To: <20100126105640.6bf9488c@marrow.netinsight.se> References: <20100126105640.6bf9488c@marrow.netinsight.se> Date: Tue, 26 Jan 2010 18:08:28 +0800 Message-ID: <2375c9f91001260208t31379702tb49cb57d12d5890b@mail.gmail.com> Subject: Re: [PATCH] Provide ways of crashing the kernel through debugfs From: =?UTF-8?Q?Am=C3=A9rico_Wang?= To: Simon Kagstrom Cc: linux-kernel@vger.kernel.org, David Woodhouse , Artem Bityutskiy , Ingo Molnar Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1172 Lines: 29 On Tue, Jan 26, 2010 at 5:56 PM, Simon Kagstrom wrote: > For development and testing it's sometimes useful to crash or injure the > kernel in various ways. This patch adds a debugfs interface to provoke > null-pointer dereferences, stack corruption, panics, bugons etc. For > example: > >  mount -t debugfs debugfs /mnt >  echo 1 > /mnt/provoke-crash/null_dereference > > Signed-off-by: Simon Kagstrom > --- > Obviously this feature is for debugging and testing only, and of > interest to fairly few people. I've used it for testing the kmsg_dump > stuff (hence the CC:s above) and kdump, and have found it fairly useful. > > If it's not of interest, at least this mail will be in the archives if > someone else needs something like it :-) > Hey, we already have /proc/sysrq-trigger, you need to state why it is better than using /proc/sysrq-trigger. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/