RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2058176 - losetup Retry LOOP_SET_STATUS64 on EAGAIN
Summary: losetup Retry LOOP_SET_STATUS64 on EAGAIN
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: util-linux
Version: 8.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Radka Brychtova
URL:
Whiteboard:
: 2060388 (view as bug list)
Depends On:
Blocks: 2059212 2060388
TreeView+ depends on / blocked
 
Reported: 2022-02-24 12:38 UTC by Colin Walters
Modified: 2022-08-23 18:18 UTC (History)
8 users (show)

Fixed In Version: util-linux-2.32.1-35.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2059212 2060388 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:30:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-113662 0 None None None 2022-02-24 12:42:11 UTC
Red Hat Product Errata RHBA-2022:2100 0 None None None 2022-05-10 15:31:05 UTC

Description Colin Walters 2022-02-24 12:38:15 UTC
See https://github.com/openshift/os/issues/666#issuecomment-1049494630

TL;DR For FCOS/RHCOS we mount the rootfs with a non-zero offset, and that change is needed in order to make it not racy.

Comment 1 Micah Abbott 2022-02-28 14:22:13 UTC
Setting this to high severity as it is blocking the ability to properly test some ISO scenarios for RHCOS

Comment 3 Colin Walters 2022-03-01 16:50:04 UTC
It's worth considering if we can create a short-term workaround.  Which...I guess would be patching the code around here
https://github.com/coreos/fedora-coreos-config/commit/18a2c5182c8824021f246064cabf2fb665496df1#diff-45806cf5421d0e6b4fdf69598906a85020d1be4bf1fe430eae3eb040e097f8c4R117
to detect if util-linux is too old, and if so fall back to regenerating via e.g. dd if=rootfs.cpio skip=N ... ?

Or I guess we could just do the backport ourselves and ship an updated util-linux just in the AOS repo temporarily.

Comment 4 Karel Zak 2022-03-02 09:53:47 UTC
I have also extended this functionality in the upstream tree (commit http://github.com/util-linux/util-linux/commit/0ae7bb11c29aa11c8ef25b1ef2f82ee4701b856d).

I have no problem backporting it to 8.6 and 9.0, but the final result depends on QA capacity.

Comment 16 HuijingHei 2022-03-14 08:08:18 UTC
Build rchos 4.11(based on rhel8.6 latest repo with util-linux-2.32.1-35.el8.x86_64), test steps are according to Comment 10, mount command is not failed after running for 2 minutes.

@Karel, see logs like "loop_set_status: loop0 () has still dirty pages (nrpages=2)" in dmesg, could you help to confirm is this expected? Thanks!

Comment 17 Karel Zak 2022-03-14 08:55:19 UTC
(In reply to HuijingHei from comment #16)
> @Karel, see logs like "loop_set_status: loop0 () has still dirty pages
> (nrpages=2)" in dmesg, could you help to confirm is this expected? Thanks!

I guess yes, it's expected. This kernel message is used by the kernel on EAGAIN, and that's the situation
we try to address the patch (repeat the ioctl).

Comment 18 HuijingHei 2022-03-14 11:28:25 UTC
Thanks Karel for the confirmation

Comment 22 errata-xmlrpc 2022-05-10 15:30:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (util-linux bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2100

Comment 23 Karel Zak 2022-08-23 18:18:42 UTC
*** Bug 2060388 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.