mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/8] s390: Add __must_check to set_memory() primitives
@ 2026-11-18 14:47 Heiko Carstens
  2026-11-18 14:47 ` [PATCH 1/8] s390/kfence: Add error handling to arch_kfence_init_pool() Heiko Carstens
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Heiko Carstens @ 2026-11-18 14:47 UTC (permalink / raw)
  To: Vasily Gorbik, Alexander Gordeev
  Cc: Mike Rapoport, Sven Schnelle, Christian Borntraeger,
	linux-kernel, linux-s390

A small series which adds missing return value checks of set_memory()
calls to s390 specific call sites. Also add __must_check to set_memory()
primitives in order to avoid that new unchecked callers will be added.

This is basically the same what was done for powerpc with [1].

Note that this (trivially) conflicts with [2]. Furthermore the kexec code
is the only call site which for now only prints an error message instead
of really handling the error, since error handling in common code is
missing. That needs to be added with later changes.

While doing this conversion I realized that s390's execmem support also
can be improved. Will happen with a follow-on series.

[1] 2abbd6d5fbe0 ("powerpc: Add __must_check to set_memory_...()")
[2] https://lore.kernel.org/all/20261117-fixes-s390-v1-1-2d9d04ca0072@kernel.org/

Thanks,
Heiko

Heiko Carstens (8):
  s390/kfence: Add error handling to arch_kfence_init_pool()
  s390/kprobes: Add error handling to alloc_insn_page()
  s390/kexec: Let crash_protect_pages() warn in case of an error
  s390/module: Add error handling to module_alloc_ftrace_hotpatch_trampolines()
  s390/mm: Add error handling to arch_setup_zero_pages()
  s390/mm: Add error handling to mark_rodata_ro()
  s390/mm: Add error handling to vmem_map_init()
  s390/set_memory: Add __must_check to set_memory() primitives

 arch/s390/include/asm/kfence.h     |  3 ++-
 arch/s390/include/asm/set_memory.h |  4 ++--
 arch/s390/kernel/kprobes.c         |  5 ++++-
 arch/s390/kernel/machine_kexec.c   |  7 +++++--
 arch/s390/kernel/module.c          |  7 ++++++-
 arch/s390/mm/init.c                | 10 ++++++++--
 arch/s390/mm/vmem.c                | 14 +++++++++-----
 7 files changed, 36 insertions(+), 14 deletions(-)

base-commit: 666539eecdf4db623f5e3c3e55cf9f2dfad24aa4
-- 
2.56.1

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

end of thread, other threads:[~2026-11-18 14:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 14:47 [PATCH 0/8] s390: Add __must_check to set_memory() primitives Heiko Carstens
2026-11-18 14:47 ` [PATCH 1/8] s390/kfence: Add error handling to arch_kfence_init_pool() Heiko Carstens
2026-11-18 14:47 ` [PATCH 2/8] s390/kprobes: Add error handling to alloc_insn_page() Heiko Carstens
2026-11-18 14:47 ` [PATCH 3/8] s390/kexec: Let crash_protect_pages() warn in case of an error Heiko Carstens
2026-11-18 14:47 ` [PATCH 4/8] s390/module: Add error handling to module_alloc_ftrace_hotpatch_trampolines() Heiko Carstens
2026-11-18 14:47 ` [PATCH 5/8] s390/mm: Add error handling to arch_setup_zero_pages() Heiko Carstens
2026-11-18 14:47 ` [PATCH 6/8] s390/mm: Add error handling to mark_rodata_ro() Heiko Carstens
2026-11-18 14:47 ` [PATCH 7/8] s390/mm: Add error handling to vmem_map_init() Heiko Carstens
2026-11-18 14:47 ` [PATCH 8/8] s390/set_memory: Add __must_check to set_memory() primitives Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®