Hi,
i've discovered a strange problem with 2.6.30.6 and grsecurity-2.1.14-2.6.30.6-200909121646.
A custom PHP-Application (in CGI-Mode, using ZendOptimizer) is suddenly segfaulting after upgrading.
If i switch back to my previous kernel (2.6.27.7 and grsecurity-2.1.12-2.6.27.7-200811291903) the problem disappears.
I've also discovered that disabling the ZendOptimizer in the PHP Application solves the problem.
I see errors like the following in "dmesg":
example.php[6683]: segfault at b63ddec8 ip b63cc8e8 sp bf02a630 error 7 in ld-2.3.4.so[b63c7000+15000]
example.php[6731]: segfault at a3ec7ec8 ip a3eb68e8 sp b2228e70 error 7 in ld-2.3.4.so[a3eb1000+15000]
I also did an strace to get an idea where the segfault occurs:
6945 mmap2(NULL, 285444, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xa46a1000
6945 mmap2(0xa46e2000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x41) = 0xa46e2000
6945 mprotect(0xa4d7c000, 3788, PROT_READ|PROT_WRITE) = -1 EACCES (Permission denied)
6945 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
5750 <... read resumed> "", 4096) = 0
5750 --- SIGCHLD (Child exited) @ 0 (0) ---
Any idea how to debug this further or what might cause this problem?
I'll try to get as much information as needed, just point me in the right direction.
Regards,
Sebastian