All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Improve kernel section protections
@ 2020-10-09 21:13 ` Atish Patra
  0 siblings, 0 replies; 36+ messages in thread
From: Atish Patra @ 2020-10-09 21:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: Atish Patra, Albert Ou, Andrew Morton, Anup Patel,
	Ard Biesheuvel, Borislav Petkov, Greentime Hu, Guo Ren,
	Kees Cook, linux-riscv, Michel Lespinasse, Palmer Dabbelt,
	Paul Walmsley, Zong Li

This series aims at improving kernel permissions by doing following things.

1. Protect kernel sections early instead of after /init.
2. Protect .init.text & .init.data sections with appropriate permissions.
3. Move dynamic relocation section to _init.

This series is based on Guo's static object fixes[1].

[1]https://patchwork.kernel.org/project/linux-riscv/list/?series=360951

Atish Patra (5):
RISC-V: Move __start_kernel to .head.text
RISC-V: Initialize SBI early
RISC-V: Enforce protections for kernel sections early
RISC-V: Protect .init.text & .init.data
RISC-V: Move dynamic relocation section under __init

arch/riscv/include/asm/sections.h   |  2 ++
arch/riscv/include/asm/set_memory.h |  4 ++++
arch/riscv/kernel/head.S            |  1 -
arch/riscv/kernel/setup.c           | 13 +++++++++----
arch/riscv/kernel/vmlinux.lds.S     | 18 +++++++++++++-----
arch/riscv/mm/init.c                | 17 +++++++++++++++--
arch/riscv/mm/pageattr.c            |  6 ++++++
7 files changed, 49 insertions(+), 12 deletions(-)

--
2.25.1


^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2020-10-22 17:14 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09 21:13 [PATCH 0/5] Improve kernel section protections Atish Patra
2020-10-09 21:13 ` Atish Patra
2020-10-09 21:13 ` [PATCH 1/5] RISC-V: Move __start_kernel to .head.text Atish Patra
2020-10-09 21:13   ` Atish Patra
2020-10-09 21:13 ` [PATCH 2/5] RISC-V: Initialize SBI early Atish Patra
2020-10-09 21:13   ` Atish Patra
2020-10-09 21:13 ` [PATCH 3/5] RISC-V: Enforce protections for kernel sections early Atish Patra
2020-10-09 21:13   ` Atish Patra
2020-10-09 21:13 ` [PATCH 4/5] RISC-V: Protect .init.text & .init.data Atish Patra
2020-10-09 21:13   ` Atish Patra
2020-10-12 13:14   ` Greentime Hu
2020-10-12 13:14     ` Greentime Hu
2020-10-12 23:26     ` Atish Patra
2020-10-12 23:26       ` Atish Patra
2020-10-13  1:28       ` Atish Patra
2020-10-13  1:28         ` Atish Patra
2020-10-13  3:08         ` Greentime Hu
2020-10-13  3:08           ` Greentime Hu
2020-10-13 22:25           ` Atish Patra
2020-10-13 22:25             ` Atish Patra
2020-10-14  1:20             ` Jim Wilson
2020-10-14  1:20               ` Jim Wilson
2020-10-14  5:24               ` Atish Patra
2020-10-14  5:24                 ` Atish Patra
2020-10-16 18:24                 ` Atish Patra
2020-10-16 18:24                   ` Atish Patra
2020-10-22  1:31                   ` Atish Patra
2020-10-22  1:31                     ` Atish Patra
2020-10-22  5:03                     ` Anup Patel
2020-10-22  5:03                       ` Anup Patel
2020-10-22  7:22                       ` Anup Patel
2020-10-22  7:22                         ` Anup Patel
2020-10-22 17:13                         ` Atish Patra
2020-10-22 17:13                           ` Atish Patra
2020-10-09 21:13 ` [PATCH 5/5] RISC-V: Move dynamic relocation section under __init Atish Patra
2020-10-09 21:13   ` Atish Patra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.