Re: [RFC PATCH 02/13] x86/um: nommu: elf loader for fdpic

2024-10-25 Thread Hajime Tazaki
Hello Johannes, On Fri, 25 Oct 2024 17:56:51 +0900, Johannes Berg wrote: > > On Thu, 2024-10-24 at 21:09 +0900, Hajime Tazaki wrote: > > > > +#ifndef CONFIG_MMU > > +#include > > Not sure that makes so much sense in the middle of the file, no harm > always having it? agree. > > +static inl

Re: [RFC PATCH 02/13] x86/um: nommu: elf loader for fdpic

2024-10-25 Thread Johannes Berg
On Thu, 2024-10-24 at 21:09 +0900, Hajime Tazaki wrote: > > +#ifndef CONFIG_MMU > +#include Not sure that makes so much sense in the middle of the file, no harm always having it? > > +static inline const struct user_regset_view *task_user_regset_view( > + struct task_struct *task) What hap

[RFC PATCH 02/13] x86/um: nommu: elf loader for fdpic

2024-10-24 Thread Hajime Tazaki
As UML supports CONFIG_MMU=n case, it has to use an alternate ELF loader, FDPIC ELF loader. In this commit, we added necessary definitions in the arch, as UML has not been used so far. It also updates Kconfig file to use BINFMT_ELF_FDPIC under !MMU environment. Cc: Eric Biederman Cc: Kees Cook