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>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191119030102.27559-1-aquini@redhat.com>
Date:   Mon, 18 Nov 2019 22:01:02 -0500
From:   Rafael Aquini <aquini@...hat.com>
To:     linux-mm@...ck.org
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] mm: kconfig: make Transparent Hugepage Support sysfs defaults to match the documentation

Documentation/admin-guide/mm/transhuge.rst (originally in Documentation/vm/transhuge.txt)
states that TRANSPARENT_HUGEPAGE_MADVISE is the default option for THP config:

"
madvise
        will enter direct reclaim like ``always`` but only for regions
        that are have used madvise(MADV_HUGEPAGE). This is the default
        behaviour.
"

This patch changes mm/Kconfig to reflect that fact, accordingly.
Besides keeping consistency between documentation and the code behavior,
other reasons to perform this minor adjustment are noted at:
https://bugzilla.redhat.com/show_bug.cgi?id=1772133

Signed-off-by: Rafael Aquini <aquini@...hat.com>
---
 mm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/Kconfig b/mm/Kconfig
index a5dae9a7eb51..c12a559aa1e5 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -385,7 +385,7 @@ config TRANSPARENT_HUGEPAGE
 choice
 	prompt "Transparent Hugepage Support sysfs defaults"
 	depends on TRANSPARENT_HUGEPAGE
-	default TRANSPARENT_HUGEPAGE_ALWAYS
+	default TRANSPARENT_HUGEPAGE_MADVISE
 	help
 	  Selects the sysfs defaults for Transparent Hugepage Support.
 
-- 
2.17.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ