uapi: THP: remove possible leak of CONFIG_FINEGRAINED_THP to user-space 89/263689/1 submit/tizen/20210908.070735
authorSung-hun Kim <sfoon.kim@samsung.com>
Wed, 8 Sep 2021 06:58:07 +0000 (15:58 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Wed, 8 Sep 2021 07:01:36 +0000 (16:01 +0900)
CONFIG_FINEGRAINED_THP is presented in a header file
(asm-generic/mman-common.h) of uapi. It generates a build
error for headers with leak CONFIG to user-space message.
This patch remove a possible leak of the kernel configuration.

Change-Id: I16173eaf5094cc07312f10fb33a22dd73d67ff88
Fixes: 7d5372737d34 ("mm: THP: introducing a fine-grained transparent hugepage technique for ARM64 architecture")
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
include/uapi/asm-generic/mman-common.h

index f5d33b8..2073cb1 100644 (file)
@@ -30,9 +30,7 @@
 #define MAP_SYNC               0x080000 /* perform synchronous page faults for the mapping */
 #define MAP_FIXED_NOREPLACE    0x100000        /* MAP_FIXED which doesn't unmap underlying mapping */
 
-#ifdef CONFIG_FINEGRAINED_THP
 #define MAP_FILE_THP   0x200000        /* MAP_FIXED which doesn't unmap underlying mapping */
-#endif
 
 #define MAP_UNINITIALIZED 0x4000000    /* For anonymous mmap, memory could be
                                         * uninitialized */