Discussion:
Bug#1079443: dracut-install ... -m =drivers/XXX is ignored [on armhf]
(too old to reply)
Chris Hofstaedtler
2024-08-23 17:10:01 UTC
Permalink
user debian-***@lists.debian.org
usertag 1079443 time-t
thanks

Hi debian-arm,

in case you don't know yet, here is a bug affecting dracut-install
on armhf (and probably armel), causing the built initramfs to lack a
lot of kernel modules. Probably makes a lot of things unbootable.

It looks like the bug is somewhere in the fts_* glibc routines or
maybe deeper down. Tj and I think t64 might be a source of the
problem.

On affected systems, this reproducer will output a single line (but
it should give about 13 or so):

$ pax -w /usr/lib/modules/6.10.6-armmp/kernel/drivers/block | tar -t

(Assuming you have linux-image-6.10.6-armmp installed.)

As noted in my earlier reply, might only happen on ext4.

Good luck,
Chris
dracut-install: Handle module '=drivers/block'
dracut-install: Handling =drivers/block
dracut-install: path1: /lib/modules/6.10.6-armmp/extra/drivers/block
dracut-install: path2: /lib/modules/6.10.6-armmp/kernel/drivers/block
dracut-install: path3: /lib/modules/6.10.6-armmp/updates/drivers/block
dracut-install: Checking /lib/modules/6.10.6-armmp/extra/drivers/block
dracut-install: Ignoring /lib/modules/6.10.6-armmp/extra/drivers/block fts_info=10
dracut-install: Checking /lib/modules/6.10.6-armmp/kernel/drivers/block
dracut-install: Ignoring /lib/modules/6.10.6-armmp/kernel/drivers/block fts_info=1
dracut-install: Checking /lib/modules/6.10.6-armmp/kernel/drivers/block
dracut-install: Ignoring /lib/modules/6.10.6-armmp/kernel/drivers/block fts_info=6
dracut-install: Checking /lib/modules/6.10.6-armmp/updates/drivers/block
dracut-install: Ignoring /lib/modules/6.10.6-armmp/updates/drivers/block fts_info=10
It looks like fts_read just doesn't see anything inside
kernel/drivers/block.
Stepan Golosunov
2024-08-24 18:00:01 UTC
Permalink
control: forcemerge 916276 1079443
Hi
reassign -1 glibc
Bug #1079443 [dracut-install] dracut-install ... -m =drivers/XXX is ignored
Bug reassigned from package 'dracut-install' to 'glibc'.
No longer marked as found in versions dracut/103-1.1.
Ignoring request to alter fixed versions of bug #1079443 to the same values previously set
This bug keeps coming, but porters do not work on getting it fixed
upstream.
My position explained in the two other merged bugs still stands. Given
it only affects the qemu-user case, I do not want to take any risk
applying a patch that has not been reviewed and merged upstream. If we
end up "missing" files in the non qemu-user case, it might have some
security implications.
I think #1079443 is different from the other two bugs: LFS versions of
the fts_* functions are calling non-LFS __readdir. This will also fail on
large inode numbers, even without qemu.
Aurelien Jarno
2024-08-24 18:10:01 UTC
Permalink
control: unmerge 1079443
control: retitle 1079443 fts_* calling non-LFS __readdir
Post by Stepan Golosunov
control: forcemerge 916276 1079443
Hi
reassign -1 glibc
Bug #1079443 [dracut-install] dracut-install ... -m =drivers/XXX is ignored
Bug reassigned from package 'dracut-install' to 'glibc'.
No longer marked as found in versions dracut/103-1.1.
Ignoring request to alter fixed versions of bug #1079443 to the same values previously set
This bug keeps coming, but porters do not work on getting it fixed
upstream.
My position explained in the two other merged bugs still stands. Given
it only affects the qemu-user case, I do not want to take any risk
applying a patch that has not been reviewed and merged upstream. If we
end up "missing" files in the non qemu-user case, it might have some
security implications.
I think #1079443 is different from the other two bugs: LFS versions of
the fts_* functions are calling non-LFS __readdir. This will also fail on
large inode numbers, even without qemu.
Ok, then I got misled by the earlier messages in that bug that pointed
the same upstream bugs. Unmerging them, and retitling because the
existing title is also misleading.

As you seems to have investigated seems more than me could you please
take care of reporting the bug in the upstream bugzilla? A simple
reproducer would be ideal.

Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
***@aurel32.net http://aurel32.net
Aurelien Jarno
2024-11-03 10:30:01 UTC
Permalink
Post by Aurelien Jarno
control: unmerge 1079443
control: retitle 1079443 fts_* calling non-LFS __readdir
Post by Stepan Golosunov
control: forcemerge 916276 1079443
Hi
reassign -1 glibc
Bug #1079443 [dracut-install] dracut-install ... -m =drivers/XXX is ignored
Bug reassigned from package 'dracut-install' to 'glibc'.
No longer marked as found in versions dracut/103-1.1.
Ignoring request to alter fixed versions of bug #1079443 to the same values previously set
This bug keeps coming, but porters do not work on getting it fixed
upstream.
My position explained in the two other merged bugs still stands. Given
it only affects the qemu-user case, I do not want to take any risk
applying a patch that has not been reviewed and merged upstream. If we
end up "missing" files in the non qemu-user case, it might have some
security implications.
I think #1079443 is different from the other two bugs: LFS versions of
the fts_* functions are calling non-LFS __readdir. This will also fail on
large inode numbers, even without qemu.
Ok, then I got misled by the earlier messages in that bug that pointed
the same upstream bugs. Unmerging them, and retitling because the
existing title is also misleading.
As you seems to have investigated seems more than me could you please
take care of reporting the bug in the upstream bugzilla? A simple
reproducer would be ideal.
Any news on that?

Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
***@aurel32.net http://aurel32.net
Loading...