Bug 1687003 - Verity bit incorrectly reported by e2fsprogs-1.44.4-1.fc29
Summary: Verity bit incorrectly reported by e2fsprogs-1.44.4-1.fc29
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: e2fsprogs
Version: 29
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lukáš Czerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-08 21:10 UTC by Brian Behlendorf
Modified: 2019-04-18 22:19 UTC (History)
6 users (show)

Fixed In Version: e2fsprogs-1.44.6-1.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-18 22:19:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Brian Behlendorf 2019-03-08 21:10:48 UTC
Description of problem:

Fedora 29 currently provides e2fsprogs-1.44.4-1.fc29, this release accidentally
introduced a bug which results in `lsattr` always reporting that the  'V' verity
bit is set when the 'P' project inherit bit is set.

https://github.com/tytso/e2fsprogs/commit/7e5a95e3d59719361661086ec7188ca6e674f139

The fix for this was applied to the e2fsprogs-1.44.4-2 release.

https://github.com/tytso/e2fsprogs/commit/f2243f1bdcc3ce711157151805e7e78112bcd3bc

Can the version of e2fsprogs provided for Fedora 29 be updated to
e2fsprogs-1.44.4-2 or newer.  Pulling in the version from Fedora 30,
e2fsprogs-1.44.5-2, would resolve the issue.

https://koji.fedoraproject.org/koji/buildinfo?buildID=1185960


Version-Release number of selected component (if applicable):

e2fsprogs-1.44.4-1.fc29

How reproducible:

$ truncate -s 1G /var/tmp/disk
$ sudo losetup /dev/loop0 /var/tmp/disk
$ sudo mkfs.ext4 /dev/loop0
$ sudo tune2fs -O project -Q prjquota /dev/loop0
$ sudo mkdir /mnt/test
$ sudo mount /dev/loop0 -o prjquota /mnt/test
$ sudo chmod 777 /mnt/test
$ mkdir /mnt/test/dir

# Set projectid
$ chattr +P /mnt/test/dir


Actual results:

# Observe P and V bits are reported
$ lsattr -pd /mnt/test/dir
    0 --------------e--PV /mnt/test/dir

Expected results:

# Update e2fsprogs to 1.44.5-2
$ sudo dnf -y --disablerepo=* --enablerepo=rawhide upgrade e2fsprogs

$ Observe only P is set
$ lsattr -pd /mnt/test/dir
    0 --------------e--P- /mnt/test/dir

Comment 1 Fedora Update System 2019-04-04 05:43:30 UTC
e2fsprogs-1.44.6-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b4207428d3

Comment 2 Fedora Update System 2019-04-05 03:25:53 UTC
e2fsprogs-1.44.6-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b4207428d3

Comment 3 Fedora Update System 2019-04-18 22:19:32 UTC
e2fsprogs-1.44.6-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


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