* [obsolete] mseal-sysmap-enable-loongarch.patch removed from -mm tree
@ 2025-04-16 23:14 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-04-16 23:14 UTC (permalink / raw)
To: mm-commits, xry111, thomas.weissschuh, tglx, niecheng1,
lorenzo.stoakes, Liam.Howlett, kernel, jeffxu, jason, hca,
guanwentao, corbet, chenhuacai, wangyuli, akpm
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3599 bytes --]
The quilt patch titled
Subject: mseal sysmap: enable LoongArch
has been removed from the -mm tree. Its filename was
mseal-sysmap-enable-loongarch.patch
This patch was dropped because it is obsolete
------------------------------------------------------
From: WangYuli <wangyuli@uniontech.com>
Subject: mseal sysmap: enable LoongArch
Date: Tue, 15 Apr 2025 23:39:03 +0800
Provide support for CONFIG_MSEAL_SYSTEM_MAPPINGS on LoongArch, covering
the vdso.
Link: https://lore.kernel.org/all/25bad37f-273e-4626-999c-e1890be96182@lucifer.local/
Link: https://lkml.kernel.org/r/648AB3031B5618C0+20250415153903.570662-1-wangyuli@uniontech.com
Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
Tested-by: Yuli Wang <wangyuli@uniontech.com>
Acked-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Jeff Xu <jeffxu@chromium.org>
Acked-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Cheng Nie <niecheng1@uniontech.com>
Cc: Guan Wentao <guanwentao@uniontech.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Jason A. Donenfeld <jason@zx2c4.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Cc: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Cc: WANG Xuerui <kernel@xen0n.name>
Cc: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/features/core/mseal_sys_mappings/arch-support.txt | 2 +-
Documentation/userspace-api/mseal.rst | 2 +-
arch/loongarch/Kconfig | 1 +
arch/loongarch/kernel/vdso.c | 4 +++-
4 files changed, 6 insertions(+), 3 deletions(-)
--- a/arch/loongarch/Kconfig~mseal-sysmap-enable-loongarch
+++ a/arch/loongarch/Kconfig
@@ -69,6 +69,7 @@ config LOONGARCH
select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
select ARCH_SUPPORTS_LTO_CLANG
select ARCH_SUPPORTS_LTO_CLANG_THIN
+ select ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS
select ARCH_SUPPORTS_NUMA_BALANCING
select ARCH_SUPPORTS_RT
select ARCH_USE_BUILTIN_BSWAP
--- a/arch/loongarch/kernel/vdso.c~mseal-sysmap-enable-loongarch
+++ a/arch/loongarch/kernel/vdso.c
@@ -105,7 +105,9 @@ int arch_setup_additional_pages(struct l
vdso_addr = data_addr + VVAR_SIZE;
vma = _install_special_mapping(mm, vdso_addr, info->size,
- VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC,
+ VM_READ | VM_EXEC |
+ VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC |
+ VM_SEALED_SYSMAP,
&info->code_mapping);
if (IS_ERR(vma)) {
ret = PTR_ERR(vma);
--- a/Documentation/features/core/mseal_sys_mappings/arch-support.txt~mseal-sysmap-enable-loongarch
+++ a/Documentation/features/core/mseal_sys_mappings/arch-support.txt
@@ -12,7 +12,7 @@
| arm64: | ok |
| csky: | N/A |
| hexagon: | N/A |
- | loongarch: | TODO |
+ | loongarch: | ok |
| m68k: | N/A |
| microblaze: | N/A |
| mips: | TODO |
--- a/Documentation/userspace-api/mseal.rst~mseal-sysmap-enable-loongarch
+++ a/Documentation/userspace-api/mseal.rst
@@ -144,7 +144,7 @@ Use cases
architecture.
The following architectures currently support this feature: x86-64, arm64,
- and s390.
+ loongarch and s390.
WARNING: This feature breaks programs which rely on relocating
or unmapping system mappings. Known broken software at the time
_
Patches currently in -mm which might be from wangyuli@uniontech.com are
ocfs2-o2net_idle_timer-rename-del_timer_sync-in-comment.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-16 23:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 23:14 [obsolete] mseal-sysmap-enable-loongarch.patch removed from -mm tree Andrew Morton
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.