From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 5 08:56:51 2014 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0DA29CE for ; Wed, 5 Feb 2014 08:56:50 +0000 (UTC) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [IPv6:2607:f8b0:400c:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9B3FB1094 for ; Wed, 5 Feb 2014 08:56:50 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id o19so65269vbm.5 for ; Wed, 05 Feb 2014 00:56:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=aB8aAdrFy8YbAj+nlEufVu0IZDzq3jgTFkpcQgZ3laQ=; b=IUcNIKVlMdCK/nnBEMMM6ywNCRldDEjZsr6814SzxVtQLv048lLlrvXSkAeuNcVqEt xsiSPmRKd8iFanQLAKN+NqS+LZfXwFtOXwf3D5kr/eBWH75/8MXckLjM3rB5tJm6cLW9 L5bskRiAuZ/VoKwSYEU9cr0Yvvk9VyLcA4MM76b9Xg8mUOLHDVKrLCTundxSljMDKnT+ 9TYUtivIOfRVPeA3qCHWCh3QFktSIwGH4nGpapsF1T0/+81D5c5smfxdE91v4zsNe0x+ UZ8hKcUmtqZNI6g45UDSZ1cON9cC4BzTTR7SYFtKn77cFb/gAucSiIYjYoF8VE+9K3mD H9iw== X-Received: by 10.58.143.73 with SMTP id sc9mr135438veb.60.1391590609746; Wed, 05 Feb 2014 00:56:49 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.188.35 with HTTP; Wed, 5 Feb 2014 00:56:29 -0800 (PST) In-Reply-To: <201402042000.s14K01eo021855@freefall.freebsd.org> References: <201402042000.s14K01eo021855@freefall.freebsd.org> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Wed, 5 Feb 2014 09:56:29 +0100 X-Google-Sender-Auth: mWJCkBKCjBuT3aE4gohiFcICVKs Message-ID: Subject: Re: kern/181497: [kernel] [patch] Add ASLR feature to kernel To: Shawn Webb Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-bugs@freebsd.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 08:56:51 -0000 On Tue, Feb 4, 2014 at 9:00 PM, Shawn Webb wrote: > The following reply was made to PR kern/181497; it has been noted by GNATS. > > From: Shawn Webb > To: bug-followup@FreeBSD.org, > steven@roothosts.com > Cc: > Subject: Re: kern/181497: [kernel] [patch] Add ASLR feature to kernel > Date: Tue, 4 Feb 2014 14:57:44 -0500 > > --Apple-Mail=_70D08D01-527F-4575-806A-36757E957E5A > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=us-ascii > > I'm sorry, my patch actually wasn't right. It included other fixes I had = > in my branch for other features and didn't include some of the other = > ASLR bits. Attached is the right patch. > > kernel compilation failed if configuration is "with PAX_ASLR options" and "without COMPAT_FREEBSD32 options": --- kern_pax.o --- /src/sys/kern/kern_pax.c:531:9: error: no member named 'vm_aslr_delta_exec' in 'struct vmspace' vm->vm_aslr_delta_exec = round_page(PAX_ASLR_DELTA(arc4random(), PAX_ASLR_DELTA_EXEC_LSB, (pr != NULL) ? pr->pr_pax_aslr_exec_len : pax_aslr_exec_len)); ~~ ^ 1 error generated. What's is this "vm_aslr_delta_exec" ?