]> git.ipfire.org Git - people/arne_f/kernel.git/commit
x86/entry/32: Use %ss segment where required
authorAndy Lutomirski <luto@kernel.org>
Wed, 20 Nov 2019 08:49:33 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2019 09:08:07 +0000 (10:08 +0100)
commita34640a8accae8f0fd7f1e1622fbf1d39149119f
tree8d9ce3f4caedfef734c33175686a5ad2903fe6b6
parent087ce8e8b0477564ef8549ca59efbbf0c918929d
x86/entry/32: Use %ss segment where required

commit 4c4fd55d3d59a41ddfa6ecba7e76928921759f43 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/entry_32.S