Re: [RFC] Dump interesting arch/platform info

2016-02-03 Thread Borislav Petkov
On Wed, Feb 03, 2016 at 11:48:23AM +0100, Ingo Molnar wrote: > 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

Re: [RFC] Dump interesting arch/platform info

2016-02-03 Thread Ingo Molnar
* Borislav Petkov wrote: > On Mon, Feb 01, 2016 at 11:29:03PM +, 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... :-) > > >

Re: [RFC] Dump interesting arch/platform info

2016-02-03 Thread Ingo Molnar
* Borislav Petkov wrote: > On Mon, Feb 01, 2016 at 11:29:03PM +, 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

Re: [RFC] Dump interesting arch/platform info

2016-02-03 Thread Borislav Petkov
On Wed, Feb 03, 2016 at 11:48:23AM +0100, Ingo Molnar wrote: > 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

Re: [RFC] Dump interesting arch/platform info

2016-02-02 Thread Borislav Petkov
On Mon, Feb 01, 2016 at 11:29:03PM +, 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,

Re: [RFC] Dump interesting arch/platform info

2016-02-02 Thread Borislav Petkov
On Mon, Feb 01, 2016 at 11:29:03PM +, 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,

RE: [RFC] Dump interesting arch/platform info

2016-02-01 Thread Luck, Tony
> So the use case is you go, modprobe this thing and do > > cat /sys/kernel/debug/x86/archinfo > > Right now, it dumps only the GDT and even that is not fully done. But > more interesting stuff should be added to it as need arises. > > Thoughts, ideas, suggestions? On a high core count,

[RFC] Dump interesting arch/platform info

2016-02-01 Thread Borislav Petkov
Hi, so I've been playing with this simple module below. The idea is to be able to dump interesting arch/platform information on the currently running system. For example, how does the GDT look like. It is supposed to be used as a debugging aid and the information it dumps is not easily accessible

RE: [RFC] Dump interesting arch/platform info

2016-02-01 Thread Luck, Tony
> So the use case is you go, modprobe this thing and do > > cat /sys/kernel/debug/x86/archinfo > > Right now, it dumps only the GDT and even that is not fully done. But > more interesting stuff should be added to it as need arises. > > Thoughts, ideas, suggestions? On a high core count,

[RFC] Dump interesting arch/platform info

2016-02-01 Thread Borislav Petkov
Hi, so I've been playing with this simple module below. The idea is to be able to dump interesting arch/platform information on the currently running system. For example, how does the GDT look like. It is supposed to be used as a debugging aid and the information it dumps is not easily accessible