Bug Report grsec for 2.6.14.7 (RAID)

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

Bug Report grsec for 2.6.14.7 (RAID)

Postby VIA Centrale reseau » Sun Feb 12, 2006 7:52 pm

We have tried grsec for kernel 2.6.14.7 with hardware RAID (IBM ServeRAID Controller).

Even with no option activated (but grsec and PaX activated), it kernel panics as if he didn't recognise disk controler : VFS: not syncing: unable to mount root filesystem or uknown block(0,0).
VIA Centrale reseau
 
Posts: 6
Joined: Sun Feb 12, 2006 7:47 pm

Postby spender » Sun Feb 12, 2006 10:13 pm

Does the same configuration with a vanilla kernel (not a distro-provided kernel) work? Generally these boot-time panics are due to invalid configuration of the kernel (missing some filesystem driver, device driver) or forgetting to change the bootloader configuration (if the distro normally uses LABEL=/ for booting instead of the harddisk device)

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

Postby VIA Centrale reseau » Mon Feb 13, 2006 6:04 am

Wy tried it with a vanilla kernel. With the same .config, if we do not apply Grsecurity patch, it boots. But if we do patch, even with all Grsecutiy options disabled, it panics.

Regards.
VIA Centrale reseau
 
Posts: 6
Joined: Sun Feb 12, 2006 7:47 pm

Postby VIA Centrale reseau » Mon Feb 13, 2006 12:53 pm

You can find more informations here :

http://people.via.ecp.fr/~pam/grsec/

Thanks.
VIA Centrale reseau
 
Posts: 6
Joined: Sun Feb 12, 2006 7:47 pm

Re: Bug Report grsec for 2.6.14.7 (RAID)

Postby PaX Team » Tue Feb 14, 2006 12:42 pm

VIA Centrale reseau wrote:We have tried grsec for kernel 2.6.14.7 with hardware RAID (IBM ServeRAID Controller).

Even with no option activated (but grsec and PaX activated), it kernel panics as if he didn't recognise disk controler : VFS: not syncing: unable to mount root filesystem or uknown block(0,0).
would it be possible to capture and post the boot log on serial console for both vanilla and the grsec kernel (just to see any differences that might give us a hint)?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby ralphy » Thu Feb 16, 2006 9:45 pm

originally i had this problem as well till i foolishly remembered you need to make an initrd image for the kernel to boot, mkinitrd -o /boot/initrd.img-grsec 2.6.12.5-grsec for example
ralphy
 
Posts: 52
Joined: Wed Jan 11, 2006 12:51 pm

Postby ralphy » Thu Feb 16, 2006 9:46 pm

oh, insert an initrd directive in your menu.lst accordingly (if your using grub)
ralphy
 
Posts: 52
Joined: Wed Jan 11, 2006 12:51 pm

Postby VIA Centrale reseau » Mon Feb 20, 2006 2:21 pm

We usually compile all the modules needed by the kernel to acces to / in the kernel, so we do not need any initrd. Actually, untill we tried with linux-2.6.14.7-grsec, it always worked without initrd, so I do not see why it could change anything.

Whatever, we will try it, and we will try to copy the kernel messages before it panics. Do you know if there is another solution than copying those messages by hand? I think dmesg only works if we have booted succesfully...
VIA Centrale reseau
 
Posts: 6
Joined: Sun Feb 12, 2006 7:47 pm

Postby Thrawn » Mon Feb 20, 2006 3:15 pm

You need a serial console.

For a Howto read linux-2.6.14.6/Documentation/serial-console.txt or http://www.vanemery.com/Linux/Serial/se ... nsole.html
Thrawn
 
Posts: 35
Joined: Wed Nov 23, 2005 9:54 am

Postby PaX Team » Tue Feb 21, 2006 8:45 am

VIA Centrale reseau wrote:Whatever, we will try it, and we will try to copy the kernel messages before it panics. Do you know if there is another solution than copying those messages by hand? I think dmesg only works if we have booted succesfully...
besides the serial console there's also netconsole, see Documentation/networking/netconsole.txt for details.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby VIA Centrale reseau » Sun Feb 26, 2006 8:53 pm

We tried using a serial console. Of course, it can only be activated when switching to some runlevel, i.e. after the boot time, when neeeded drivers are loaded. So, we cannot give you all the kernel messages, because it panics during boot time.

With an initrd, it also panics. Actually, I do not see how using an initrd could change anything, because it works with the same kernel, no grsec-patched and the same config. Even if we just patch and do not activate grsec in the config, it panics.
VIA Centrale reseau
 
Posts: 6
Joined: Sun Feb 12, 2006 7:47 pm

Postby PaX Team » Fri Mar 03, 2006 8:54 pm

VIA Centrale reseau wrote:We tried using a serial console. Of course, it can only be activated when switching to some runlevel, i.e. after the boot time, when neeeded drivers are loaded. So, we cannot give you all the kernel messages, because it panics during boot time.
uhm, not sure what you are doing but adding something like console=ttyS0,115200n8 console=tty0 to the kernel command line should enable the serial console very early during boot, way before userland starts up.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby VIA Centrale reseau » Mon Mar 13, 2006 8:15 am

Okay, we did not understand it completely. We will try it and paste the kernel messages here.
VIA Centrale reseau
 
Posts: 6
Joined: Sun Feb 12, 2006 7:47 pm


Return to grsecurity support