[PATCH 39/39] x86/entry/32: Add debug code to check entry/exit cr3

2018-07-18 Thread Joerg Roedel
From: Joerg Roedel Add code to check whether we enter and leave the kernel with the correct cr3 and make it depend on CONFIG_DEBUG_ENTRY. This is needed because we have no NX protection of user-addresses in the kernel-cr3 on x86-32 and wouldn't notice that type of bug otherwise. Signed-off-by: J

Re: [PATCH 39/39] x86/entry/32: Add debug code to check entry/exit cr3

2018-07-13 Thread Joerg Roedel
On Fri, Jul 13, 2018 at 10:28:50AM -0700, Andy Lutomirski wrote: > On Wed, Jul 11, 2018 at 4:29 AM, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Add a config option that enabled code to check that we enter > > and leave the kernel with the correct cr3. This is needed > > because we have no

Re: [PATCH 39/39] x86/entry/32: Add debug code to check entry/exit cr3

2018-07-13 Thread Andy Lutomirski
On Wed, Jul 11, 2018 at 4:29 AM, Joerg Roedel wrote: > From: Joerg Roedel > > Add a config option that enabled code to check that we enter > and leave the kernel with the correct cr3. This is needed > because we have no NX protection of user-addresses in the > kernel-cr3 on x86-32 and wouldn't no

[PATCH 39/39] x86/entry/32: Add debug code to check entry/exit cr3

2018-07-11 Thread Joerg Roedel
From: Joerg Roedel Add a config option that enabled code to check that we enter and leave the kernel with the correct cr3. This is needed because we have no NX protection of user-addresses in the kernel-cr3 on x86-32 and wouldn't notice that type of bug otherwise. Signed-off-by: Joerg Roedel --