linux-stable/arch
Juergen Gross a24eebede5 x86: Clear .brk area at early boot
[ Upstream commit 38fa5479b4 ]

The .brk section has the same properties as .bss: it is an alloc-only
section and should be cleared before being used.

Not doing so is especially a problem for Xen PV guests, as the
hypervisor will validate page tables (check for writable page tables
and hypervisor private bits) before accepting them to be used.

Make sure .brk is initially zero by letting clear_bss() clear the brk
area, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220630071441.28576-3-jgross@suse.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-21 20:42:47 +02:00
..
alpha alpha: define get_cycles macro for arch-override 2022-06-25 11:46:38 +02:00
arc ARC: entry: fix syscall_trace_exit argument 2022-04-27 13:15:31 +02:00
arm ARM: dts: sunxi: Fix SPI NOR campatible on Orange Pi Zero 2022-07-21 20:42:45 +02:00
arm64 arm64: ftrace: fix branch range checks 2022-06-25 11:46:44 +02:00
blackfin
c6x
cris
frv
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 14:00:33 +01:00
hexagon hexagon: export raw I/O routines for modules 2021-11-26 11:40:40 +01:00
ia64 ia64: define get_cycles macro for arch-override 2022-06-25 11:46:38 +02:00
m32r
m68k m68k: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:38 +02:00
metag
microblaze
mips MIPS: Remove repetitive increase irq_err_count 2022-07-02 16:18:08 +02:00
mn10300
nios2 nios2: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:38 +02:00
openrisc openrisc: start CPU timer early in boot 2022-06-14 16:53:45 +02:00
parisc parisc: define get_cycles macro for arch-override 2022-06-25 11:46:38 +02:00
powerpc powerpc/powernv: delay rng platform device creation until later in boot 2022-07-12 16:27:28 +02:00
s390 s390/archrandom: simplify back to earlier design and initialize earlier 2022-07-07 17:31:16 +02:00
score
sh mips,s390,sh,sparc: gup: Work around the "COW can break either way" issue 2022-01-27 09:01:01 +01:00
sparc sparc: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:39 +02:00
tile
um um: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:39 +02:00
unicore32
x86 x86: Clear .brk area at early boot 2022-07-21 20:42:47 +02:00
xtensa xtensa: Fix refcount leak bug in time.c 2022-07-02 16:18:09 +02:00
.gitignore
Kconfig x86: Make ARCH_USE_MEMREMAP_PROT a generic Kconfig symbol 2021-12-22 09:17:59 +01:00