]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/mmap.c
linux-user: Clear translations on mprotect()
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 17 Aug 2022 15:05:03 +0000 (17:05 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Sep 2022 07:04:25 +0000 (08:04 +0100)
commitaa98e2d885ca9de66ddd56d88b19b0e162cc90d7
tree62bfe94717671e34be3b22a6cf769830aa7b37c6
parent872f3d046f2381e3f416519e82df96bd60818311
linux-user: Clear translations on mprotect()

Currently it's possible to execute pages that do not have PAGE_EXEC
if there is an existing translation block. Fix by invalidating TBs
that touch the affected pages.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20220817150506.592862-2-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/mmap.c