Re: [PATCH v2] Fix stack smashing when handling PR_GET_PDEATHSIG

2020-09-26 Thread Laurent Vivier
Le 07/05/2020 à 15:03, Stephen Long a écrit : > The bug was triggered by the following code on aarch64-linux-user: > > #include > #include > > int main(void) > { > int PDeathSig = 0; > if (prctl(PR_GET_PDEATHSIG, &PDeathSig) == 0 && PDeathSig == SIGKILL) > prctl(PR_GET_PDEATHSIG, 0); >

Re: [PATCH v2] Fix stack smashing when handling PR_GET_PDEATHSIG

2020-05-07 Thread Laurent Vivier
Le 07/05/2020 à 15:03, Stephen Long a écrit : > The bug was triggered by the following code on aarch64-linux-user: > > #include > #include > > int main(void) > { > int PDeathSig = 0; > if (prctl(PR_GET_PDEATHSIG, &PDeathSig) == 0 && PDeathSig == SIGKILL) > prctl(PR_GET_PDEATHSIG, 0); >

[PATCH v2] Fix stack smashing when handling PR_GET_PDEATHSIG

2020-05-07 Thread Stephen Long
The bug was triggered by the following code on aarch64-linux-user: #include #include int main(void) { int PDeathSig = 0; if (prctl(PR_GET_PDEATHSIG, &PDeathSig) == 0 && PDeathSig == SIGKILL) prctl(PR_GET_PDEATHSIG, 0); return (PDeathSig == SIGKILL); } Signed-off-by: Stephen Long Sig