From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753674AbcBCKsc (ORCPT ); Wed, 3 Feb 2016 05:48:32 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34814 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753177AbcBCKs1 (ORCPT ); Wed, 3 Feb 2016 05:48:27 -0500 Date: Wed, 3 Feb 2016 11:48:23 +0100 From: Ingo Molnar To: Borislav Petkov Cc: "Luck, Tony" , "H. Peter Anvin" , Thomas Gleixner , Andy Lutomirski , Peter Zijlstra , Steven Rostedt , Brian Gerst , lkml Subject: Re: [RFC] Dump interesting arch/platform info Message-ID: <20160203104823.GA21257@gmail.com> References: <20160201115601.GD6438@pd.tnic> <3908561D78D1C84285E8C5FCA982C28F39FCE0E4@ORSMSX114.amr.corp.intel.com> <20160202094147.GA3778@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160202094147.GA3778@pd.tnic> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Borislav Petkov wrote: > On Mon, Feb 01, 2016 at 11:29:03PM +0000, Luck, Tony wrote: > > On a high core count, multi-socket, machine I see almost 10K lines > > of output from this. If you add other things it will become a bit > > of a jumble to parse. > > Always thinking big... :-) > > > Perhaps the module name "archinfo" is fine, but each separate thing > > it shows should get its own file. Starting with: > > > > /sys/kernel/debug/x86/gdtinfo > > > > for the current output? > > Right, or put everything under a directory "archinfo": > > /sys/kernel/debug/x86/archinfo/ ... gdt > ... msrs > > ... > > and so on. > > Yap, sounds better. Thanks! Agreed. We used to have something like this but then removed it due to various problems - but the concept itself is fine. Note that these can be pretty security sensitive pieces of information, and can also expose ASLR/KASLR details, so the VFS interface needs to be a strictly root-only thing. Thanks, Ingo