Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756730Ab0FAVs3 (ORCPT ); Tue, 1 Jun 2010 17:48:29 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:34285 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754425Ab0FAVs2 (ORCPT ); Tue, 1 Jun 2010 17:48:28 -0400 Date: Tue, 1 Jun 2010 22:48:20 +0100 From: Matthew Garrett To: "Justin P. Mattock" Cc: x86@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH]X86:reboot.c Add some dmi entries to pci_reboot_dmi_table. Message-ID: <20100601214820.GB18864@srcf.ucam.org> References: <20100601200704.GA16091@srcf.ucam.org> <4C056AE6.3000409@gmail.com> <20100601202130.GA16391@srcf.ucam.org> <4C056E0C.2030709@gmail.com> <20100601203351.GA16575@srcf.ucam.org> <4C0572B4.6000201@gmail.com> <20100601211219.GA17719@srcf.ucam.org> <4C057AE9.9020307@gmail.com> <20100601212901.GA18390@srcf.ucam.org> <4C057EF0.2030808@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C057EF0.2030808@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 25 On Tue, Jun 01, 2010 at 02:43:12PM -0700, Justin P. Mattock wrote: > On 06/01/2010 02:29 PM, Matthew Garrett wrote: >> So, just to be clear, you run this as root and it immediately returns >> you to the prompt? This seems unlikely. > > yep.. with the above code > I (save to a file) then > non-root gcc reboot.c -o reboot > then su > ./reboot > just bake to the command prompt Are you running some sort of security policy that might block hardware access? I'm going to have to find one of these machines to test with - on everything I have here, the cf9 write and the keyboard controller write both generate reboots. The worst case should be a hung machine, not one that continues running... -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/