]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Avoid marking pages with "changed protection"
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Wed, 5 Dec 2018 12:37:41 +0000 (12:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:09:02 +0000 (10:09 +0100)
commite4a2ebdb56d9b03274731151fe2f4a378b1bbc51
tree8738443fb484df2203d26685e29b75eb9b1dfc14
parentc20306485299080337731091c644da997278688c
um: Avoid marking pages with "changed protection"

[ Upstream commit 8892d8545f2d0342b9c550defbfb165db237044b ]

Changing protection is a very high cost operation in UML
because in addition to an extra syscall it also interrupts
mmap merge sequences generated by the tlb.

While the condition is not particularly common it is worth
avoiding.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/include/asm/pgtable.h