Bug 1479857 - cryptsetup: Fix for unaligned access to hidden truecrypt header caused regression on systems with pagesize > 4KiB
cryptsetup: Fix for unaligned access to hidden truecrypt header caused regres...
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cryptsetup (Show other bugs)
ppc64le Linux
high Severity high
: rc
: 7.5
Assigned To: Ondrej Kozina
Release Test Team
: Patch, Regression, ZStream
Depends On: 1435543
Blocks: 1399177 1438583 1522983 1479858 1510841
  Show dependency treegraph
Reported: 2017-08-09 11:01 EDT by Ondrej Kozina
Modified: 2018-04-10 12:39 EDT (History)
12 users (show)

See Also:
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)
Last Closed: 2018-04-10 12:38:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
IBM Linux Technology Center 157487 None None None 2017-08-10 09:39 EDT
Red Hat Product Errata RHBA-2018:0915 None None None 2018-04-10 12:39 EDT

  None (edit)
Description Ondrej Kozina 2017-08-09 11:01:45 EDT
+++ 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 11:39:44 EST
This bug has been copied as 7.4 z-stream (EUS) bug #1510841

Thank You
Joe Kachuck
Comment 6 Peter Kotvan 2017-11-14 04:14:34 EST
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 12:38:50 EDT
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.


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