Bug 13641 - Fails to boot with encrypted filesystem
Summary: Fails to boot with encrypted filesystem
Status: CLOSED INVALID
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: LVM2/DM (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alasdair G Kergon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-28 09:12 UTC by Jean-Luc Coulon
Modified: 2009-07-01 10:36 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.31-rc1
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
.config (60.64 KB, application/octet-stream)
2009-06-28 09:22 UTC, Jean-Luc Coulon
Details
Boot log (9.83 KB, application/octet-stream)
2009-06-28 12:43 UTC, Jean-Luc Coulon
Details

Description Jean-Luc Coulon 2009-06-28 09:12:49 UTC
Distribution: Debian Sid
Architecture: X86_64
System: AMD64 x2 4200+
Last (tested) version wihtout this problem: 2.6.30
Still exists in 2.6.31-rc1-git3

I've not tested 2.6.30-git[*] 

-----
Hi

I've some filessytems using luks fir encryption.
The filesystem is XFS, over LVM2, over a raid1.
(/, /usr and /var are on an other unencrypted raid1) 

At boot, when I enter the passphrase, I've the following spurious messages:

---
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
Jun 25 13:53:23 tangerine kernel: device-mapper: table: 254:4: target device md2 is misaligned
---

Then it asks me again for the passĥrase.

After it gives up, I'm prompted for the root password and it doesnt accept it neither. 

Regards 

Jean-Luc
Comment 1 Jean-Luc Coulon 2009-06-28 09:22:43 UTC
Created attachment 22130 [details]
.config
Comment 2 Jean-Luc Coulon 2009-06-28 12:42:47 UTC
I've built several kernels from 2.6.30-git[*]

Everything is fine with the ones I've tested included 2.6.30-git22.
The problem appears from 2.6.31-rc1

I managed to boot it (the passphrase was probabmy a "who knows" problem with the keyboard map.

So I see that the message appears for all the md devices.

I attach an excerpt of dmesg.
Comment 3 Jean-Luc Coulon 2009-06-28 12:43:54 UTC
Created attachment 22132 [details]
Boot log
Comment 4 Mike Snitzer 2009-06-29 17:22:08 UTC
The following fix was posted to LKML and should be pulled in before 2.6.31 final:
http://lkml.org/lkml/2009/6/25/384

Patch header:
dm table: pass device's data start to blk_stack_limits() in bytes

The offset passed to blk_stack_limits() must be in bytes not sectors.
Fixes false warnings like the following:
device-mapper: table: 254:1: target device sda6 is misaligned

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Reported-by: Frans Pop <elendil@planet.nl>
Tested-by: Frans Pop <elendil@planet.nl>
Comment 5 Alasdair G Kergon 2009-06-30 09:51:05 UTC
So actually, it booted OK once the right passphrase was used, but the warning messages are bogus and fixed with the patch in comment #4.

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