]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/entry/32: Clarify register saving in __switch_to_asm()
authorThomas Gleixner <tglx@linutronix.de>
Sat, 16 Nov 2019 10:12:03 +0000 (11:12 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 16 Nov 2019 10:24:07 +0000 (11:24 +0100)
commita3ba966066afbe8fd0d3605ffe04c633083752f1
tree46b9571c5a35456ec64e3aa012d217da253435e0
parente638ad00809a323cbe13dfa0952d4234d9b36732
x86/entry/32: Clarify register saving in __switch_to_asm()

commit 6690e86be83a ("sched/x86: Save [ER]FLAGS on context switch")
re-introduced the flags saving on context switch to prevent AC leakage.

The pushf/popf instructions are right among the callee saved register
section, so the comment explaining the save/restore is not entirely
correct.

Add a seperate comment to pushf/popf explaining the reason.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/entry/entry_32.S