mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 14:43:03 +00:00
08c8e685c7
Checks the whole kernel address space for W+X mappings. Note that currently the first lowcore page unfortunately has to be mapped W+X. Therefore this not reported as an insecure mapping. For the very same reason the wording is also different to other architectures if the test passes: On s390 it is "no unexpected W+X pages found" instead of "no W+X pages found". Tested-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
15 lines
255 B
C
15 lines
255 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _ASM_S390_PTDUMP_H
|
|
#define _ASM_S390_PTDUMP_H
|
|
|
|
void ptdump_check_wx(void);
|
|
|
|
static inline void debug_checkwx(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_DEBUG_WX))
|
|
ptdump_check_wx();
|
|
}
|
|
|
|
#endif /* _ASM_S390_PTDUMP_H */
|