[PATCH v4 06/24] microblaze: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/microblaze/include/asm/setup.h | 2 +- arch/microblaze/include/uapi/asm/setup.h | 2 -- 2 files changed, 1 insertion(+), 3 de

[PATCH v4 07/24] mips: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Reviewed-by: Philippe Mathieu-Daudé --- arch/mips/include/asm/setup.h | 3 ++- arch/mips/include/uapi/asm/setup.h | 3 --- 2 files ch

[PATCH v4 08/24] parisc: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Reviewed-by: Philippe Mathieu-Daudé Acked-by: Helge Deller --- arch/parisc/include/asm/setup.h | 7 +++ arch/parisc/include/uapi

[PATCH v4 09/24] powerpc: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Acked-by: Michael Ellerman --- arch/powerpc/include/asm/setup.h | 2 +- arch/powerpc/include/uapi/asm/setup.h | 2 -- 2 files changed

[PATCH v4 10/24] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/sparc/include/asm/setup.h | 6 +- arch/sparc/include/uapi/asm/setup.h | 7 --- 2 files changed, 5 insertions(+), 8 de

[PATCH v4 11/24] xtensa: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Acked-by: Max Filippov --- arch/xtensa/include/asm/setup.h | 17 + arch/xtensa/include/uapi/asm/setup.h | 2 -- 2 fi

[PATCH v4 12/24] asm-generic: Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Since only contains COMMAND_LINE_SIZE we can just move it out of uapi to hide the definition and fix up the only direct use in Loongarch. Signed-off-by: Palmer Dabbelt

[PATCH v4 13/24] alpha: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/alpha/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/alpha/include/uapi/asm/setup.h diff --git a/arch/alpha/include/uapi/asm/setup.h b/arch/alpha/include/uapi/asm/setup.h deleted file mode

[PATCH v4 14/24] arc: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Reviewed-by: Philippe Mathieu-Daudé --- arch/arc/include/asm/setup.h | 1 - arch/arc/include/uapi/asm/setup.h | 6 -- 2 files changed, 7 deletions(-) delete mode 100644 arch/arc/include/uapi/asm/setup.h diff --git a/arch/arc/include

[PATCH v4 15/24] m68k: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Acked-by: Geert Uytterhoeven --- arch/m68k/include/uapi/asm/setup.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644 arch/m68k/include/uapi/asm/setup.h diff --git a/arch/m68k/include/uapi/asm/setup.h b/arch/m68k/incl

[PATCH v4 16/24] arm64: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/arm64/include/uapi/asm/setup.h | 25 - 1 file changed, 25 deletions(-) delete mode 100644 arch/arm64/include/uapi/asm/setup.h diff --git a/arch/arm64/include/uapi/asm/setup.h b/arch/arm64/include/uapi/asm/set

[PATCH v4 17/24] microblaze: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/microblaze/include/uapi/asm/setup.h | 18 -- 1 file changed, 18 deletions(-) delete mode 100644 arch/microblaze/include/uapi/asm/setup.h diff --git a/arch/microblaze/include/uapi/asm/setup.h b/arch/microblaze/include

[PATCH v4 18/24] sparc: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/sparc/include/uapi/asm/setup.h | 9 - 1 file changed, 9 deletions(-) delete mode 100644 arch/sparc/include/uapi/asm/setup.h diff --git a/arch/sparc/include/uapi/asm/setup.h b/arch/sparc/include/uapi/asm/setup.h deleted file

[PATCH v4 19/24] parisc: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Reviewed-by: Philippe Mathieu-Daudé Acked-by: Helge Deller --- arch/parisc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/parisc/include/uapi/asm/setup.h diff --git a/arch/parisc/include/uapi/asm/

[PATCH v4 20/24] x86: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Reviewed-by: Philippe Mathieu-Daudé --- arch/x86/include/asm/setup.h | 2 -- arch/x86/include/uapi/asm/setup.h | 1 - 2 files changed, 3 deletions(-) delete mode 100644 arch/x86/include/uapi/asm/setup.h diff --git a/arch/x86/include/asm

[PATCH v4 21/24] xtensa: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Acked-by: Max Filippov --- arch/xtensa/include/uapi/asm/setup.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644 arch/xtensa/include/uapi/asm/setup.h diff --git a/arch/xtensa/include/uapi/asm/setup.h b/arch/xtensa/in

[PATCH v4 22/24] powerpc: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/powerpc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/powerpc/include/uapi/asm/setup.h diff --git a/arch/powerpc/include/uapi/asm/setup.h b/arch/powerpc/include/uapi/asm/setup.h deleted f

[PATCH v4 23/24] mips: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/mips/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/mips/include/uapi/asm/setup.h diff --git a/arch/mips/include/uapi/asm/setup.h b/arch/mips/include/uapi/asm/setup.h deleted file mode 100

[PATCH v4 24/24] s390: Remove empty

2023-03-02 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Acked-by: Heiko Carstens Reviewed-by: Philippe Mathieu-Daudé --- arch/s390/include/asm/setup.h | 1 - arch/s390/include/uapi/asm/setup.h | 1 - 2 files changed, 2 deletions(-) delete mode 100644 arch/s390/include/uapi/asm/setup.h diff

Re: [PATCH v4 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
Hi Arnd, On 3/2/23 10:35, Alexandre Ghiti wrote: This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the maximum length of /proc/cmdline and userspace could staticly rely on that to be correct. Usua

Re: [PATCH v4 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
Hi Geert, On 3/2/23 10:47, Geert Uytterhoeven wrote: Hi Alex, On Thu, Mar 2, 2023 at 10:35 AM Alexandre Ghiti wrote: This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the maximum length of /proc/cm

Re: [PATCH v4 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
On 3/2/23 11:44, Geert Uytterhoeven wrote: Hi Alex, On Thu, Mar 2, 2023 at 11:09 AM Alexandre Ghiti wrote: On 3/2/23 10:47, Geert Uytterhoeven wrote: On Thu, Mar 2, 2023 at 10:35 AM Alexandre Ghiti wrote: This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port

Re: [PATCH v4 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-03-02 Thread Alexandre Ghiti
On 3/2/23 11:06, Alexandre Ghiti wrote: Hi Arnd, On 3/2/23 10:35, Alexandre Ghiti wrote: This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port.  In theory that's a UABI break, as COMMAND_LINE_SIZE is the maximum length of /proc/cmdline and userspace

Re: [PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-03-03 Thread Alexandre Ghiti
Carstens wrote: On Tue, Feb 14, 2023 at 08:49:01AM +0100, Alexandre Ghiti wrote: This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the maximum length of /proc/cmdline and userspace could staticly rely on

Re: [PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
On 3/3/23 17:40, Arnd Bergmann wrote: On Fri, Mar 3, 2023, at 12:59, Alexandre Ghiti wrote: On 3/2/23 20:50, H. Peter Anvin wrote: On March 1, 2023 7:17:18 PM PST, Palmer Dabbelt wrote: Commit 622021cd6c560ce7 ("s390: make command line configurable"), I assume? Yes, sorry for t

[PATCH v5 00/26] Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
quot;) in the cover letter Changes since v2 <https://lore.kernel.org/all/20221211061358.28035-1-pal...@rivosinc.com/>: * Fix sh, csky and ia64 builds, as reported by kernel test robot Changes since v1 <https://lore.kernel.org/all/20210423025545.313965-1-pal...@dabbelt.com/>: *

[PATCH v5 01/26] alpha: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Philippe Mathieu-Daudé --- arch/alpha/include/asm/setup.h | 4 ++-- arch/alpha/include

[PATCH v5 02/26] arm64: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Catalin Marinas --- arch/arm64/include/asm/setup.h | 3 ++- arch/arm64/include/uapi/asm

[PATCH v5 03/26] arm: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Russell King (Oracle) --- arch/arm/include/asm/setup.h | 1 + arch/arm/include/uapi/asm

[PATCH v5 04/26] ia64: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/ia64/include/asm/setup.h | 10 ++ arch/ia64/include/uapi/asm/setup.h | 6 ++ 2

[PATCH v5 05/26] m68k: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Geert Uytterhoeven --- arch/m68k/include/asm/setup.h | 3 +-- arch/m68k/include/uapi/asm

[PATCH v5 06/26] microblaze: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/microblaze/include/asm/setup.h | 2 +- arch/microblaze/include/uapi/asm/setup.h | 2 -- 2

[PATCH v5 07/26] mips: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Philippe Mathieu-Daudé --- arch/mips/include/asm/setup.h | 3 ++- arch/mips/include

[PATCH v5 08/26] parisc: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Philippe Mathieu-Daudé Acked-by: Helge Deller --- arch/parisc/include/asm/setup.h | 7

[PATCH v5 09/26] powerpc: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Michael Ellerman --- arch/powerpc/include/asm/setup.h | 2 +- arch/powerpc/include/uapi

[PATCH v5 10/26] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/sparc/include/asm/setup.h | 6 +- arch/sparc/include/uapi/asm/setup.h | 7 --- 2

[PATCH v5 11/26] xtensa: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Max Filippov --- arch/xtensa/include/asm/setup.h | 17 + arch/xtensa

[PATCH v5 12/26] riscv: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Alexandre Ghiti --- arch/riscv/include/asm/setup.h | 7 +++ arch/riscv/include/uapi/asm/setup.h | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) create mode

[PATCH v5 13/26] asm-generic: Remove COMMAND_LINE_SIZE from uapi

2023-03-06 Thread Alexandre Ghiti
Link: https://lore.kernel.org/r/20210423025545.313965-1-pal...@dabbelt.com Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- Documentation/admin-guide/kernel-parameters.rst | 2 +- arch/loongarch/include/asm/setup.h | 2 +- arch/sh/include/asm/setup.h

[PATCH v5 14/26] alpha: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/alpha/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/alpha/include/uapi/asm/setup.h diff --git a/arch/alpha/include/uapi/asm/setup.h b/arch/alpha/include

[PATCH v5 15/26] arc: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Philippe Mathieu-Daudé --- arch/arc/include/asm/setup.h | 1 - arch/arc/include/uapi/asm/setup.h | 6 -- 2 files changed, 7 deletions(-) delete mode 100644 arch/arc/include/uapi/asm

[PATCH v5 16/26] m68k: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Geert Uytterhoeven --- arch/m68k/include/uapi/asm/setup.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644 arch/m68k/include/uapi/asm/setup.h diff --git a/arch/m68k/include

[PATCH v5 17/26] arm64: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/arm64/include/uapi/asm/setup.h | 25 - 1 file changed, 25 deletions(-) delete mode 100644 arch/arm64/include/uapi/asm/setup.h diff --git a/arch/arm64/include/uapi/asm/setup.h

[PATCH v5 18/26] microblaze: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/microblaze/include/uapi/asm/setup.h | 18 -- 1 file changed, 18 deletions(-) delete mode 100644 arch/microblaze/include/uapi/asm/setup.h diff --git a/arch/microblaze/include/uapi/asm

[PATCH v5 19/26] sparc: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/sparc/include/uapi/asm/setup.h | 9 - 1 file changed, 9 deletions(-) delete mode 100644 arch/sparc/include/uapi/asm/setup.h diff --git a/arch/sparc/include/uapi/asm/setup.h b/arch/sparc

[PATCH v5 20/26] parisc: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Philippe Mathieu-Daudé Acked-by: Helge Deller --- arch/parisc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/parisc/include/uapi/asm/setup.h diff

[PATCH v5 21/26] x86: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Reviewed-by: Philippe Mathieu-Daudé --- arch/x86/include/asm/setup.h | 2 -- arch/x86/include/uapi/asm/setup.h | 1 - 2 files changed, 3 deletions(-) delete mode 100644 arch/x86/include/uapi/asm/setup.h

[PATCH v5 22/26] xtensa: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Max Filippov --- arch/xtensa/include/uapi/asm/setup.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644 arch/xtensa/include/uapi/asm/setup.h diff --git a/arch/xtensa/include

[PATCH v5 23/26] powerpc: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/powerpc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/powerpc/include/uapi/asm/setup.h diff --git a/arch/powerpc/include/uapi/asm/setup.h b/arch/powerpc

[PATCH v5 24/26] mips: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti --- arch/mips/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/mips/include/uapi/asm/setup.h diff --git a/arch/mips/include/uapi/asm/setup.h b/arch/mips/include/uapi

[PATCH v5 25/26] s390: Remove empty

2023-03-06 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt Signed-off-by: Alexandre Ghiti Acked-by: Heiko Carstens Reviewed-by: Philippe Mathieu-Daudé --- arch/s390/include/asm/setup.h | 1 - arch/s390/include/uapi/asm/setup.h | 1 - 2 files changed, 2 deletions(-) delete mode 100644 arch

[PATCH v5 26/26] riscv: Remove empty

2023-03-06 Thread Alexandre Ghiti
Signed-off-by: Alexandre Ghiti --- arch/riscv/include/uapi/asm/setup.h | 6 -- 1 file changed, 6 deletions(-) delete mode 100644 arch/riscv/include/uapi/asm/setup.h diff --git a/arch/riscv/include/uapi/asm/setup.h b/arch/riscv/include/uapi/asm/setup.h deleted file mode 100644 index

Re: [PATCH v8 1/3] riscv: Introduce CONFIG_RELOCATABLE

2023-03-22 Thread Alexandre Ghiti
@linux-kbuild: Does anyone has an idea to solve this? Thanks! On 2/22/23 13:29, Alexandre Ghiti wrote: +cc linux-kbuild, llvm, Nathan, Nick On 2/15/23 15:36, Alexandre Ghiti wrote: From: Alexandre Ghiti This config allows to compile 64b kernel as PIE and to relocate it at any virtual

Re: [PATCH v8 1/3] riscv: Introduce CONFIG_RELOCATABLE

2023-03-24 Thread Alexandre Ghiti
Hi Nick, On 3/22/23 19:25, Nick Desaulniers wrote: On Fri, Feb 24, 2023 at 7:58 AM Björn Töpel wrote: Alexandre Ghiti writes: +cc linux-kbuild, llvm, Nathan, Nick On 2/15/23 15:36, Alexandre Ghiti wrote: From: Alexandre Ghiti I tried a lot of things, but I struggle to understand, does

Re: [PATCH v2 5/7] riscv: mm: accelerate pagefault when badaccess

2024-04-10 Thread Alexandre Ghiti
Hi Kefeng, On 03/04/2024 10:38, Kefeng Wang wrote: The access_error() of vma already checked under per-VMA lock, if it is a bad access, directly handle error, no need to retry with mmap_lock again. Since the page faut is handled under per-VMA lock, count it as a vma lock event with VMA_LOCK_SUCC

Re: [PATCH v2 5/7] riscv: mm: accelerate pagefault when badaccess

2024-04-10 Thread Alexandre Ghiti
On 10/04/2024 10:07, Kefeng Wang wrote: On 2024/4/10 15:32, Alexandre Ghiti wrote: Hi Kefeng, On 03/04/2024 10:38, Kefeng Wang wrote: The access_error() of vma already checked under per-VMA lock, if it is a bad access, directly handle error, no need to retry with mmap_lock again. Since the

[PATCH v6 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-05-18 Thread Alexandre Ghiti
loaded at the same address it was linked at and that the compiler options are those used in arm64 which uses the same RELA relocation format. Signed-off-by: Alexandre Ghiti --- arch/riscv/Kconfig | 12 arch/riscv/Makefile | 5 +++- arch/riscv/kernel/vmlinux.lds.S

[PATCH v6 3/3] riscv: Check relocations at compile time

2021-05-18 Thread Alexandre Ghiti
relocations. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/riscv/Makefile.postlink | 36 arch/riscv/tools/relocs_check.sh | 26 +++ 2 files changed, 62 insertions(+) create mode 100644 arch/riscv/Makefile.postlink create

[PATCH v6 0/3] Introduce 64b relocatable kernel

2021-05-18 Thread Alexandre Ghiti
* Rebased on top of v5.6-rc3 * Tested with sv48 patchset * Add Reviewed/Tested-by from Zong and Anup Alexandre Ghiti (3): riscv: Introduce CONFIG_RELOCATABLE powerpc:

[PATCH v6 2/3] powerpc: Move script to check relocations at compile time in scripts/

2021-05-18 Thread Alexandre Ghiti
logic to scripts/ so that other architectures can take advantage of it. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/powerpc/tools/relocs_check.sh | 18 ++ scripts/relocs_check.sh| 20 2 files changed, 22 insertions(+), 16

Re: [PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-10-09 Thread Alexandre ghiti
Arf, I have sent this patchset with the wrong email address. @Palmer tell me if you want me to resend it correctly. Thanks, Alex On 10/9/21 7:12 PM, Alexandre Ghiti wrote: > From: Alexandre Ghiti > > This config allows to compile 64b kernel as PIE and to relocate it at > any virtua

[PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-10-09 Thread Alexandre Ghiti
From: Alexandre Ghiti This config allows to compile 64b kernel as PIE and to relocate it at any virtual address at runtime: this paves the way to KASLR. Runtime relocation is possible since relocation metadata are embedded into the kernel. Note that relocating at runtime introduces an overhead

[PATCH v7 3/3] riscv: Check relocations at compile time

2021-10-09 Thread Alexandre Ghiti
From: Alexandre Ghiti Relocating kernel at runtime is done very early in the boot process, so it is not convenient to check for relocations there and react in case a relocation was not expected. There exists a script in scripts/ that extracts the relocations from vmlinux that is then used at

[PATCH v7 0/3] Introduce 64b relocatable kernel

2021-10-09 Thread Alexandre Ghiti
top of v5.6-rc3 * Tested with sv48 patchset * Add Reviewed/Tested-by from Zong and Anup Alexandre Ghiti (3): riscv: Introduce CONFIG_RELOCATABLE powerpc: Move script to check relocations

[PATCH v7 2/3] powerpc: Move script to check relocations at compile time in scripts/

2021-10-09 Thread Alexandre Ghiti
From: Alexandre Ghiti Relocating kernel at runtime is done very early in the boot process, so it is not convenient to check for relocations there and react in case a relocation was not expected. Powerpc architecture has a script that allows to check at compile time for such unexpected

Re: [PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-10-26 Thread Alexandre ghiti
slow here.  It's fine: there's a "From:" in > the patch, and git picks those up so it'll match the signed-off-by > line.  I send pretty much all my patches that way, as I never managed > to get my Google address working correctly. > >> >> Thanks, >>

[PATCH 0/7] Cleanup after removal of configs

2021-11-05 Thread Alexandre Ghiti
While bumping from 5.13 to 5.15, I found that a few deleted configs had left some pieces here and there: this patchset cleans that. Alexandre Ghiti (7): Documentation, arch: Remove leftovers from fscache/cachefiles histograms Documentation, arch: Remove leftovers from raw device

[PATCH 1/7] Documentation, arch: Remove leftovers from fscache/cachefiles histograms

2021-11-05 Thread Alexandre Ghiti
A few references to the fscache and cachefiles histograms were left in the Documentation and some arch defconfigs: remove them since those configs do not exist anymore. Fixes: 6ae9bd8bb037("fscache, cachefiles: Remove the histogram stuff") Signed-off-by: Alexandre Ghiti --- .../f

[PATCH 2/7] Documentation, arch: Remove leftovers from raw device

2021-11-05 Thread Alexandre Ghiti
Raw device interface was removed so remove all references to configs related to it. Fixes: 603e4922f1c8 ("remove the raw driver") Signed-off-by: Alexandre Ghiti --- Documentation/admin-guide/devices.txt | 8 +--- arch/arm/configs/spear13xx_defconfig | 1 - arch/a

[PATCH 3/7] Documentation, arch: Remove leftovers from CIFS_WEAK_PW_HASH

2021-11-05 Thread Alexandre Ghiti
This config was removed so remove all references to it. Fixes: 76a3c92ec9e0 ("cifs: remove support for NTLM and weaker authentication algorithms") Signed-off-by: Alexandre Ghiti --- Documentation/admin-guide/cifs/usage.rst| 7 +++ arch/arm/configs/cm_x300_defconfig |

[PATCH 4/7] arch: Remove leftovers from mandatory file locking

2021-11-05 Thread Alexandre Ghiti
This config was removed so remove all references to it. Fixes: f7e33bdbd6d1 ("fs: remove mandatory file locking support") Signed-off-by: Alexandre Ghiti --- arch/mips/configs/decstation_64_defconfig | 1 - arch/mips/configs/decstation_defconfig | 1 - arch/mi

[PATCH 5/7] Documentation, arch, fs: Remove leftovers from fscache object list

2021-11-05 Thread Alexandre Ghiti
A few references to the fscache object list were left in the Documentation, some arch defconfigs and in fs: remove them since this config does not exists anymore. Fixes: 58f386a73f16 ("fscache: Remove the object list procfile") Signed-off-by: Alexandre Ghiti --- Documentation/f

[PATCH 6/7] include: mfd: Remove leftovers from bd70528 watchdog

2021-11-05 Thread Alexandre Ghiti
This driver was removed so remove all references to it. Fixes: 52a5502507bc ("watchdog: bd70528 drop bd70528 support") Signed-off-by: Alexandre Ghiti --- include/linux/mfd/rohm-bd70528.h | 24 1 file changed, 24 deletions(-) diff --git a/include/linux/mfd/ro

[PATCH 7/7] arch: Remove leftovers from prism54 wireless driver

2021-11-05 Thread Alexandre Ghiti
This driver was removed so remove all references to it. Fixes: d249ff28b1d8 ("intersil: remove obsolete prism54 wireless driver") Signed-off-by: Alexandre Ghiti --- arch/mips/configs/ip27_defconfig| 1 - arch/mips/configs/malta_defconfig | 1 - arch/mi

Re: [PATCH 6/8] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT

2021-11-22 Thread Alexandre ghiti
On 11/22/21 12:47, Christophe Leroy wrote: Le 22/11/2021 à 12:22, Alex Ghiti a écrit : Hi Christophe, Le 22/11/2021 à 09:48, Christophe Leroy a écrit : Commit e7142bf5d231 ("arm64, mm: make randomization selected by generic topdown mmap layout") introduced a default version of arch_randomize

[PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone

2020-05-24 Thread Alexandre Ghiti
loaded. Signed-off-by: Alexandre Ghiti --- arch/riscv/boot/loader.lds.S | 3 +- arch/riscv/include/asm/page.h| 10 +- arch/riscv/include/asm/pgtable.h | 37 +--- arch/riscv/kernel/head.S | 3 +- arch/riscv/kernel/module.c | 4 +-- arch/riscv/kernel

[PATCH v3 2/3] riscv: Introduce CONFIG_RELOCATABLE

2020-05-24 Thread Alexandre Ghiti
introduces an overhead even if the kernel is loaded at the same address it was linked at and that the compiler options are those used in arm64 which uses the same RELA relocation format. Signed-off-by: Alexandre Ghiti --- arch/riscv/Kconfig | 12 +++ arch/riscv/Makefile

[PATCH v3 3/3] arch, scripts: Add script to check relocations at compile time

2020-05-24 Thread Alexandre Ghiti
logic to scripts/ and add arch specific scripts triggered at postlink. At the moment, powerpc and riscv architectures take advantage of this compile-time check. Signed-off-by: Alexandre Ghiti --- arch/powerpc/tools/relocs_check.sh | 18 ++- arch/riscv/Makefile.postlink | 36

[PATCH v3 0/3] vmalloc kernel mapping and relocatable kernel

2020-05-24 Thread Alexandre Ghiti
patch allows to build relocatable kernels but is not selected by default. The third patch takes advantage of an already existing powerpc script that checks relocations at compile-time, and uses it for riscv. Alexandre Ghiti (3): riscv: Move kernel mapping to vmalloc zone riscv: Introduce

[PATCH v4 1/4] riscv: Move kernel mapping to vmalloc zone

2020-06-03 Thread Alexandre Ghiti
loaded. Signed-off-by: Alexandre Ghiti --- arch/riscv/boot/loader.lds.S | 3 +- arch/riscv/include/asm/page.h| 10 +- arch/riscv/include/asm/pgtable.h | 38 ++--- arch/riscv/kernel/head.S | 3 +- arch/riscv/kernel/module.c | 4 +-- arch/riscv/kernel

[PATCH v4 2/4] riscv: Introduce CONFIG_RELOCATABLE

2020-06-03 Thread Alexandre Ghiti
introduces an overhead even if the kernel is loaded at the same address it was linked at and that the compiler options are those used in arm64 which uses the same RELA relocation format. Signed-off-by: Alexandre Ghiti Reviewed-by: Zong Li Reviewed-by: Anup Patel --- arch/riscv/Kconfig

[PATCH v4 3/4] powerpc: Move script to check relocations at compile time in scripts/

2020-06-03 Thread Alexandre Ghiti
logic to scripts/ so that other architectures can take advantage of it. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/powerpc/tools/relocs_check.sh | 18 ++ scripts/relocs_check.sh| 20 2 files changed, 22 insertions(+), 16

[PATCH v4 4/4] riscv: Check relocations at compile time

2020-06-03 Thread Alexandre Ghiti
relocations. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/riscv/Makefile.postlink | 36 arch/riscv/tools/relocs_check.sh | 26 +++ 2 files changed, 62 insertions(+) create mode 100644 arch/riscv/Makefile.postlink create

[PATCH v4 0/4] vmalloc kernel mapping and relocatable kernel

2020-06-03 Thread Alexandre Ghiti
6-rc3 * Tested with sv48 patchset * Add Reviewed/Tested-by from Zong and Anup Alexandre Ghiti (4): riscv: Move kernel mapping to vmalloc zone riscv: Introduce CONFIG_RELOCATABLE powerpc: Move script to check relocations at co

[PATCH v5 0/4] vmalloc kernel mapping and relocatable kernel

2020-06-07 Thread Alexandre Ghiti
y from Zong and Anup Alexandre Ghiti (4): riscv: Move kernel mapping to vmalloc zone riscv: Introduce CONFIG_RELOCATABLE powerpc: Move script to check relocations at compile time in scripts/ riscv: Check relocations at compile time arch/powerpc/tools/relocs_check.sh | 18 + arc

[PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-06-07 Thread Alexandre Ghiti
loaded. Signed-off-by: Alexandre Ghiti Reviewed-by: Zong Li --- arch/riscv/boot/loader.lds.S | 3 +- arch/riscv/include/asm/page.h| 10 +- arch/riscv/include/asm/pgtable.h | 38 ++--- arch/riscv/kernel/head.S | 3 +- arch/riscv/kernel/module.c | 4

[PATCH v5 2/4] riscv: Introduce CONFIG_RELOCATABLE

2020-06-07 Thread Alexandre Ghiti
introduces an overhead even if the kernel is loaded at the same address it was linked at and that the compiler options are those used in arm64 which uses the same RELA relocation format. Signed-off-by: Alexandre Ghiti Reviewed-by: Zong Li Reviewed-by: Anup Patel --- arch/riscv/Kconfig

[PATCH v5 3/4] powerpc: Move script to check relocations at compile time in scripts/

2020-06-07 Thread Alexandre Ghiti
logic to scripts/ so that other architectures can take advantage of it. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/powerpc/tools/relocs_check.sh | 18 ++ scripts/relocs_check.sh| 20 2 files changed, 22 insertions(+), 16

[PATCH v5 4/4] riscv: Check relocations at compile time

2020-06-07 Thread Alexandre Ghiti
relocations. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/riscv/Makefile.postlink | 36 arch/riscv/tools/relocs_check.sh | 26 +++ 2 files changed, 62 insertions(+) create mode 100644 arch/riscv/Makefile.postlink create

Re: [PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-12-06 Thread Alexandre ghiti
@Palmer, can I do anything for that to be pulled in 5.17? Thanks, Alex On 10/27/21 07:04, Alexandre ghiti wrote: Hi Palmer, On 10/26/21 11:29 PM, Palmer Dabbelt wrote: On Sat, 09 Oct 2021 10:20:20 PDT (-0700), a...@ghiti.fr wrote: Arf, I have sent this patchset with the wrong email address

Re: [PATCH 0/7] Cleanup after removal of configs

2021-12-10 Thread Alexandre Ghiti
On Fri, Nov 5, 2021 at 4:56 PM Arnd Bergmann wrote: > > On Fri, Nov 5, 2021 at 4:43 PM Alexandre Ghiti > wrote: > > > > While bumping from 5.13 to 5.15, I found that a few deleted configs had > > left some pieces here and there: this patchset cleans that.

[PATCH v2 0/6] Cleanup after removal of configs

2021-12-16 Thread Alexandre Ghiti
While bumping from 5.13 to 5.15, I found that a few deleted configs had left some pieces here and there: this patchset cleans that. Changes in v2: - Rebase on top of v5.16-rc1 - Removed patch 6 since Matti said he would take care of that - Added AB, RB Alexandre Ghiti (6): Documentation, arch

[PATCH v2 1/6] Documentation, arch: Remove leftovers from fscache/cachefiles histograms

2021-12-16 Thread Alexandre Ghiti
A few references to the fscache and cachefiles histograms were left in the Documentation and some arch defconfigs: remove them since those configs do not exist anymore. Fixes: 6ae9bd8bb037("fscache, cachefiles: Remove the histogram stuff") Signed-off-by: Alexandre Ghiti Acked-by: Arn

[PATCH v2 2/6] Documentation, arch: Remove leftovers from raw device

2021-12-16 Thread Alexandre Ghiti
Raw device interface was removed so remove all references to configs related to it. Fixes: 603e4922f1c8 ("remove the raw driver") Signed-off-by: Alexandre Ghiti Acked-by: Arnd Bergmann [arch/arm/configs] --- Documentation/admin-guide/devices.txt | 8 +--- arch/a

[PATCH v2 3/6] Documentation, arch: Remove leftovers from CIFS_WEAK_PW_HASH

2021-12-16 Thread Alexandre Ghiti
This config was removed so remove all references to it. Fixes: 76a3c92ec9e0 ("cifs: remove support for NTLM and weaker authentication algorithms") Signed-off-by: Alexandre Ghiti Reviewed-by: Steve French Acked-by: Arnd Bergmann [arch/arm/configs] --- Documentation/admin-guide/cifs

[PATCH v2 4/6] arch: Remove leftovers from mandatory file locking

2021-12-16 Thread Alexandre Ghiti
This config was removed so remove all references to it. Fixes: f7e33bdbd6d1 ("fs: remove mandatory file locking support") Signed-off-by: Alexandre Ghiti Reviewed-by: Jeff Layton --- arch/mips/configs/decstation_64_defconfig | 1 - arch/mips/configs/decstation_defconfig | 1 -

[PATCH v2 5/6] Documentation, arch, fs: Remove leftovers from fscache object list

2021-12-16 Thread Alexandre Ghiti
A few references to the fscache object list were left in the Documentation, some arch defconfigs and in fs: remove them since this config does not exists anymore. Fixes: 58f386a73f16 ("fscache: Remove the object list procfile") Signed-off-by: Alexandre Ghiti Acked-by: Arnd Bergmann

[PATCH v2 6/6] arch: Remove leftovers from prism54 wireless driver

2021-12-16 Thread Alexandre Ghiti
This driver was removed so remove all references to it. Fixes: d249ff28b1d8 ("intersil: remove obsolete prism54 wireless driver") Signed-off-by: Alexandre Ghiti --- arch/mips/configs/ip27_defconfig| 1 - arch/mips/configs/malta_defconfig | 1 - arch/mi

Re: [PATCH 0/7] Cleanup after removal of configs

2021-12-16 Thread Alexandre Ghiti
On Wed, Dec 15, 2021 at 10:49 PM Arnd Bergmann wrote: > > On Fri, Dec 10, 2021 at 9:38 PM Alexandre Ghiti > wrote: > > > > On Fri, Nov 5, 2021 at 4:56 PM Arnd Bergmann wrote: > > > > > > On Fri, Nov 5, 2021 at 4:43 PM Alexandre Ghiti > > > wrote:

Re: [PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2022-01-10 Thread Alexandre ghiti
Hi Palmer, Do you think this could go in for-next? Thanks, Alex On 12/6/21 10:44, Alexandre ghiti wrote: @Palmer, can I do anything for that to be pulled in 5.17? Thanks, Alex On 10/27/21 07:04, Alexandre ghiti wrote: Hi Palmer, On 10/26/21 11:29 PM, Palmer Dabbelt wrote: On Sat, 09

<    1   2   3   4   >