Page 1 of 1

Error on grsecurity-2.1.9-2.6.17.6-200607231226.patch

PostPosted: Mon Jul 24, 2006 10:04 am
by lmk61
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

PostPosted: Mon Jul 24, 2006 4:22 pm
by boneyard
i encountered the same problem with that patch.

PostPosted: Tue Jul 25, 2006 4:21 am
by Dr_Napalm
I did not.

Maybe you did because you did not select any PAX Options?

PostPosted: Tue Jul 25, 2006 7:27 am
by To
I've the same problem here. And I didn't select any options from PAX.
Anything that should have been chosen on PAX?

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

PostPosted: Tue Jul 25, 2006 10:14 am
by PaX Team
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.

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

PostPosted: Wed Jul 26, 2006 2:49 am
by boneyard
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?

PostPosted: Wed Jul 26, 2006 6:50 am
by lmk61
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

PostPosted: Thu Jul 27, 2006 11:08 am
by To
The oficial release fixed everything. Thanx.

PostPosted: Fri Jul 28, 2006 1:02 pm
by boneyard
where can i find those testXX patches?

PostPosted: Fri Jul 28, 2006 9:49 pm
by ralphy
grsecurity.org/~spender

PostPosted: Sun Jul 30, 2006 11:56 am
by Thrawn
The pax test patches live in http://www.grsecurity.net/~paxguy1

PostPosted: Sun Jul 30, 2006 3:32 pm
by boneyard
thanks