aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorQuentin Perret <[email protected]>2021-10-05 12:20:31 +0000
committerMarc Zyngier <[email protected]>2021-10-05 12:22:45 +0000
commit6e6a8ef088e1222cb1250942f51ad9c1ab219ab2 (patch)
treefe3c1e6580ff2ccf37ff0b71010d9001fd2608b6 /scripts/gcc-plugins/structleak_plugin.c
parentKVM: arm64: Report corrupted refcount at EL2 (diff)
downloadkernel-6e6a8ef088e1222cb1250942f51ad9c1ab219ab2.tar.gz
kernel-6e6a8ef088e1222cb1250942f51ad9c1ab219ab2.zip
KVM: arm64: Release mmap_lock when using VM_SHARED with MTE
VM_SHARED mappings are currently forbidden in a memslot with MTE to prevent two VMs racing to sanitise the same page. However, this check is performed while holding current->mm's mmap_lock, but fails to release it. Fix this by releasing the lock when needed. Fixes: ea7fc1bb1cd1 ("KVM: arm64: Introduce MTE VM feature") Signed-off-by: Quentin Perret <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions