[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45889] cryptomount thinks locked device is: already mounted as cry

From: TJ
Subject: [bug #45889] cryptomount thinks locked device is: already mounted as cryptoX
Date: Sun, 06 Sep 2015 12:45:16 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0


                 Summary: cryptomount thinks locked device is: already mounted
as cryptoX
                 Project: GNU GRUB
            Submitted by: intuitivenipple
            Submitted on: Sun 06 Sep 2015 12:45:15 GMT
                Category: Security
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.02~beta1
         Reproducibility: Every Time
         Planned Release: None



Boot disk with 3 LUKS/dm-crypt GPT partitions

(hd0,gpt3) (hd0,gpt4) (hd0,gpt5)

grub is in (hd0,gpt3). The others have a LVM VG each.


I deliberately fail the first pass-phrase entry to get the rescue environment.
I then

cryptomount hd0,gpt3
(crypto0) device is now present and prefix/root are set correctly.

I insmod some other modules (exploring available functions) and

set debug=cryptodisk

I try to

cryptomount hd0,gpt4
cryptomount hd0,gpt4

and see the message

disk/cryptodisk.c:978: already mounted as crypto0

But ls shows only (crypto0)

source-code in grub-core/disk/cryptodisk.c shows 

dev = grub_cryptodisk_get_by_source_disk(disk)

must be returning a reference to the existing crypto0, which suggests a
problem in grub_cryptodisk_insert() or grub_cryptodisk_get_by_source_disk()


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]