Error on grsecurity-2.1.9-2.6.17.6-200607231226.patch

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

Error on grsecurity-2.1.9-2.6.17.6-200607231226.patch

Postby lmk61 » Mon Jul 24, 2006 10:04 am

Greetings All,

I am using the lastest grsecurity-2.1.9-2.6.17.6-200607231226.patch and encountered the te following error.

CC arch/i386/kernel/ldt.o
In file included from arch/i386/kernel/ldt.c:21:
include/asm/mmu_context.h: In function `switch_mm':
include/asm/mmu_context.h:55: error: structure has no member named `user_cs_base'
include/asm/mmu_context.h:55: error: structure has no member named `user_cs_base'
include/asm/mmu_context.h:56: error: structure has no member named `user_cs_limit'
include/asm/mmu_context.h:56: error: structure has no member named `user_cs_limit'
make[1]: *** [arch/i386/kernel/ldt.o] Error 1
make: *** [arch/i386/kernel] Error 2

Any idea ho i can get a workaround?

Thanks,
SL
lmk61
 
Posts: 2
Joined: Mon Jul 24, 2006 10:01 am

Postby boneyard » Mon Jul 24, 2006 4:22 pm

i encountered the same problem with that patch.
boneyard
 
Posts: 6
Joined: Tue Mar 07, 2006 2:46 pm

Postby Dr_Napalm » Tue Jul 25, 2006 4:21 am

I did not.

Maybe you did because you did not select any PAX Options?
Dr_Napalm
 
Posts: 14
Joined: Tue Sep 02, 2003 3:44 am

Postby To » Tue Jul 25, 2006 7:27 am

I've the same problem here. And I didn't select any options from PAX.
Anything that should have been chosen on PAX?
To
 
Posts: 22
Joined: Thu Dec 05, 2002 8:26 am

Re: Error on grsecurity-2.1.9-2.6.17.6-200607231226.patch

Postby PaX Team » Tue Jul 25, 2006 10:14 am

lmk61 wrote:I am using the lastest grsecurity-2.1.9-2.6.17.6-200607231226.patch and encountered the te following error.

CC arch/i386/kernel/ldt.o
In file included from arch/i386/kernel/ldt.c:21:
include/asm/mmu_context.h: In function `switch_mm':
include/asm/mmu_context.h:55: error: structure has no member named `user_cs_base'
should be fixed in the latest PaX test patch.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Error on grsecurity-2.1.9-2.6.17.6-200607231226.patch

Postby boneyard » Wed Jul 26, 2006 2:49 am

PaX Team wrote:
lmk61 wrote:I am using the lastest grsecurity-2.1.9-2.6.17.6-200607231226.patch and encountered the te following error.

CC arch/i386/kernel/ldt.o
In file included from arch/i386/kernel/ldt.c:21:
include/asm/mmu_context.h: In function `switch_mm':
include/asm/mmu_context.h:55: error: structure has no member named `user_cs_base'
should be fixed in the latest PaX test patch.


where can i find that one? is that grsecurity-2.1.9-2.6.17.6-200607241736.patch at spender?
boneyard
 
Posts: 6
Joined: Tue Mar 07, 2006 2:46 pm

Postby lmk61 » Wed Jul 26, 2006 6:50 am

Thanks for that.

Initiate attempts with the new patch produce the same results. However enabling PAX softmode and etc seems to have solved the problem. Here's part of my .config setting:

CONFIG_PAX=y
CONFIG_PAX_SOFTMODE=y
CONFIG_PAX_EI_PAX=y
CONFIG_PAX_PT_PAX_FLAGS=y
# CONFIG_PAX_NO_ACL_FLAGS is not set
CONFIG_PAX_HAVE_ACL_FLAGS=y
# CONFIG_PAX_HOOK_ACL_FLAGS is not set
CONFIG_PAX_NOEXEC=y
CONFIG_PAX_PAGEEXEC=y
CONFIG_PAX_SEGMEXEC=y
# CONFIG_PAX_DEFAULT_PAGEEXEC is not set
CONFIG_PAX_DEFAULT_SEGMEXEC=y
# CONFIG_PAX_EMUTRAMP is not set
CONFIG_PAX_MPROTECT=y
# CONFIG_PAX_NOELFRELOCS is not set
CONFIG_PAX_KERNEXEC=y
CONFIG_PAX_ASLR=y
# CONFIG_PAX_RANDKSTACK is not set
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y
CONFIG_PAX_NOVSYSCALL=y
CONFIG_PAX_MEMORY_SANITIZE=y
CONFIG_PAX_MEMORY_UDEREF=y

Thanks again.

SL
lmk61
 
Posts: 2
Joined: Mon Jul 24, 2006 10:01 am

Postby To » Thu Jul 27, 2006 11:08 am

The oficial release fixed everything. Thanx.
To
 
Posts: 22
Joined: Thu Dec 05, 2002 8:26 am

Postby boneyard » Fri Jul 28, 2006 1:02 pm

where can i find those testXX patches?
boneyard
 
Posts: 6
Joined: Tue Mar 07, 2006 2:46 pm

Postby ralphy » Fri Jul 28, 2006 9:49 pm

grsecurity.org/~spender
ralphy
 
Posts: 52
Joined: Wed Jan 11, 2006 12:51 pm

Postby Thrawn » Sun Jul 30, 2006 11:56 am

The pax test patches live in http://www.grsecurity.net/~paxguy1
Thrawn
 
Posts: 35
Joined: Wed Nov 23, 2005 9:54 am

Postby boneyard » Sun Jul 30, 2006 3:32 pm

thanks
boneyard
 
Posts: 6
Joined: Tue Mar 07, 2006 2:46 pm


Return to grsecurity support

cron