Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4d2fa82d authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Peter Zijlstra
Browse files

selftests/x86/sigreturn/32: Invalidate DS and ES when abusing the kernel


If the kernel accidentally uses DS or ES while the user values are
loaded, it will work fine for sane userspace.  In the interest of
simulating maximally insane userspace, make sigreturn_32 zero out DS
and ES for the nasty parts so that inadvertent use of these segments
will crash.

Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@kernel.org
parent 8caa016b
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment