Blob Blame History Raw
From 6f9c98e28df7cbc1e3417908604550956ca76f21 Mon Sep 17 00:00:00 2001
From: Eugene Syromyatnikov <evgsyr@gmail.com>
Date: Tue, 29 Jan 2019 15:35:00 +0100
Subject: [PATCH 19/27] syscall.c: set MEMORY_MAPPING_CHANGE in stub sysent

As unknown syscalls may incur unknown side effects.

* syscall.c (stub_sysent): Set sys_flags to MEMORY_MAPPING_CHANGE.
---
 syscall.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/syscall.c b/syscall.c
index 40fcedb..b836cd6 100644
--- a/syscall.c
+++ b/syscall.c
@@ -1176,6 +1176,7 @@ free_sysent_buf(void *ptr)
 
 const struct_sysent stub_sysent = {
 	.nargs = MAX_ARGS,
+	.sys_flags = MEMORY_MAPPING_CHANGE,
 	.sen = SEN_printargs,
 	.sys_func = printargs,
 	.sys_name = "????",
-- 
2.1.4