Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-11 Thread Jiri Kosina
On Fri, 6 Nov 2015, Zhou Chengming wrote: > When enable KASLR, livepatch will adjust old_addr of changed > function accordingly. So do the same thing for reloc. > > [PATCH v1] https://lkml.org/lkml/2015/11/4/91 > > Reported-by: Cyril B. > Signed-off-by: Zhou Chengming I have made the changelo

Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-11 Thread Josh Poimboeuf
On Fri, Nov 06, 2015 at 02:25:00PM +0800, Zhou Chengming wrote: > When enable KASLR, livepatch will adjust old_addr of changed > function accordingly. So do the same thing for reloc. > > [PATCH v1] https://lkml.org/lkml/2015/11/4/91 > > Reported-by: Cyril B. > Signed-off-by: Zhou Chengming > --

Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-11 Thread Josh Poimboeuf
On Wed, Nov 11, 2015 at 05:19:58PM +0100, Jiri Kosina wrote: > On Wed, 11 Nov 2015, Josh Poimboeuf wrote: > > > If Chris's smaller patch is merged before Jessica's bigger patch set, > > Jessica's patches can be rebased on top of Chris's to keep the new > > sympos-based addressing scheme. > > > >

Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-11 Thread Jiri Kosina
On Wed, 11 Nov 2015, Josh Poimboeuf wrote: > If Chris's smaller patch is merged before Jessica's bigger patch set, > Jessica's patches can be rebased on top of Chris's to keep the new > sympos-based addressing scheme. > > Or vice versa: if Jessica's patches are merged first, then Chris's can > be

Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-11 Thread Josh Poimboeuf
On Wed, Nov 11, 2015 at 04:46:48PM +0800, Minfei Huang wrote: > On 11/10/15 at 08:07am, Josh Poimboeuf wrote: > > On Fri, Nov 06, 2015 at 02:25:00PM +0800, Zhou Chengming wrote: > > > When enable KASLR, livepatch will adjust old_addr of changed > > > function accordingly. So do the same thing for r

Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-11 Thread Minfei Huang
On 11/10/15 at 08:07am, Josh Poimboeuf wrote: > On Fri, Nov 06, 2015 at 02:25:00PM +0800, Zhou Chengming wrote: > > When enable KASLR, livepatch will adjust old_addr of changed > > function accordingly. So do the same thing for reloc. > > > > + > > +#if defined(CONFIG_RANDOMIZE_BASE) > > +

Re: [PATCH v2] livepatch: x86: bugfix about kASLR

2015-11-10 Thread Josh Poimboeuf
On Fri, Nov 06, 2015 at 02:25:00PM +0800, Zhou Chengming wrote: > When enable KASLR, livepatch will adjust old_addr of changed > function accordingly. So do the same thing for reloc. > > [PATCH v1] https://lkml.org/lkml/2015/11/4/91 > > Reported-by: Cyril B. > Signed-off-by: Zhou Chengming > --