x86/entry/32: Use %ss segment where required
authorAndy Lutomirski <luto@kernel.org>
Wed, 20 Nov 2019 08:49:33 +0000 (09:49 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 21 Nov 2019 18:37:43 +0000 (19:37 +0100)
commit4c4fd55d3d59a41ddfa6ecba7e76928921759f43
tree6ba323bbb4d8e772ecb6679ce73b0d0260f8fcfe
parent40ad2199580e248dce2a2ebb722854180c334b9e
x86/entry/32: Use %ss segment where required

When re-building the IRET frame we use %eax as an destination %esp,
make sure to then also match the segment for when there is a nonzero
SS base (ESPFIX).

[peterz: Changelog and minor edits]
Fixes: 3c88c692c287 ("x86/stackframe/32: Provide consistent pt_regs")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@kernel.org
arch/x86/entry/entry_32.S