diff --git a/patches.suse/x86-mm-Stop-printing-BRK-addresses.patch b/patches.suse/x86-mm-Stop-printing-BRK-addresses.patch new file mode 100644 index 0000000..0d1a281 --- /dev/null +++ b/patches.suse/x86-mm-Stop-printing-BRK-addresses.patch @@ -0,0 +1,35 @@ +From: Arvind Sankar +Date: Sat, 29 Feb 2020 18:11:20 -0500 +Subject: x86/mm: Stop printing BRK addresses +Git-commit: 67d631b7c05eff955ccff4139327f0f92a5117e5 +Patch-mainline: 5.8-rc1 +References: git-fixes + +This currently leaks kernel physical addresses into userspace. + +Signed-off-by: Arvind Sankar +Signed-off-by: Borislav Petkov +Acked-by: Kees Cook +Acked-by: Dave Hansen +Link: https://lkml.kernel.org/r/20200229231120.1147527-1-nivedita@alum.mit.edu +Signed-off-by: Jiri Slaby +--- + arch/x86/mm/init.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c +index 1bba16c5..a573a3e6 100644 +--- a/arch/x86/mm/init.c ++++ b/arch/x86/mm/init.c +@@ -121,8 +121,6 @@ __ref void *alloc_low_pages(unsigned int num) + } else { + pfn = pgt_buf_end; + pgt_buf_end += num; +- printk(KERN_DEBUG "BRK [%#010lx, %#010lx] PGTABLE\n", +- pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1); + } + + for (i = 0; i < num; i++) { +-- +2.35.3 + diff --git a/series.conf b/series.conf index ad93ee2..6efffe7 100644 --- a/series.conf +++ b/series.conf @@ -56569,6 +56569,7 @@ patches.suse/x86-speculation-change-fill_return_buffer-to-work-with-objtool.patch patches.suse/objtool-Allow-no-op-CFI-ops-in-alternatives.patch patches.suse/efi-efivars-Add-missing-kobject_put-in-sysfs-entry-c.patch + patches.suse/x86-mm-Stop-printing-BRK-addresses.patch patches.suse/x86-cpu-add-a-steppings-field-to-struct-x86_cpu_id.patch patches.suse/x86-cpu-amd-make-erratum-1054-a-legacy-erratum.patch patches.suse/arm64-cpufeature-Drop-TraceFilt-feature-exposure-from-ID_DFR0-register.patch