1. Please describe the problem: Since kernel 5.6.8 the handling of loop devices seems to be partially broken - after setting up a loop device kernel complain about failing to read its partition table and the loop device is loaded as unpartitioned, which is incorrect. With kernel 5.7.0 the issue seems to be gone, but the warnings are still present, which isn't reassurring. 2. What is the Version-Release number of the kernel: kernel-5.6.8-300.fc32 3. Did it work previously in Fedora? If so, what kernel version did the issue *first* appear? Old kernels are available for download at https://koji.fedoraproject.org/koji/packageinfo?packageID=8 : From what I've experienced so far on Arch Linux, the culprit seems to be 5.6.8, as with 5.6.7 everything works far. However, on Fedora I've tested it so far only on 5.6.2 (from the pre-5.6.8 kernels) where it also works as it should. 4. Can you reproduce this issue? If so, please provide the steps to reproduce the issue below: # dd if=/dev/zero of=/disk.img bs=1M count=100 # losetup --show -P -f /disk.img /dev/loop0 # printf ",10M\n,\n" | sfdisk /dev/loop0 ... Device Boot Start End Sectors Size Id Type /dev/loop0p1 2048 22527 20480 10M 83 Linux /dev/loop0p2 22528 204799 182272 89M 83 Linux The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. # dmesg | tail ... [ 606.892705] loop_reread_partitions: partition scan of loop1 (/disk.img) failed (rc=-16) [ 611.236442] __loop_clr_fd: partition scan of loop0 failed (rc=-16) [ 611.985511] loop_reread_partitions: partition scan of loop0 (/disk.img) failed (rc=-16) [ 630.835052] loop0: p1 p2 # losetup -d /dev/loop0 # losetup --show -P -f /disk.img /dev/loop0 # lsblk /dev/loop0 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 100M 0 loop # dmesg | tail ... [ 695.772141] loop_reread_partitions: partition scan of loop0 (/disk.img) failed (rc=-16) # blockdev --rereadpt /dev/loop0 # lsblk /dev/loop0 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 100M 0 loop ├─loop0p1 259:0 0 10M 0 part └─loop0p2 259:1 0 89M 0 part 5. Does this problem occur with the latest Rawhide kernel? To install the Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by ``sudo dnf update --enablerepo=rawhide kernel``: As mentioned above, in Rawhide with 5.7.0 the issue seems to be gone, but the kernel warnings are still present. 6. Are you running any modules that not shipped with directly Fedora's kernel?: No
Looks like the issue is fixed in kernel 5.6.y by this patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.6.y&id=17d02cdd39c9c58d890214f92b9899d600ecc087, see https://bugs.archlinux.org/task/66526.
I gave kernel-5.6.11-300.fc32.x86_64 (updates-testing) a spin a looks like the issue is fixed there.
FEDORA-2020-c7c77680c2 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c7c77680c2
FEDORA-2020-c7c77680c2 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
This message is a reminder that Fedora 32 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '32'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 32 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.