lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191020164848.GA13623@avx2>
Date:   Sun, 20 Oct 2019 19:48:48 +0300
From:   Alexey Dobriyan <adobriyan@...il.com>
To:     yamada.masahiro@...ionext.com
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] tags: fix "config ..." false positives

"config" regex is too loose, giving a few false positives

	CONFIG_and     drivers/pci/controller/Kconfig  /^        config and MMIO accesses.$/;" r
	CONFIG_option  arch/x86/Kconfig        /^        config option.$/;"    r
	CONFIG_option  init/Kconfig    /^        config option determines the parameter's default value.$/;"   r
	and    drivers/pci/controller/Kconfig  /^        config and MMIO accesses.$/;" r
	option arch/x86/Kconfig        /^        config option.$/;"    r
	option init/Kconfig    /^        config option determines the parameter's default value.$/;"   r

Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---

 scripts/tags.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -213,8 +213,8 @@ regex_c=(
 	'/\<\(DEFINE\|DECLARE\)_STATIC_KEY_\(TRUE\|FALSE\)\(\|_RO\)(\([[:alnum:]_]\+\)/\4/'
 )
 regex_kconfig=(
-	'/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)/\2/'
-	'/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)/CONFIG_\2/'
+	'/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)$/\2/'
+	'/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)$/CONFIG_\2/'
 )
 setup_regex()
 {

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ