Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1089)

Unified Diff: src/trusted/service_runtime/sel_validate_image.c

Issue 1234393005: A mechanism to identify/forbid/"rewrite" non-temporal instructions (and other) (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Trivial fix Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/service_runtime/sel_validate_image.c
diff --git a/src/trusted/service_runtime/sel_validate_image.c b/src/trusted/service_runtime/sel_validate_image.c
index 24c686f506ee0b52bfab01d696ef49a1284d7ae0..12325fa1cf5b60dc5535a87b80182cea1a2b7682 100644
--- a/src/trusted/service_runtime/sel_validate_image.c
+++ b/src/trusted/service_runtime/sel_validate_image.c
@@ -73,6 +73,7 @@ int NaClValidateCode(struct NaClApp *nap, uintptr_t guest_addr,
allowable HLTs. */
status = validator->Validate(guest_addr, data, size,
TRUE, /* stub out */
+ nap->pnacl_mode,
Petr Hosek 2015/07/28 19:05:46 This will become `nap->pnacl_mode ? DISABLE_UNSUPP
ruiq 2015/07/28 21:34:56 Done.
FALSE, /* text is not read-only */
nap->cpu_features,
metadata,
@@ -83,6 +84,7 @@ int NaClValidateCode(struct NaClApp *nap, uintptr_t guest_addr,
int readonly_text = nap->fixed_feature_cpu_mode;
status = validator->Validate(guest_addr, data, size,
FALSE, /* do not stub out */
+ nap->pnacl_mode,
Petr Hosek 2015/07/28 19:05:46 ditto
ruiq 2015/07/28 21:34:56 Done.
readonly_text,
nap->cpu_features,
metadata,

Powered by Google App Engine
This is Rietveld 408576698