lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 22 Feb 2007 14:30:53 +0300
From:	Michael Tokarev <mjt@....msk.ru>
To:	dsaxena@...xity.net
CC:	linux-kernel@...r.kernel.org
Subject: Re: Modprobe as script breaks initramfs kernel?

Deepak Saxena wrote:
> We attempted an experiment in cleaning up some modprobe messages during 
> initramfs bootup when the modules directory is missing by moving modprobe 
> to modprobe-bin and replacing modprobe with the following simple shell script:
> 
> #!/bin/sh
> # Clean up bootup when modules are not present
> 
> if [ -e "/lib/modules/'uname -r'/modules.dep" ] ; then
> 	/sbin/modprobe-bin $*
> else
> 	exit 0
> fi
> 
[]
> BUG: unable to handle kernel NULL pointer dereference at virtual address 00000014
[]
> Trace; c0107737 <sys_pipe+17/60>
> Trace; c01030d7 <syscall_call+7/b>

This is the same issue I reported much earlier with /sbin/hotplug being a script
in initrfamfs.  The problem is because pipefs isn't initialized yet at the time
the script gets called, and causes a NULL-pointer deref.  Obviously you're using
pipe above.

/mjt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ