Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

initramfs-tools: mkinitramfs could call modprobe with --use-blacklist?

186 views
Skip to first unread message

Jayen Ashar

unread,
Mar 31, 2010, 7:30:02 PM3/31/10
to
Hi,

I have a problem where modprobe hangs when trying to load the amd64_agp module. mkinitramfs calls modprobe when adding things to initramfs. While I acknowledge that is not a bug in mkinitramfs, I think I should be able to use the blacklist (or some equivalent mechanism) to prevent this from happening.

Until the amd64_agp bug is fixed (http://bugs.debian.org/570321), I have to kill modprobe every time I upgrade my kernel, so I had requested this wishlist item from initramfs-tools. http://bugs.debian.org/575454 Max told me to ask on the mailing list (I'm assuming this one) before opening this as a wishlist item.

Is this a reasonable feature request? For mkinitramfs to avoid hanging by honouring the blacklist when adding modules to initramfs?

Thanks,
Jayen



--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/80510.5...@web45801.mail.sp1.yahoo.com

maximilian attems

unread,
Mar 31, 2010, 9:40:01 PM3/31/10
to
hello,

On Wed, 31 Mar 2010, Jayen Ashar wrote:

>
> I have a problem where modprobe hangs when trying to load the amd64_agp
> module. mkinitramfs calls modprobe when adding things to initramfs.
> While I acknowledge that is not a bug in mkinitramfs, I think I should
> be able to use the blacklist (or some equivalent mechanism) to prevent
> this from happening.

why to you think that mkinitramfs loads any module?

it merely calls modprobe to list the dependings of specific modules
to have them also included in initramfs.



> Until the amd64_agp bug is fixed (http://bugs.debian.org/570321), I have
> to kill modprobe every time I upgrade my kernel, so I had requested this
> wishlist item from initramfs-tools. http://bugs.debian.org/575454 Max
> told me to ask on the mailing list (I'm assuming this one) before
> opening this as a wishlist item.
>
> Is this a reasonable feature request? For mkinitramfs to avoid hanging
> by honouring the blacklist when adding modules to initramfs?

first of all the trouble concerning amd64_agp should be gone as it is
no longer modular.

what i still don't get is why it should hang there, could you provide an
strace of the modprobe call, thanks.


--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/2010040101...@stro.at

maximilian attems

unread,
Apr 1, 2010, 10:00:01 AM4/1/10
to
On Thu, Apr 01, 2010 at 04:01:23AM -0700, Jayen Ashar wrote:
> output from pstree:
> `-aptitude,6493,root
> |-{aptitude},30685
> `-dpkg,30843 --status-fd 48 --configure linux-image-2.6.32-trunk-686
> `-frontend,30844 -w /usr/share/debconf/frontend /var/lib/dpkg/info/linux-image-2.6.32-trunk-686.postinst configure 2.6.32-5
> `-linux-image-2.6,30850 /var/lib/dpkg/info/linux-image-2.6.32-trunk-686.postinst configure 2.6.32-5
> `-sh,30855 -c update-initramfs -c -t -k 2.6.32-trunk-686 >&2
> `-update-initramf,30856 /usr/sbin/update-initramfs -c -t -k 2.6.32-trunk-686
> `-mkinitramfs,30858 /usr/sbin/mkinitramfs -o /boot/initrd.img-2.6.32-trunk-686.new 2.6.32-trunk-686
> `-mkinitramfs,32566 /usr/sbin/mkinitramfs -o /boot/initrd.img-2.6.32-trunk-686.new 2.6.32-trunk-686
> |-modprobe,32567 --set-version=2.6.32-trunk-686 --ignore-install --show-depends amd64_agp
> `-awk,32568 /^insmod/ { print $2 }

this looks fine.

>
> looks like it's stuck in a loop (strace attached):
>
> open("/sys/module/amd64_agp/initstate", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7869000
> read(3, "coming\n", 4096) = 7
> close(3) = 0
> munmap(0xb7869000, 4096) = 0
> nanosleep({0, 100000000}, NULL) = 0
> open("/sys/module/amd64_agp/initstate", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7869000
> read(3, "coming\n", 4096) = 7
> close(3) = 0
> munmap(0xb7869000, 4096) = 0
> nanosleep({0, 100000000}, NULL) = 0
> open("/sys/module/amd64_agp/initstate", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7869000
> read(3, "coming\n", 4096) = 7
> close(3) = 0
> munmap(0xb7869000, 4096) = 0
> nanosleep({0, 100000000}, NULL) = 0

please reportbug on module-init-tools
with cc on debian...@lists.debian.org


thanks


--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20100401132...@baikonur.stro.at

maximilian attems

unread,
Apr 1, 2010, 10:10:01 AM4/1/10
to
reassign 570321 module-init-tools
stop


--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/2010040113...@stro.at

Debian Bug Tracking System

unread,
Apr 1, 2010, 10:30:02 AM4/1/10
to
Processing commands for con...@bugs.debian.org:

> reassign 570321 module-init-tools
Bug #570321 [linux-2.6] hangs while installing
Bug #548090 [linux-2.6] [amd64-agp] BUG: unable to handle kernel NULL pointer dereference
Bug #571003 [linux-2.6] udev: update-initramfs fails after updating udev to 151-2
Bug reassigned from package 'linux-2.6' to 'module-init-tools'.
Bug reassigned from package 'linux-2.6' to 'module-init-tools'.
Bug reassigned from package 'linux-2.6' to 'module-init-tools'.
Bug No longer marked as found in versions 2.6.32-5 and 2.6.30-6.
Bug No longer marked as found in versions 2.6.32-5 and 2.6.30-6.
Bug No longer marked as found in versions 2.6.32-5 and 2.6.30-6.
> stop
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/handler.s.C.127013...@bugs.debian.org

Jayen Ashar

unread,
Apr 2, 2010, 3:20:01 AM4/2/10
to
--- On Thu, 1/4/10, maximilian attems <m...@stro.at> wrote:

is it fine if modprobe hangs? I have no option to call modprobe with -b in this case, to avoid it from hanging? No workaround is available?


> please reportbug on module-init-tools
> with cc on debian...@lists.debian.org

thanks for transferring the bug for me.



--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/147009....@web45809.mail.sp1.yahoo.com

maximilian attems

unread,
Apr 2, 2010, 10:00:01 AM4/2/10
to
On Thu, Apr 01, 2010 at 11:55:33PM -0700, Jayen Ashar wrote:
>
> is it fine if modprobe hangs?

no it is not fine. sorry i hadnt get that part when you reported the
bug modprobe show-depends has no business in running into sys.


> I have no option to call modprobe with -b in this case, to avoid it
> from hanging? No workaround is available?

the easy workaround is to upgrade your linux image and nuke trunk
it is outdated anyway.


--
To UNSUBSCRIBE, email to debian-ker...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20100402132...@baikonur.stro.at

0 new messages