@@ -1255,6 +1255,7 @@ INTERCEPTOR(int, prctl, int option, unsigned long arg2, unsigned long arg3,
12551255 static const int PR_SET_VMA = 0x53564d41 ;
12561256 static const int PR_SCHED_CORE = 62 ;
12571257 static const int PR_SCHED_CORE_GET = 0 ;
1258+ static const int PR_GET_PDEATHSIG = 2 ;
12581259 if (option == PR_SET_VMA && arg2 == 0UL ) {
12591260 char *name = (char *)arg5;
12601261 COMMON_INTERCEPTOR_READ_RANGE (ctx, name, internal_strlen (name) + 1 );
@@ -1270,7 +1271,9 @@ INTERCEPTOR(int, prctl, int option, unsigned long arg2, unsigned long arg3,
12701271 COMMON_INTERCEPTOR_WRITE_RANGE (ctx, name, internal_strlen (name) + 1 );
12711272 } else if (res != -1 && option == PR_SCHED_CORE &&
12721273 arg2 == PR_SCHED_CORE_GET) {
1273- COMMON_INTERCEPTOR_WRITE_RANGE (ctx, (u64 *)(arg5), sizeof (u64 ));
1274+ COMMON_INTERCEPTOR_WRITE_RANGE (ctx, (u64 *)(arg5), sizeof (u64 ));
1275+ } else if (res != -1 && option == PR_GET_PDEATHSIG) {
1276+ COMMON_INTERCEPTOR_WRITE_RANGE (ctx, (u64 *)(arg2), sizeof (u64 ));
12741277 }
12751278 return res;
12761279}
@@ -9980,7 +9983,7 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
99809983 void *ctx;
99819984 COMMON_INTERCEPTOR_ENTER (ctx, getrandom, buf, buflen, flags);
99829985 // If GRND_NONBLOCK is set in the flags, it is non blocking.
9983- static const int grnd_nonblock = 1 ;
9986+ static const int grnd_nonblock = 1 ;
99849987 SSIZE_T n;
99859988 if ((flags & grnd_nonblock))
99869989 n = REAL (getrandom)(buf, buflen, flags);
0 commit comments