kern/181497: [kernel] [patch] Add ASLR feature to kernel

Olivier Cochard-Labbé olivier at cochard.me
Wed Feb 5 08:11:12 UTC 2014


On Tue, Feb 4, 2014 at 9:00 PM, Shawn Webb <lattera at gmail.com> wrote:

> The following reply was made to PR kern/181497; it has been noted by GNATS.
>
> From: Shawn Webb <lattera at gmail.com>
> To: bug-followup at FreeBSD.org,
>  steven at roothosts.com
>
>  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.
>
>
A kernel without PAX_ASLR option in configuraton file failed:

--- imgact_elf.o ---
/src/sys/kern/imgact_elf.c:606:20: error: unused variable 'pr'
[-Werror,-Wunused-variable]
    struct prison *pr; /* For ASLR */
                   ^

There is a missing #ifdef PAX_ASLR arround this line.


More information about the freebsd-bugs mailing list