diff options
author | Joey Gouly <joey.gouly@arm.com> | 2023-03-08 19:04:21 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-03-23 17:18:33 -0700 |
commit | 3d27a95b1d96757e48ce970baa3d419af299c2af (patch) | |
tree | 26e373d94bc85311d26a23916f4cfb9147cc59c7 /sound/pcmcia | |
parent | 6bbf1090672673183a98cd6e19de91fa5a319df0 (diff) | |
download | linux-stable-3d27a95b1d96757e48ce970baa3d419af299c2af.tar.gz linux-stable-3d27a95b1d96757e48ce970baa3d419af299c2af.tar.bz2 linux-stable-3d27a95b1d96757e48ce970baa3d419af299c2af.zip |
mm: fix error handling for map_deny_write_exec
Commit 4a18419f71cd ("mm/mprotect: use mmu_gather") changed 'goto out;' to
'break' in the loop.
This wasn't noticed while rebasing the MDWE patches, so fix it now.
Link: https://lkml.kernel.org/r/20230308190423.46491-3-joey.gouly@arm.com
Fixes: b507808ebce2 ("mm: implement memory-deny-write-execute as a prctl")
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Reported-by: Alexey Izbyshev <izbyshev@ispras.ru>
Link: https://lore.kernel.org/linux-arm-kernel/8408d8901e9d7ee6b78db4c6cba04b78@ispras.ru/
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: nd <nd@arm.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'sound/pcmcia')
0 files changed, 0 insertions, 0 deletions