Re: [PATCH v4 2/3] arm64: implement live patching

2018-11-12 Thread Ard Biesheuvel
On Mon, 12 Nov 2018 at 12:01, Torsten Duwe wrote: > > On Thu, Nov 08, 2018 at 01:42:35PM +0100, Ard Biesheuvel wrote: > > On 26 October 2018 at 16:21, Torsten Duwe wrote: > > > /* The program counter just after the ftrace call site */ > > > str lr, [x9, #S_PC] > > > + > > >

Re: [PATCH v4 2/3] arm64: implement live patching

2018-11-12 Thread Torsten Duwe
On Thu, Nov 08, 2018 at 01:42:35PM +0100, Ard Biesheuvel wrote: > On 26 October 2018 at 16:21, Torsten Duwe wrote: > > /* The program counter just after the ftrace call site */ > > str lr, [x9, #S_PC] > > + > > /* The stack pointer as it was on ftrace_caller entry... */

Re: [PATCH v4 2/3] arm64: implement live patching

2018-11-08 Thread Ard Biesheuvel
On 26 October 2018 at 16:21, Torsten Duwe wrote: > Based on ftrace with regs, do the usual thing. > (see Documentation/livepatch/livepatch.txt) > > Use task flag bit 6 to track patch transisiton state for the consistency > model. Add it to the work mask so it gets cleared on all kernel exits to >

Re: [PATCH v4 2/3] arm64: implement live patching

2018-11-06 Thread Miroslav Benes
Hi, On Fri, 26 Oct 2018, Torsten Duwe wrote: > Based on ftrace with regs, do the usual thing. > (see Documentation/livepatch/livepatch.txt) > > Use task flag bit 6 to track patch transisiton state for the consistency > model. Add it to the work mask so it gets cleared on all kernel exits to > us

[PATCH v4 2/3] arm64: implement live patching

2018-10-26 Thread Torsten Duwe
Based on ftrace with regs, do the usual thing. (see Documentation/livepatch/livepatch.txt) Use task flag bit 6 to track patch transisiton state for the consistency model. Add it to the work mask so it gets cleared on all kernel exits to userland. Tell livepatch regs->pc is the place to change the