Re: amd64: kernel aslr support

2017-10-06 Thread Maxime Villard
Le 06/10/2017 à 08:19, Martin Husemann a écrit : On Thu, Oct 05, 2017 at 12:56:02PM +0200, Maxime Villard wrote: I don't think it is possible to compile some parts as relocatable and some others as static. What we could do is compile both the kernel and the prekern separately, and use objcopy

Re: amd64: kernel aslr support

2017-10-06 Thread Mouse
Is live-kernel update more viable with this approach? >>> Live kernel update is a much more complicated business, [...] >> [I]t occurs to me that [the "live-kernel update" text] could have >> been intended to refer not to updating the kernel without disturbing >> a running system but rather

Re: amd64: kernel aslr support

2017-10-06 Thread Maxime Villard
Le 06/10/2017 à 10:37, Martin Husemann a écrit : I don't get the issue with the bootloader - it just loads one binary and doesn't care about ASLR, the "prekernel" entry point handles that later (rearranging any mappings the bootloader might have previously done afterwards)? The bootloader

Re: amd64: kernel aslr support

2017-10-06 Thread Martin Husemann
On Fri, Oct 06, 2017 at 10:32:01AM +0200, Maxime Villard wrote: > Le 06/10/2017 à 08:19, Martin Husemann a écrit : > > On Thu, Oct 05, 2017 at 12:56:02PM +0200, Maxime Villard wrote: > > > I don't think it is possible to compile some parts as relocatable and some > > > others as static. What we

Re: amd64: kernel aslr support

2017-10-06 Thread Maxime Villard
Le 06/10/2017 à 02:30, Thor Lancelot Simon a écrit : * The RNG is not really strong. Help in this area would be greatly appreciated. This is tricky mostly because once you start probing for hardware devices or even CPU features, you're going to find yourself wanting more and more of the

Re: RFC: PERCPU_LIST to fix PR kern/52515

2017-10-06 Thread Ryota Ozaki
On Fri, Oct 6, 2017 at 4:24 PM, Ryota Ozaki wrote: > On Fri, Oct 6, 2017 at 1:14 PM, Ryota Ozaki wrote: >> On Fri, Oct 6, 2017 at 11:58 AM, Taylor R Campbell >> wrote: Date: Fri, 6 Oct 2017 11:26:40 +0900

Re: RFC: PERCPU_LIST to fix PR kern/52515

2017-10-06 Thread Manuel Bouyer
On Fri, Oct 06, 2017 at 04:21:48AM +, Taylor R Campbell wrote: > > Date: Fri, 6 Oct 2017 13:14:14 +0900 > > From: Ryota Ozaki > > > > On Fri, Oct 6, 2017 at 11:58 AM, Taylor R Campbell > > wrote: > > > Note that your patch changes

Re: RFC: PERCPU_LIST to fix PR kern/52515

2017-10-06 Thread Ryota Ozaki
On Fri, Oct 6, 2017 at 1:14 PM, Ryota Ozaki wrote: > On Fri, Oct 6, 2017 at 11:58 AM, Taylor R Campbell > wrote: >>> Date: Fri, 6 Oct 2017 11:26:40 +0900 >>> From: Ryota Ozaki >>> >>> On Mon, Oct 2, 2017 at 11:13 PM,

Re: amd64: kernel aslr support

2017-10-06 Thread Maxime Villard
Le 05/10/2017 à 17:39, Mouse a écrit : Is live-kernel update more viable with this approach? Live kernel update is a much more complicated business, [...] I didn't write that the bit about live-kernel updates, but it occurs to me that it could have been intended to refer not to updating the

Re: amd64: kernel aslr support

2017-10-06 Thread Martin Husemann
On Thu, Oct 05, 2017 at 12:56:02PM +0200, Maxime Villard wrote: > I don't think it is possible to compile some parts as relocatable and some > others as static. What we could do is compile both the kernel and the prekern > separately, and use objcopy to merge them. I don't see why this would be a