summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorJiantao Shan <shanjiantao@loongson.cn>2024-04-24 07:36:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-02 17:35:28 +0300
commit2e1059698076eb7369dd393d2d5d186dda038044 (patch)
treed2277f684719b9f48f8b9bc45daf01d8f981d4fb /arch/s390
parentde357db4afa8ba76b1bf7e05ab146a44a54d3bd0 (diff)
downloadlinux-2e1059698076eb7369dd393d2d5d186dda038044.tar.xz
LoongArch: Fix access error when read fault on a write-only VMA
commit efb44ff64c95340b06331fc48634b99efc9dd77c upstream. As with most architectures, allow handling of read faults in VMAs that have VM_WRITE but without VM_READ (WRITE implies READ). Otherwise, reading before writing a write-only memory will error while reading after writing everything is fine. BTW, move the VM_EXEC judgement before VM_READ/VM_WRITE to make logic a little clearer. Cc: stable@vger.kernel.org Fixes: 09cfefb7fa70c3af01 ("LoongArch: Add memory management") Signed-off-by: Jiantao Shan <shanjiantao@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions