From 517bc9db0b23e1e3a33d086b402a6b7314c041dd Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sun, 3 Mar 2019 14:26:20 -0800 Subject: [PATCH] PR_SET_MM (previous commit had typo) is from 7 years ago: 2012 modified: stub/src/include/linux.h --- src/stub/src/include/linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stub/src/include/linux.h b/src/stub/src/include/linux.h index f0678390..04f00047 100644 --- a/src/stub/src/include/linux.h +++ b/src/stub/src/include/linux.h @@ -142,6 +142,9 @@ struct timespec { #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ // +// These should enable removal of PT_LOAD[1] for setting brk(0). +// "git blame linux/kernel/sys.c" says: +// 028ee4be34a09 (Cyrill Gorcunov 2012-01-12 17:20:55 -0800 2157) case PR_SET_MM_START_BRK: #define PR_SET_MM 35 # define PR_SET_MM_START_BRK 6 # define PR_SET_MM_BRK 7