linux/arch/s390
Alexander Gordeev 2ed8b50975 s390/kasan: fix insecure W+X mapping warning
Since commit 3b5c3f000c2e ("s390/kasan: move shadow mapping
to decompressor") the decompressor establishes mappings for
the shadow memory and sets initial protection attributes to
RWX. The decompressed kernel resets protection to RW+NX
later on.

In case a shadow memory range is not aligned on page boundary
(e.g. as result of mem= kernel command line parameter use),
the "Checked W+X mappings: FAILED, 1 W+X pages found" warning
hits.

Reported-by: Vasily Gorbik <gor@linux.ibm.com>
Fixes: 557b19709d ("s390/kasan: move shadow mapping to decompressor")
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2023-06-20 19:52:12 +02:00
..
appldata s390: simplify dynamic sysctl registration for appldata_register_ops 2023-03-20 10:56:49 +01:00
boot s390/mm: fix direct map accounting 2023-04-13 17:36:28 +02:00
configs s390/iommu: get rid of S390_CCW_IOMMU and S390_AP_IOMMU 2023-05-17 15:20:18 +02:00
crypto s390/crypto: use vector instructions only if available for ChaCha20 2023-05-15 14:20:13 +02:00
hypfs s390/hypfs: remove unused info_blk_hdr__pcpus() function 2022-11-23 16:24:07 +01:00
include s390/uapi: cover statfs padding by growing f_spare 2023-05-17 15:20:17 +02:00
kernel s390/crash: use the correct type for memory allocation 2023-06-20 19:52:12 +02:00
kvm For 6.4 2023-05-05 06:15:09 -04:00
lib s390/lib: use SYM* macros instead of ENTRY(), etc. 2023-04-19 17:24:16 +02:00
mm s390/kasan: fix insecure W+X mapping warning 2023-06-20 19:52:12 +02:00
net bpf-next-for-netdev 2023-04-21 20:32:37 -07:00
pci Merge branch 'uaccess-inline-asm-cleanup' into features 2023-04-04 18:29:28 +02:00
purgatory s390/purgatory: disable branch profiling 2023-06-01 16:59:43 +02:00
tools KVM: s390: Add facility 197 to the allow list 2022-07-13 15:25:25 +02:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig s390/iommu: get rid of S390_CCW_IOMMU and S390_AP_IOMMU 2023-05-17 15:20:18 +02:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile s390: reintroduce expoline dependence to scripts 2023-03-27 17:23:08 +02:00