Re: [PATCH] prctl: fix overwrite last but one entry in auxv vector

2021-03-22 Thread Cyrill Gorcunov
On Sun, Mar 21, 2021 at 11:36:42PM +0300, Cyrill Gorcunov wrote: > Alexey reported that current PR_SET_MM_AUXV (and PR_SET_MM_MAP) overwrite > too many entries on non 64bit kernels. This is because auxv is defined > as an array of longs and in result access to AT_VECTOR_SIZE - 2 entry > is not a

[PATCH] prctl: fix overwrite last but one entry in auxv vector

2021-03-21 Thread Cyrill Gorcunov
Alexey reported that current PR_SET_MM_AUXV (and PR_SET_MM_MAP) overwrite too many entries on non 64bit kernels. This is because auxv is defined as an array of longs and in result access to AT_VECTOR_SIZE - 2 entry is not a type of auxv entry but rather an entry before the last one. Since it is a