Hello,
grsecurity-2.1.14-2.6.32.11-201004071936 and above when configured with KERNEXEC enabled on older p4 & xeon cpu's either lacking NX support or having NX support set to disabled in BIOS results in fairly frequent seemingly random application crashed with the kernel logging "corrupted page table at adress xxxxx ":
May 1 18:15:34 hostname kernel: which: Corrupted page table at address b399c810
May 1 18:15:34 hostname kernel: *pdpt = 000000003616d001 *pde = 000000007fca8025
May 1 18:15:34 hostname kernel: Bad pagetable: 000d [#1] SMP
May 1 18:15:34 hostname kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.0/host7/target7:0:0/7:0:0:0/block/sdf/removable
May 1 18:15:34 hostname kernel: Modules linked in:
May 1 18:15:34 hostname kernel:
May 1 18:15:34 hostname kernel: Pid: 3715, comm: which Not tainted (2.6.32.12-grsec #1)
May 1 18:15:34 hostname kernel: EIP: 0073:[<5399c810>] EFLAGS: 00010212 CPU: 1
May 1 18:15:34 hostname kernel: EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
May 1 18:15:34 hostname kernel: ESI: 00000000 EDI: 00000000 EBP: 00000000 ESP: 5fe31be0
May 1 18:15:34 hostname kernel: DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 007b
May 1 18:15:34 hostname kernel: Process which (pid: 3715, ti=f671c000 task=f6d35560 task.ti=f671c000)
May 1 18:15:34 hostname kernel:
May 1 18:15:34 hostname kernel: EIP: [<5399c810>] SS:ESP 007b:5fe31be0
May 1 18:15:34 hostname kernel: ---[ end trace 913b802e946143a3 ]---
May 1 19:23:14 hostname kernel: expr: Corrupted page table at address acb65810
May 1 19:23:14 hostname kernel: *pdpt = 0000000036199001 *pde = 000000007fca8025
May 1 19:23:14 hostname kernel: Bad pagetable: 000d [#2] SMP
May 1 19:23:14 hostname kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:03:00.0/host4/target4:0:0/4:0:0:0/block/sdc/removable
May 1 19:23:14 hostname kernel: Modules linked in:
May 1 19:23:14 hostname kernel:
May 1 19:23:14 hostname kernel: Pid: 5129, comm: expr Tainted: G D (2.6.32.12-grsec #1)
May 1 19:23:14 hostname kernel: EIP: 0073:[<4cb65810>] EFLAGS: 00010212 CPU: 0
May 1 19:23:14 hostname kernel: EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
May 1 19:23:14 hostname kernel: ESI: 00000000 EDI: 00000000 EBP: 00000000 ESP: 5b9fdea0
May 1 19:23:14 hostname kernel: DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 007b
May 1 19:23:14 hostname kernel: Process expr (pid: 5129, ti=f63ac000 task=f6e663a0 task.ti=f63ac000)
May 1 19:23:14 hostname kernel:
May 1 19:23:14 hostname kernel: EIP: [<4cb65810>] SS:ESP 007b:5b9fdea0
May 1 19:23:14 hostname kernel: ---[ end trace 913b802e946143a4 ]---
May 1 19:31:55 hostname kernel: uname: Corrupted page table at address b0381810
May 1 19:31:55 hostname kernel: *pdpt = 000000003671d001 *pde = 000000007fca8025
May 1 19:31:55 hostname kernel: Bad pagetable: 000d [#3] SMP
May 1 19:31:55 hostname kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:03:00.0/host3/target3:0:0/3:0:0:0/block/sdb/removable
May 1 19:31:55 hostname kernel: Modules linked in:
May 1 19:31:55 hostname kernel:
May 1 19:31:55 hostname kernel: Pid: 5949, comm: uname Tainted: G D (2.6.32.12-grsec #1)
May 1 19:31:55 hostname kernel: EIP: 0073:[<50381810>] EFLAGS: 00010212 CPU: 0
May 1 19:31:55 hostname kernel: EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
May 1 19:31:55 hostname kernel: ESI: 00000000 EDI: 00000000 EBP: 00000000 ESP: 5ce99900
May 1 19:31:55 hostname kernel: DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 007b
May 1 19:31:55 hostname kernel: Process uname (pid: 5949, ti=f63a4000 task=f6d04000 task.ti=f63a4000)
May 1 19:31:55 hostname kernel:
May 1 19:31:55 hostname kernel: EIP: [<50381810>] SS:ESP 007b:5ce99900
May 1 19:31:55 hostname kernel: ---[ end trace 913b802e946143a5 ]---
System cpu usage also shows a drastic increase up to 30-40% on and off on a otherwise basically idle system. On older systems that has NX capable cpu's but defaulted to having it disabled in BIOS the problem goes away when enabling it there with no change to kernel. On systems lacking NX capability altogether the problem goes away when disabling KERNEXEC in configuration so im assuming its the software emulation of the NX bit that is somehow causing it in more recent grsecurity versions.
Last patch known to not displaying the behavior: grsecurity-2.1.14-2.6.32.9-201002231820
Recent patches tested that all displays the same behavior (any patches between 2.6.32.9 and 2.6.32.11 not tested):
grsecurity-2.1.14-2.6.32.11-201004071936.patch
grsecurity-2.1.14-2.6.32.12-201004292005
grsecurity-2.1.14-2.6.32.12-201005012055.patch
config at: http://temp.tgk.net/config
vmlinux at: http://temp.tgk.net/vmlinux
bzImage at: http://temp.tgk.net/bzImage
binutils version: 2.18.50.0.9.20080822