PAX ASLR/SEGVGURAD: style(9) in kern_exec.c

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PAX ASLR/SEGVGUARD: fix build, when PAX_ASLR not specified

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PAX SEGVGUARD: move pax_segvuard() from sys_fork() to fork1()

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PAX SEGVGUARD: move p_pax initialisation upper

XXX: is this the right place to initialise p_pax?

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
PAX ASLR: temporary disable pax_elf in imgact_elf.c due calling linuxulator caused panic() after importing codes from Danielo

Fatal trap 9: general protection fault while in kernel mode
cpuid = 2; apic id = 04
instruction pointer     = 0x20:0xffffffff804b0d90
stack pointer           = 0x28:0xfffffe02378d64e0
frame pointer           = 0x28:0xfffffe02378d6520
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 64016 (csh)
[ thread pid 64016 tid 100113 ]
Stopped at      pax_elf+0x70:   cmpl    $0x7,0xffffffffffffffe4(%rbx)
db> bt
Tracing pid 64016 tid 100113 td 0xfffff8006a326490
pax_elf() at pax_elf+0x70/frame 0xfffffe02378d6520
exec_elf32_imgact() at exec_elf32_imgact+0x630/frame 0xfffffe02378d65f0
kern_execve() at kern_execve+0x5c4/frame 0xfffffe02378d6940
sys_execve() at sys_execve+0x37/frame 0xfffffe02378d69a0
amd64_syscall() at amd64_syscall+0x22e/frame 0xfffffe02378d6ab0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe02378d6ab0
--- syscall (59, Linux ELF32, linux_olduname), rip = 0x9da65686a, rsp = 0x7fffffff6bb8, rbp = 0x7fffffff6bc0 ---

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>