Page 1 of 1

2.4.33 and grsecurity-2.1.9-2.4.33-rc2-200607111636

PostPosted: Fri Aug 11, 2006 11:21 pm
by grsecuser
I applied grsecurity-2.1.9-2.4.33-rc2-200607111636 to 2.4.33 and everything was fine (no fuzz, the only reject was the Makefile). When I compile it, I get this error:

Code: Select all
make[2]: Entering directory `/usr/src/linux-2.4.33/arch/i386/lib'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.33/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon    -nostdinc -iwithprefix include -DKBUILD_BASENAME=mmx  -c -o mmx.o mmx.c
mmx.c: In function `_mmx_memcpy':
mmx.c:42: error: invalid `asm': operand number out of range
{standard input}: Assembler messages:
{standard input}:62: Error: expecting operand before ','; got nothing
make[2]: *** [mmx.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.33/arch/i386/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.33/arch/i386/lib'
make: *** [_dir_arch/i386/lib] Error 2


This is on debian stable. Any ideas?

Re: 2.4.33 and grsecurity-2.1.9-2.4.33-rc2-200607111636

PostPosted: Sat Aug 12, 2006 5:28 am
by PaX Team
grsecuser wrote:
Code: Select all
make[2]: Entering directory `/usr/src/linux-2.4.33/arch/i386/lib'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.33/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon    -nostdinc -iwithprefix include -DKBUILD_BASENAME=mmx  -c -o mmx.o mmx.c
mmx.c: In function `_mmx_memcpy':
mmx.c:42: error: invalid `asm': operand number out of range
{standard input}: Assembler messages:
{standard input}:62: Error: expecting operand before ','; got nothing
oops, around line 62 in mmx.c change the %2 into %%eax and it should be fine.

PostPosted: Sun Aug 13, 2006 4:11 pm
by max
patching the actual 2.4.33 doesnt works for me.

Got this message:
Code: Select all
 patch -p0 --dry-run < grsecurity-2.1.9-2.4.33-rc2-20060711163                                                                       6.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urNp linux-2.4.33-rc2/arch/alpha/config.in linux-2.4.33-rc2/arch/alpha/co                                                                            nfig.in
|--- linux-2.4.33-rc2/arch/alpha/config.in      2006-07-01 20:16:43.000000000 -0                                                                            400
|+++ linux-2.4.33-rc2/arch/alpha/config.in      2006-07-01 21:59:33.000000000 -0                                                                            400
--------------------------
File to patch:

PostPosted: Mon Aug 14, 2006 1:33 pm
by spender
It's fixed in the 2.4.33 patch on the website; just use that.

-Brad