-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHROMIUM: x86: alt-syscall: Fix syscall limit check
nr_syscalls and ia32_nr_syscalls are 32-bit values, but a cmpq will do an 8-byte load resulting in the upper 32-bits being undefined. Do a 32-bit load of the syscall limit into a temporary register first, and then do the comparison against RAX (syscall number). BUG=b:25649436 TEST=security_SandboxLinuxUnittests now passes on x86. Change-Id: Ia71c7dbb8a08dcc3f9169c5800ca03b8b9f248b8 [abrestic: squashed semenzato@'s fix from CL:319605] Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Signed-off-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/321143
- Loading branch information
Andrew Bresticker
authored and
chrome-bot
committed
Jan 11, 2016
1 parent
8a2b878
commit 6139a8f
Showing
2 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters