OpenCloudOS-Kernel/arch/um/include/shared
Johannes Berg 2fcb4090cd Revert "um: allocate a guard page to helper threads"
This reverts commit ef4459a6da ("um: allocate a guard page to
helper threads"), it's broken in multiple ways:

 1) the free no longer matches the alloc; and

 2) more importantly, the set_memory_ro() causes allocation of
    page tables for the normal memory that doesn't have any,
    and that later causes corruption and crashes (usually but
    not always in vfree()).

We could fix the first bug and use vmalloc() to work around the
second, but set_memory_ro() actually doesn't do anything either
so I'll just revert that as well.

Reported-by: Benjamin Berg <benjamin@sipsolutions.net>
Fixes: ef4459a6da ("um: allocate a guard page to helper threads")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2021-01-26 22:11:38 +01:00
..
skas um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
arch.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
as-layout.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
common-offsets.h um: time-travel: Correct time event IRQ delivery 2020-12-13 22:42:06 +01:00
elf_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
frame_kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
init.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
irq_kern.h um: Remove IRQ_NONE type 2020-12-13 22:22:29 +01:00
irq_user.h um: Remove IRQ_NONE type 2020-12-13 22:22:29 +01:00
kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
kern_util.h Revert "um: allocate a guard page to helper threads" 2021-01-26 22:11:38 +01:00
longjmp.h um: Implement TRACE_IRQFLAGS_SUPPORT 2019-09-15 21:37:11 +02:00
mem.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
mem_user.h um: delete unnecessary bootmem struct page array 2014-10-13 17:15:09 +02:00
net_kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
net_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
os.h um: time-travel: Correct time event IRQ delivery 2020-12-13 22:42:06 +01:00
ptrace_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
registers.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
sigio.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
um_malloc.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00