Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1479857

Summary: cryptsetup: Fix for unaligned access to hidden truecrypt header caused regression on systems with pagesize > 4KiB
Product: Red Hat Enterprise Linux 7 Reporter: Ondrej Kozina <okozina>
Component: cryptsetupAssignee: Ondrej Kozina <okozina>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 7.5CC: agk, bugproxy, hannsj_uhl, jbrassow, jkachuck, jstodola, mbroz, okozina, pkotvan, prajnoha, release-test-team-automation, rhandlin
Target Milestone: rcKeywords: Patch, Regression, ZStream
Target Release: 7.5   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: cryptsetup-1.7.4-4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1435543
: 1479858 1510841 (view as bug list) Environment:
Last Closed: 2018-04-10 16:38:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1435543    
Bug Blocks: 1399177, 1438583, 1479858, 1510841, 1522983    

Description Ondrej Kozina 2017-08-09 15:01:45 UTC
+++ This bug was initially created as a clone of Bug #1435543 +++

- A bugfix for bug #1435543 exposed bug in internal blockwise routines of libcryptsetup (it's a regression in 7.4)

it fails if page size is >4k and we use image in file 
(aligned read fail because it expects file image aligned to the page size. Similar problem is for write, but write code is never called in cryptsetup (truecrypt header support is read-only))

The bug only affects luks headers stored in regular files. Block devices are not affected.

Note: it's related to all archs with page size > 4 KiB, not only ppc64le

Comment 5 Joseph Kachuck 2017-11-08 16:39:44 UTC
Hello,
This bug has been copied as 7.4 z-stream (EUS) bug #1510841

Thank You
Joe Kachuck

Comment 6 Peter Kotvan 2017-11-14 09:14:34 UTC
I was able to reproduce the bug on RHEL-7.3 GA with cryptsetup-1.7.2-1.el7 and verify it on RHEL-7.5-20171107.1 with cryptsetup-1.7.4-4.el7.

Comment 9 errata-xmlrpc 2018-04-10 16:38:50 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, 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-2018:0915