From d14b0a93faf6309aceb671489369dfcec28c3b04 Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Mon, 15 Jun 2020 10:51:07 -0700 Subject: [PATCH 1/2] scripts: headers_install: Add sysstats.h and taskstats.h into the bypass list Add sysstats.h taskstats.h into the temporary bypass list. It should be removed later once the CONFIG_* checks gets merged. CRs-Fixed: 2664401 Change-Id: Icfedb19b22dcf59d4ae0e8d7bd9fddfc762d9731 Signed-off-by: Trilok Soni --- scripts/headers_install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 7b8ccf889286..89ea358cc2c5 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh @@ -90,6 +90,8 @@ arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64 arch/x86/include/uapi/asm/mman.h:CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS include/uapi/asm-generic/fcntl.h:CONFIG_64BIT include/uapi/linux/atmdev.h:CONFIG_COMPAT +include/uapi/linux/sysstats.h:CONFIG_MM_STAT_UNRECLAIMABLE_PAGES +include/uapi/linux/taskstats.h:CONFIG_MM_STAT_UNRECLAIMABLE_PAGES include/uapi/linux/elfcore.h:CONFIG_BINFMT_ELF_FDPIC include/uapi/linux/eventpoll.h:CONFIG_PM_SLEEP include/uapi/linux/hw_breakpoint.h:CONFIG_HAVE_MIXED_BREAKPOINTS_REGS From 240299db4dfaf077f8f8a7cb024351e49fa375aa Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Wed, 15 Apr 2020 23:43:55 -0700 Subject: [PATCH 2/2] scripts: headers_install: Turn CONFIG_* leak checker to report error By default CONFIG_* user-space leak checker marks it as warning but we should mark them as error so that we can catch such usage at the compile time itself. Change-Id: I5f14f7f881e46843f2e0cc0957fc0b730e76aa93 Signed-off-by: Trilok Soni --- scripts/headers_install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 89ea358cc2c5..176693f31188 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh @@ -112,7 +112,8 @@ do done if [ "$warn" = 1 ]; then - echo "warning: $INFILE: leak $c to user-space" >&2 + echo "error: $INFILE: leak $c to user-space" >&2 + exit 1 fi done