aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/psci/psci.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <[email protected]>2021-03-14 20:51:14 +0000
committerLinus Torvalds <[email protected]>2021-03-14 21:33:27 +0000
commitc995f12ad8842dbf5cfed113fb52cdd083f5afd1 (patch)
tree92dd0fb652dcb361423365b28ee32888ab2257c8 /drivers/firmware/psci/psci.c
parentMerge tag 'irq-urgent-2021-03-14' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-c995f12ad8842dbf5cfed113fb52cdd083f5afd1.tar.gz
kernel-c995f12ad8842dbf5cfed113fb52cdd083f5afd1.zip
prctl: fix PR_SET_MM_AUXV kernel stack leak
Doing a prctl(PR_SET_MM, PR_SET_MM_AUXV, addr, 1); will copy 1 byte from userspace to (quite big) on-stack array and then stash everything to mm->saved_auxv. AT_NULL terminator will be inserted at the very end. /proc/*/auxv handler will find that AT_NULL terminator and copy original stack contents to userspace. This devious scheme requires CAP_SYS_RESOURCE. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/firmware/psci/psci.c')
0 files changed, 0 insertions, 0 deletions