aboutsummaryrefslogtreecommitdiffstats
path: root/lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-17 15:28:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-17 15:28:20 +0100
commitbc685febe55b1bba72373dd3152f9e919fd7a656 (patch)
tree6786f257d438ec048a9d380f0c4b86d009cdf23b /lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch
parent466ad0dd09adc07997fef1af16d41bc8c60b6d63 (diff)
downloadpatches-bc685febe55b1bba72373dd3152f9e919fd7a656.tar.gz
drop the printk patches, something else is going upstream
Diffstat (limited to 'lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch')
-rw-r--r--lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch b/lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch
deleted file mode 100644
index 807f3b0a85a3bd..00000000000000
--- a/lib-vsprintf-default-kptr_restrict-to-the-maximum-value.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From: Dave Weinstein <olorin@google.com>
-Subject: lib: vsprintf: default kptr_restrict to the maximum value
-
-Set the initial value of kptr_restrict to the maximum
-setting rather than the minimum setting, to ensure that
-early boot logging is not leaking information.
-
-Cc: William Roberts <william.c.roberts@intel.com>
-Cc: Chris Fries <cfries@google.com>
-Signed-off-by: Dave Weinstein <olorin@google.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- lib/vsprintf.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/lib/vsprintf.c
-+++ b/lib/vsprintf.c
-@@ -396,7 +396,7 @@ struct printf_spec {
- #define FIELD_WIDTH_MAX ((1 << 23) - 1)
- #define PRECISION_MAX ((1 << 15) - 1)
-
--int kptr_restrict __read_mostly;
-+int kptr_restrict __read_mostly = 4;
-
- /*
- * Always cleanse %p and %pK specifiers