Re: [PATCH] x86/entry64: move comment about informing of context tracking in right place

2016-11-03 Thread Borislav Petkov
On Mon, Oct 24, 2016 at 05:22:34PM +0600, Alexander Kuleshov wrote: > We are switching to kernel gsbase if an IRQ come from usermode with swpags. "... if an IRQ comes from ..." Also, you mean SWAPGS. Instruction names in allcaps please and spelled correctly please. > Now there is comment which

Re: [PATCH] x86/entry64: move comment about informing of context tracking in right place

2016-11-03 Thread Borislav Petkov
On Mon, Oct 24, 2016 at 05:22:34PM +0600, Alexander Kuleshov wrote: > We are switching to kernel gsbase if an IRQ come from usermode with swpags. "... if an IRQ comes from ..." Also, you mean SWAPGS. Instruction names in allcaps please and spelled correctly please. > Now there is comment which

[PATCH] x86/entry64: move comment about informing of context tracking in right place

2016-10-24 Thread Alexander Kuleshov
We are switching to kernel gsbase if an IRQ come from usermode with swpags. Now there is comment which describes this: IRQ from user mode. Switch to kernel gsbase and inform context tracking that we're in kernel mode. But now we execute swapgs, next TRACE_IRQS_OFF and only then the

[PATCH] x86/entry64: move comment about informing of context tracking in right place

2016-10-24 Thread Alexander Kuleshov
We are switching to kernel gsbase if an IRQ come from usermode with swpags. Now there is comment which describes this: IRQ from user mode. Switch to kernel gsbase and inform context tracking that we're in kernel mode. But now we execute swapgs, next TRACE_IRQS_OFF and only then the