[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20221216193153.100849-1-sj@kernel.org>
Date: Fri, 16 Dec 2022 19:31:53 +0000
From: SeongJae Park <sj@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jeff Xu <jeffxu@...gle.com>, SeongJae Park <sj@...nel.org>,
skhan@...uxfoundation.org, keescook@...omium.org,
dmitry.torokhov@...il.com, dverkamp@...omium.org, hughd@...gle.com,
jorgelo@...omium.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-mm@...ck.org,
jannh@...gle.com, linux-hardening@...r.kernel.org,
linux-security-module@...r.kernel.org,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH v7 3/6] mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC
Hi Jeff and Andrew,
On Fri, 16 Dec 2022 11:21:02 -0800 Andrew Morton <akpm@...ux-foundation.org> wrote:
> On Fri, 16 Dec 2022 11:03:06 -0800 Jeff Xu <jeffxu@...gle.com> wrote:
>
> > >
> > > I just posted a patch for that:
> > > https://lore.kernel.org/linux-mm/20221216183314.169707-1-sj@kernel.org/
> > >
> > > Could you please check?
> > >
> > Hi SeongJae,
> > Thanks for the patch ! I responded to the other thread.
Thank you for the quick and nice response, Jeff :)
> >
> > Andrew,
> > >From a process point of view, should I update this patch to V9 to
> > include the fix ?
> > or add a patch directly on top in the mm-unstable branch.
>
> A little fixup patch wouild be preferable.
>
> But I added the below yesterday, so I think we're all good?
Good, thank you. I should be more patient until you push it, but I was unable
to resist ;)
Thanks,
SJ
>
> --- a/kernel/pid_sysctl.h~mm-memfd-add-mfd_noexec_seal-and-mfd_exec-fix
> +++ a/kernel/pid_sysctl.h
> @@ -52,8 +52,10 @@ static inline void register_pid_ns_sysct
> register_sysctl_paths(vm_path, pid_ns_ctl_table_vm);
> }
> #else
> +static inline void initialize_memfd_noexec_scope(struct pid_namespace *ns) {}
> static inline void set_memfd_noexec_scope(struct pid_namespace *ns) {}
> static inline void register_pid_ns_ctl_table_vm(void) {}
> +static inline void register_pid_ns_sysctl_table_vm(void) {}
> #endif
>
> #endif /* LINUX_PID_SYSCTL_H */
> _
Powered by blists - more mailing lists