Skip to content
Commit 3d27a95b authored by Joey Gouly's avatar Joey Gouly Committed by Andrew Morton
Browse files

mm: fix error handling for map_deny_write_exec

Commit 4a18419f ("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: b507808e ("mm: implement memory-deny-write-execute as a prctl")
Signed-off-by: Joey Gouly's avatarJoey Gouly <joey.gouly@arm.com>
Reported-by: default avatarAlexey Izbyshev <izbyshev@ispras.ru>
  Link: https://lore.kernel.org/linux-arm-kernel/8408d8901e9d7ee6b78db4c6cba04b78@ispras.ru/


Reviewed-by: Catalin Marinas's avatarCatalin 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: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6bbf1090
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment