2.4.33 and grsecurity-2.1.9-2.4.33-rc2-200607111636

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

2.4.33 and grsecurity-2.1.9-2.4.33-rc2-200607111636

Postby grsecuser » Fri Aug 11, 2006 11:21 pm

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?
grsecuser
 
Posts: 3
Joined: Tue Jun 28, 2005 9:31 am

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

Postby PaX Team » Sat Aug 12, 2006 5:28 am

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.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby max » Sun Aug 13, 2006 4:11 pm

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:
max
 
Posts: 1
Joined: Sun Aug 13, 2006 4:08 pm

Postby spender » Mon Aug 14, 2006 1:33 pm

It's fixed in the 2.4.33 patch on the website; just use that.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm


Return to grsecurity support

cron