Linux 2.6.13 is out

Discuss and suggest new grsecurity features

Postby bani » Mon Sep 19, 2005 7:36 pm

2.6.13.1 is broke for me :evil:
bani
 
Posts: 15
Joined: Sun Aug 28, 2005 10:56 pm

Postby nkukard » Thu Sep 22, 2005 3:05 pm

2.6.13.1 & 2 worked for me

You can try something like BootUtils, this can drop you to shell before it mounts your root device... maybe you can use it to debug your problem?

Very complex package to use to debug with.

It doesn't need ld-linux.so.though so you might beable to do some further investigations?

Just an idea.
nkukard
 
Posts: 5
Joined: Thu Sep 15, 2005 4:34 am

Postby nkukard » Thu Sep 22, 2005 3:06 pm

nkukard
 
Posts: 5
Joined: Thu Sep 15, 2005 4:34 am

Postby bani » Thu Sep 22, 2005 3:25 pm

try this PAX config and see if you get the same bug with 2.6.13.* as I do.

btw this config works perfect on 2.6.11.10 + grsec+pax. it kernel panics on 2.6.13.*

Code: Select all
#
# PaX
#
CONFIG_PAX=y

#
# PaX Control
#
# CONFIG_PAX_SOFTMODE is not set
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

#
# Non-executable pages
#
CONFIG_PAX_NOEXEC=y
# CONFIG_PAX_PAGEEXEC is not set
CONFIG_PAX_SEGMEXEC=y
CONFIG_PAX_EMUTRAMP=y
CONFIG_PAX_MPROTECT=y
# CONFIG_PAX_NOELFRELOCS is not set

#
# Address Space Layout Randomization
#
CONFIG_PAX_ASLR=y
CONFIG_PAX_RANDKSTACK=y
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y
CONFIG_PAX_NOVSYSCALL=y
CONFIG_KEYS=y
# CONFIG_KEYS_DEBUG_PROC_KEYS is not set
CONFIG_SECURITY=y
# CONFIG_SECURITY_NETWORK is not set
CONFIG_SECURITY_CAPABILITIES=y
# CONFIG_SECURITY_ROOTPLUG is not set
CONFIG_SECURITY_SECLVL=m
# CONFIG_SECURITY_SELINUX is not set
bani
 
Posts: 15
Joined: Sun Aug 28, 2005 10:56 pm

Postby Wildfire » Fri Sep 23, 2005 3:29 pm

@bani: This is probably not a PAX problem... does your 2.6.13 kernel work without grsecurity? My guess is, it doesnt... look in your other post for a more lengthy answer.
Wildfire
 
Posts: 2
Joined: Fri Sep 23, 2005 3:18 pm

Postby bani » Fri Sep 23, 2005 5:33 pm

Wildfire wrote:@bani: This is probably not a PAX problem... does your 2.6.13 kernel work without grsecurity? My guess is, it doesnt... look in your other post for a more lengthy answer.


yes, stock 2.6.13.* works perfectly for me. only with grsecurity/pax does it break.

and i'm not using devfs.
bani
 
Posts: 15
Joined: Sun Aug 28, 2005 10:56 pm

Postby Carceru » Wed Oct 05, 2005 5:04 am

And 2.6.13.3 is out, although I guess the changes doesn't really affect grsecurity.

In the final version for 2.6.13 coming soon, or are there still some bugs that need to be solved first?
Carceru
 
Posts: 12
Joined: Tue Jun 21, 2005 8:24 am

Postby forsaken » Wed Oct 12, 2005 2:57 am

Hi,

the pre-patch for 2.6.13.4 has the problem with "Reversed (or previously applied) patch detected! Assume -R? [n]" as the first 2.6.13.2 had. Just thought I let you know.

/Andreas
forsaken
 
Posts: 74
Joined: Tue May 18, 2004 3:04 am

Postby didl » Wed Oct 12, 2005 6:45 am

The patch is reversed, but you can apply it via patch -p1 -R.
Furthermore, I had to make the following change to compile
the kernel

Code: Select all
--- fs/proc/task_mmu.c  2005-10-12 10:49:43.000000000 +0000
+++ /usr/src/linux/fs/proc/task_mmu.c   2005-10-12 03:36:33.000000000 +0000
@@ -99,7 +99,7 @@
 }
 
 #ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
-#define PAX_RAND_FLAGS(mm) (mm != NULL && mm != current->mm && \
+#define PAX_RAND_FLAGS(mm) (mm != NULL && \
                            (mm->pax_flags & MF_PAX_RANDMMAP || \
                             mm->pax_flags & MF_PAX_SEGMEXEC))
 #endif
Last edited by didl on Wed Oct 12, 2005 2:48 pm, edited 1 time in total.
didl
 
Posts: 4
Joined: Wed Oct 12, 2005 6:38 am

Postby systray` » Wed Oct 12, 2005 2:35 pm

My Compile will fails at this time:

Code: Select all
  CC      fs/proc/task_mmu.o
fs/proc/task_mmu.c: in function »show_map«:
fs/proc/task_mmu.c:126: error: structure has no member named `map'
fs/proc/task_mmu.c:127: error: structure has no member named `map'
fs/proc/task_mmu.c:138: error: structure has no member named `map'
make[2]: *** [fs/proc/task_mmu.o] error 1
make[1]: *** [fs/proc] error 2
make: *** [fs] error 2


Best regards.
systray`
 
Posts: 17
Joined: Wed Oct 12, 2005 2:33 pm

Postby didl » Wed Oct 12, 2005 2:45 pm

My previous post has a patch that fixes this for now :lol:
didl
 
Posts: 4
Joined: Wed Oct 12, 2005 6:38 am

Postby systray` » Wed Oct 12, 2005 2:51 pm

Oh Thanks..

I have not being see the differents, in another words: The patch is failed, than i have edited manuelly, and now my Box compiles. :)

Best regards.
systray`
 
Posts: 17
Joined: Wed Oct 12, 2005 2:33 pm

Previous

Return to grsecurity development