Re: [PATCH 7/8] arm64: Define TIF_PATCH_PENDING for livepatch
Miroslav Benes <[email protected]>
| Newsgroups | org.kernel.vger.linux-toolchains,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.live-patching |
|---|---|
| Message-ID | <[email protected]> |
Hi, > diff --git a/arch/arm64/kernel/entry-common.c b/arch/arm64/kernel/entry-common.c > index b260ddc4d3e9..b537af333b42 100644 > --- a/arch/arm64/kernel/entry-common.c > +++ b/arch/arm64/kernel/entry-common.c > @@ -8,6 +8,7 @@ > #include <linux/context_tracking.h> > #include <linux/kasan.h> > #include <linux/linkage.h> > +#include <linux/livepatch.h> > #include <linux/lockdep.h> > #include <linux/ptrace.h> > #include <linux/resume_user_mode.h> > @@ -144,6 +145,9 @@ static void do_notify_resume(struct pt_regs *regs, unsigned long thread_flags) > (void __user *)NULL, current); > } > > + if (thread_flags & _TIF_PATCH_PENDING) > + klp_update_patch_state(current); > + > if (thread_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL)) > do_signal(regs); Just a remark so that it is recorded. Once arm64 is moved to generic entry infra, the hunk will not be needed. Regards, Miroslav