Last grsecurity patch incomplete

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Last grsecurity patch incomplete

Postby specs » Wed Dec 30, 2009 10:23 am

When trying to compile the 28-12-2009 version of grsecurity I got the error below:
Code: Select all
  CC      arch/x86/mm/fault.o
arch/x86/mm/fault.c: In function ‘pax_report_insns’:
arch/x86/mm/fault.c:1530: error: expected expression before ‘long’
make[2]: *** [arch/x86/mm/fault.o] Error 1
make[1]: *** [arch/x86/mm] Error 2
make: *** [arch/x86] Error 2

A quick cross-check with the pax-patch would lead to the assumption of an incomplete patch. Adding a few lines from pax-linux-2.6.32.2-test7.patch lead to the next compiling failure in the same file.

For now I'd rather use the old patch (20-12-2009) with the interdiff between pax-linux-2.6.32.2-test5.patch and pax-linux-2.6.32.2-test7.patch.
<edit>
Looking further it shows an interdiff over the 200912201010 version leads to a the same error.
specs
 
Posts: 190
Joined: Sun Mar 26, 2006 7:00 am

Re: Last grsecurity patch incomplete

Postby specs » Wed Dec 30, 2009 12:39 pm

Somehow I ended up producing the small and obvious patch on my slowest system
Code: Select all
diff -Nurp linux-2.6.32.2-grsec/arch/x86/mm/fault.c linux-2.6.32.2-patched/arch/x86/mm/fault.c
--- linux-2.6.32.2-grsec/arch/x86/mm/fault.c    2009-12-30 17:33:18.000000000 +0100
+++ linux-2.6.32.2-patched/arch/x86/mm/fault.c  2009-12-30 17:27:33.000000000 +0100
@@ -1517,6 +1517,11 @@ void pax_report_insns(void *pc, void *sp
                        printk(KERN_CONT "???????????????? ");
 #endif
                else
+                       printk(KERN_CONT "%0*lx ", 2 * (int)sizeof(long), c);
+       }
+       printk("\n");
+}
+#endif
 
 /**
  * probe_kernel_write(): safely attempt to write to a location
@@ -1542,8 +1547,3 @@ long notrace probe_kernel_write(void *ds
 
        return ret ? -EFAULT : 0;
 }
-                       printk(KERN_CONT "%0*lx ", 2 * (int)sizeof(long), c);
-       }
-       printk("\n");
-}
-#endif
specs
 
Posts: 190
Joined: Sun Mar 26, 2006 7:00 am


Return to grsecurity support

cron