Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242556 - [2.6.27 regression] init not found with CONFIG_SECURITY_ROOTPLUG
Summary: [2.6.27 regression] init not found with CONFIG_SECURITY_ROOTPLUG
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.27-regression
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-18 13:20 UTC by Harris Landgarten
Modified: 2008-11-03 13:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My 2.6.27 config (.config,82.48 KB, text/plain)
2008-10-19 02:34 UTC, Dave
Details
difference between 2.6.26-gentoo-r2 (config_diff,9.48 KB, text/plain)
2008-10-19 02:35 UTC, Dave
Details
diff btw config-2.6.27 and config-2.6.26-r2 (diff,6.59 KB, text/plain)
2008-10-19 03:01 UTC, Harris Landgarten
Details
lshw for my machine (hw,25.35 KB, text/plain)
2008-10-19 03:02 UTC, Harris Landgarten
Details
my config-2.6.27 (config-2.6.27-gentoo,56.50 KB, text/plain)
2008-10-19 03:03 UTC, Harris Landgarten
Details
lshw output (lshw.LOG,19.75 KB, text/plain)
2008-10-20 06:33 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2008-10-18 13:20:15 UTC
after installing 2.6.27 on my ~amd64 box the new kernel will not boot. It gets as far and recognizing my root partion on sda3 and properly identifies the reiserfs file system but then panics saying it can't sync because it can't find init. 2.6.26 boots fine.

Reproducible: Always
Comment 1 Dave 2008-10-18 15:20:12 UTC
I get this error too.
Comment 2 Wormo (RETIRED) gentoo-dev 2008-10-18 23:18:23 UTC
Could one of you attach your full 2.6.27 config and also a diff against the 2.6.26 config that works with reiserfs?
Comment 3 Dave 2008-10-19 02:34:01 UTC
Created attachment 169014 [details]
My 2.6.27 config
Comment 4 Dave 2008-10-19 02:35:00 UTC
Created attachment 169016 [details]
difference between 2.6.26-gentoo-r2
Comment 5 Dave 2008-10-19 02:35:43 UTC
(In reply to comment #2)
> Could one of you attach your full 2.6.27 config and also a diff against the
> 2.6.26 config that works with reiserfs?
> 

I'm getting the error with xfs.  On several different boxes as well.

Comment 6 Harris Landgarten 2008-10-19 03:01:24 UTC
Created attachment 169018 [details]
diff btw config-2.6.27 and config-2.6.26-r2

Diff diff btw config-2.6.27 and config-2.6.26-r2
Comment 7 Harris Landgarten 2008-10-19 03:02:14 UTC
Created attachment 169020 [details]
lshw for my machine
Comment 8 Harris Landgarten 2008-10-19 03:03:27 UTC
Created attachment 169022 [details]
my config-2.6.27
Comment 9 Harris Landgarten 2008-10-19 03:05:03 UTC
I attached the config info requested as well as lshw for the machine. BTW the motherboard is Intel DQ35JO
Comment 10 Wormo (RETIRED) gentoo-dev 2008-10-19 06:42:51 UTC
Thanks, assigning to maintainers
Comment 11 Mike Pagano gentoo-dev 2008-10-19 19:03:21 UTC
Can someone take a picture of the panic and attach here
Comment 12 Dave 2008-10-19 22:55:19 UTC
(In reply to comment #11)
> Can someone take a picture of the panic and attach here
> 

Is this even possible?  The kernel doesn't boot.
Comment 13 Roger 2008-10-20 00:32:44 UTC
You can configure to pipe the display through a serial console (ie. /dev/ttyS0)

/boot/grub/menu.lst
kernel /boot/vmlinuz root=/dev/sda2 softlevel=single console=ttyS0,115200n8 console=tty0 resume2=swap:/dev/sda1 video=uvesafb:off

(Can ignore uvesafb setting... just a clip & paste of mine.)

Hook up a second computer/laptop's serial port and get minicom or kermit running on it and connect to the /dev/ttyS0 or /dev/ttyS1 port.

This is a common task for working with Coreboot (aka LinuxBIOS).  Think you also need to configure a config option for the kernel to output via serial console.
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2008-10-20 01:12:29 UTC
or use a digital camera and upload the photo
Comment 15 Roger 2008-10-20 01:16:34 UTC
In ref to Comment #13, see: Linux Serial Console HOWTO

My basic note above will get your dmesg.  To also see init processes, which I think we want here, you'll also need to add an entry into /etc/inittab for ttyS0.

Really easy to do!  The documentation just makes it looks hard.  Once it's setup, you can add an entry into Grub as a boot option.  Cheers!

Comment 16 Harris Landgarten 2008-10-20 01:56:15 UTC
I can send a digital picture if you like ( no serial port so serial console not doable without adding hw) but it is pretty uninformative.

The boot process looks the same as 2.6.26 as it discovers usb ports and sata devices. It then finds sda3 (which is root) which it identifies as reiserfs and prints a few lines about the journal etc.

It this tries to run init and that is where it panics with:

Kernel panic - cannot sync - no init found - try setting init= as a kernel parm.

I tried adding init=/sbin/init as a command line parameter but that didn't help and I got more or less the same panic with reference to /sbin/init.

Seeing init services firing is not applicable since we are not getting that far.

I think comparing my hw with Dave's should be the first step. That is why I attached lshw output.

Comment 17 Helmut Jarausch 2008-10-20 06:33:58 UTC
Created attachment 169150 [details]
lshw output

Same problem here (2.6.26.-r1 is running just fine),
same kernel panic with 2.6.27
Comment 18 Harris Landgarten 2008-10-20 23:30:30 UTC
Helmut's hardware is much different than mine, so assuming we are seeing the same problem, it is probably not hardware dependent.

How did those having the problems configure 2.6.27? I ran make oldconfig using my config-2.6.26-r2 and then manually reviewed with make menuconfig.

Any idea what could be the problem and why more aren't reporting it. I have a new box that I will try 2.6.27 on and see if it has the same issue. It is also a ~amd64 box with new Intel hardware.
Comment 19 Harris Landgarten 2008-10-21 19:01:48 UTC
I installed 2.6.27 on the new box I mentioned with more or less default config except for processor and hardware customization. The kernel booted with no problem. I will be able to compare configs between machines later and hopefully will find the culprit.
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2008-10-29 11:13:18 UTC
Please try disabling CONFIG_SECURITY_ROOTPLUG
Comment 21 Harris Landgarten 2008-10-29 12:57:08 UTC
That did the trick. Booting perfectly now.
Comment 22 Daniel Drake (RETIRED) gentoo-dev 2008-10-29 13:21:29 UTC
OK. You do not want that "feature" enabled, its more of a sample module and is now doing what it is supposed to be doing - not letting anything run as root without the presence of a specific USB device. More documentation here: http://www.linuxjournal.com/article/6279

I think it was a bug that 2.6.26 and previous booted and worked OK while this feature was enabled.

Disable CONFIG_SECURITY_ROOTPLUG and things will work as normal.
Comment 23 Helmut Jarausch 2008-11-03 13:54:23 UTC
This has been fix with gentoo-sources-2.6.27-r2 (here)