[grsec] Can't compile on 2.6.32.39

Sam liste-grsecurity at ingescom.com
Tue Apr 26 13:38:33 EDT 2011


Hello,

I've patched severals kernel with grsecurity, but I've got a bug now :

On squeeze 64 bits (in fact a Domu HVM from Xen with Squeeze) I 
downloaded the 2.6.32.39 vanilla kernel from kernel.org and Grsecurity 
patch grsecurity-2.2.2-2.6.32.39-201104232142.patch.

When I start to compile, after a few seconds, the 'make' goes in 
infinite loop :

Can you help me ?
Thanks a lot.
Sam.

root at vm2:/usr/src/linux# make -j 5
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/conmakehash
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/selinux/mdp/mdp
scripts/genksyms/genksyms.c: In function ‘read_node’:
scripts/genksyms/genksyms.c:349: warning: comparison between signed and 
unsigned integer expressions
scripts/selinux/mdp/mdp.c: In function ‘main’:
scripts/selinux/mdp/mdp.c:147: warning: comparison between signed and 
unsigned integer expressions
scripts/selinux/mdp/mdp.c:165: warning: comparison between signed and 
unsigned integer expressions
scripts/selinux/mdp/mdp.c:169: warning: comparison between signed and 
unsigned integer expressions
HOSTCC scripts/mod/mk_elfconfig
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTCC scripts/genksyms/lex.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
In file included from 
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess.h:636,
from include/linux/uaccess.h:5,
from include/linux/crypto.h:26,
from arch/x86/kernel/asm-offsets_64.c:8,
from arch/x86/kernel/asm-offsets.c:4:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:44: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:80: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:103: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:139: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_in_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:187: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:189: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:233: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:235: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:263: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:279: warning: 
comparison of unsigned expression < 0 is always false
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/linux/compile.h
CC init/do_mounts.o
CC init/do_mounts_initrd.o
HOSTCC usr/gen_init_cpio
UPD include/linux/compile.h
CC init/initramfs.o
In file included from 
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess.h:636,
from include/linux/uaccess.h:5,
from include/linux/highmem.h:6,
from include/linux/pagemap.h:10,
from include/linux/blkdev.h:12,
from init/do_mounts.h:2,
from init/do_mounts_initrd.c:11:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:44: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:80: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:103: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:139: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_in_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:187: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:189: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:233: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:235: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:263: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:279: warning: 
comparison of unsigned expression < 0 is always false
In file included from 
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess.h:636,
from include/asm-generic/termios.h:51,
from /usr/src/linux-2.6.32.39/arch/x86/include/asm/termios.h:1,
from include/linux/termios.h:5,
from include/linux/tty.h:11,
from init/do_mounts.c:5:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:44: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:80: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:103: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:139: warning: 
comparison of unsigned expression < 0 is always false
In file included from 
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess.h:636,
from include/asm-generic/termios.h:51,
from /usr/src/linux-2.6.32.39/arch/x86/include/asm/termios.h:1,
from include/linux/termios.h:5,
from include/linux/tty.h:11,
from init/main.c:27:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:44: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:80: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:103: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:139: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_in_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:187: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:189: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:233: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:235: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:263: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:279: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_in_user’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:187: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:189: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:233: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:235: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_from_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:263: warning: 
comparison of unsigned expression < 0 is always false
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h: In function 
‘__copy_to_user_inatomic’:
/usr/src/linux-2.6.32.39/arch/x86/include/asm/uaccess_64.h:279: warning: 
comparison of unsigned expression < 0 is always false



More information about the grsecurity mailing list