FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-11-2010, 04:13 PM
maximilian attems
 
Default Bug#588466: klibc-utils: kernel panic when resume failed and normal boot continues

tags 588466 moreinfo -patch
stop

On Thu, 08 Jul 2010, Bastian Kleineidam wrote:

> all my newly built kernels failed to boot with the following message:
> [...]
> kinit: No resume image, doing normal boot...
> E: /scripts/local-premount/resume failed with return 255
> Kernel panic - not syncing: Attempted to kill init!

is the /tmp on your box mounted noexec?
please sent output of:
cat /proc/mounts

> Attached patch fixes the issue by falling back gracefully to normal
> booting of the system.
>
> My swap partition is crypted btw:
> $ cat /etc/crypttab | grep swap
> cswap /dev/mapper/grog-swap_1 /dev/urandom swap
> $ cat /etc/fstab | grep swap
> /dev/mapper/cswap none swap sw 0 0
>
> As a sidenote: I do not understand why my system is trying to resume
> from a crypted swap ?artition anyway.
> It tries this everytime, even though the system has always been
> rebooted cleanly without suspending anything to the swap partition.

please send output of
cat /etc/initramfs-tools/conf.d/resume

> --- /usr/share/initramfs-tools/scripts/local-premount/resume~ 2010-07-07 23:13:20.000000000 +0200
> +++ /usr/share/initramfs-tools/scripts/local-premount/resume 2010-07-08 20:29:31.000000000 +0200
> @@ -58,6 +58,13 @@
> # hardcode path, uswsusp ships an resume binary too
> if [ -n "${resume_offset}" ]; then
> /bin/resume ${resume} ${resume_offset}
> + res=$?
> else
> /bin/resume ${resume}
> + res=$?
> fi
> +if [ $res -eq -1 ]; then
> + # do not fail when falling back to normal boot
> + exit 0
> +fi
> +exit $res

checked indeed resume from klibc does return -1 when
suspend doesn't happen.

I haven't seen the resulting bootfailure yet, currently I can only
explain it by noexec tmp and thus not precache run.

the errexit for hooks on run_script() mika would thus also be hit
on boot and not only on mkinitramfs. not sure that is what we want.

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100711161315.GC13202@stro.at">http://lists.debian.org/20100711161315.GC13202@stro.at
 
Old 07-12-2010, 08:33 AM
Michael Prokop
 
Default Bug#588466: klibc-utils: kernel panic when resume failed and normal boot continues

* maximilian attems <max@stro.at> [Sun Jul 11, 2010 at 06:13:15PM +0200]:
> On Thu, 08 Jul 2010, Bastian Kleineidam wrote:

> > --- /usr/share/initramfs-tools/scripts/local-premount/resume~ 2010-07-07 23:13:20.000000000 +0200
> > +++ /usr/share/initramfs-tools/scripts/local-premount/resume 2010-07-08 20:29:31.000000000 +0200
> > @@ -58,6 +58,13 @@
> > # hardcode path, uswsusp ships an resume binary too
> > if [ -n "${resume_offset}" ]; then
> > /bin/resume ${resume} ${resume_offset}
> > + res=$?
> > else
> > /bin/resume ${resume}
> > + res=$?
> > fi
> > +if [ $res -eq -1 ]; then
> > + # do not fail when falling back to normal boot
> > + exit 0
> > +fi
> > +exit $res

> checked indeed resume from klibc does return -1 when
> suspend doesn't happen.

> I haven't seen the resulting bootfailure yet, currently I can only
> explain it by noexec tmp and thus not precache run.

> the errexit for hooks on run_script() mika would thus also be hit
> on boot and not only on mkinitramfs. not sure that is what we want.

No, that's not we want - ack, we should fix that.

Exiting during buildtime, but trying to execute it on boot time
is what I'd consider as the way to go.

Thanks for catching, maks.

regards,
-mika-
 
Old 07-16-2010, 05:44 AM
Bastian Kleineidam
 
Default Bug#588466: klibc-utils: kernel panic when resume failed and normal boot continues

Am Sonntag, 11. Juli 2010, 18:13:15 schrieb maximilian attems:
> is the /tmp on your box mounted noexec?
> please sent output of:
> cat /proc/mounts
/dev/mapper/_dev_dm_6 /home/calvin ext3
rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/_dev_sdb1 /mnt/backup ext3
rw,nosuid,nodev,noatime,errors=continue,data=order ed 0 0
/dev/mapper/grog-root / ext3 rw,relatime,errors=remount-ro,data=writeback 0 0
/dev/mapper/grog-tmp /tmp ext3
rw,nosuid,nodev,noexec,relatime,errors=continue,da ta=writeback 0 0
/dev/mapper/grog-usr /usr ext3
rw,nodev,noatime,nodiratime,errors=continue,data=w riteback 0 0
/dev/mapper/grog-var /var ext3
rw,nosuid,nodev,relatime,errors=continue,data=writ eback 0 0
/dev/sda1 /boot ext3
rw,nosuid,nodev,noatime,nodiratime,errors=continue ,data=writeback 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /dev devtmpfs rw,relatime,size=4027460k,nr_inodes=1006865,mode=7 55 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
rootfs / rootfs rw 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0

>
> please send output of
> cat /etc/initramfs-tools/conf.d/resume
RESUME=/dev/mapper/grog-swap_1



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201007160744.53628.calvin@debian.org">http://lists.debian.org/201007160744.53628.calvin@debian.org
 
Old 07-17-2010, 09:26 PM
"Eli L."
 
Default Bug#588466: klibc-utils: kernel panic when resume failed and normal boot continues

> I haven't seen the resulting bootfailure yet, currently I can only explain it
> by noexec tmp and thus not precache run.

I had the same problem; mounting /tmp as noexec was indeed the cause.

--
-Eli



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100717212654.GA2989@neuromancer">http://lists.debian.org/20100717212654.GA2989@neuromancer
 

Thread Tools




All times are GMT. The time now is 10:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org