<div dir="ltr">Hi Krister,<br><br>Thanks again for tracking down another of these super subtle race conditions.<br><br>I have prepared debdiffs for noble, oracular and plucky. We just need to land<br>the change in plucky first before we can SRU to noble.<br><br>I have asked the Foundations Team to sponsor, hopefully the debdiff is up to<br>their expectations.<br><br>Thanks,<br>Matthew</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 5 Dec 2024 at 07:24, Krister Johansen <<a href="mailto:kjlx@templeofstupid.com">kjlx@templeofstupid.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
I wanted to raise awareness about a bug that my team has been running<br>
into on Noble.  I logged a launchpad bug here with the details:<br>
<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2090972" rel="noreferrer" target="_blank">https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2090972</a><br>
<br>
The short explanation is that libblkid in util-linux can misread the<br>
ext4 superblock checksum and incorrectly decide that it doesn't match.<br>
If it's systemd-udevd using libblkid to do this, then that can result in<br>
udev removing devlinks that it thinks don't exist any longer, even<br>
though the device is still present.  (E.g. if libblkid doesn't find a<br>
filesystem, then it doesn't return the label property, and a label<br>
property disappearing can result in udev removing that devlink).<br>
<br>
The mount of /boot fails, because it's trying to use a<br>
/dev/disk/by-label path, and that path sometimes disappears because of<br>
the bug.  This subsequently results in packaging operations and anything<br>
else that interacts with /boot failing.  (Usually update-grub related).<br>
<br>
We've also seen the root disk have this problem, though the failure<br>
there was more subtle.  The device mounted, but a subsequent mkinitramfs<br>
failed during a kernel package install, because of missing<br>
/dev/disk/by-label links.<br>
<br>
I've fixed the bug in libblkid and gotten the fix merged upstream.<br>
We've also patched this locally in our own version of util-linux.  I've<br>
attached a patch to the bug report which is the version of the fix we<br>
used against the Noble packages.  We haven't seen the problem reproduce<br>
since rolling this out.<br>
<br>
The underlying problem affects util-linux >= 2.39.  Would it be possible<br>
for somebody to pull this patch into the affected Ubuntu util-linux<br>
versions?<br>
<br>
Thanks,<br>
<br>
-K<br>
<br>
-- <br>
Ubuntu-devel-discuss mailing list<br>
<a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
</blockquote></div>