DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: "Javier Juan Martínez Cabezón" <tazok.id0@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] exclusive flag trouble
Date: Mon, 12 Mar 2012 23:54:57 +0100	[thread overview]
Message-ID: <4F5E7EC1.6090903@redhat.com> (raw)
In-Reply-To: <4F5C7E0A.6060908@gmail.com>

On 03/11/2012 11:27 AM, Javier Juan Martínez Cabezón wrote:
>
>
> Hi until now I used a tool to make hidden partitions called scubed (is
> something like a partition tool that used cryptsetup to create the
> needed volumes (really old but worked fine)
>
> http://cube.dyndns.org/cgi-bin/viewvc.cgi/trunk/scubed.c?diff_format=l&sortdir=down&logsort=rev&sortby=log&view=markup&root=scubed
>
> - I get realized from this:
>
> http://code.google.com/p/cryptsetup/issues/detail?id=105
>
> With scubed you create five cryptsetup levels in the same device and
> with all unlocked you assign needed blocks to each of them with scubed)
>
> I haven't get troubles with this is able for example to create read only
> media (dvd+-r) with multiple ciphered layers.
>
> Here is the readme (with a mini tutorial):
> http://cube.dyndns.org/svn/scubed/trunk/README

hm.

# cryptsetup create scubed1 /dev/loop0
Enter passphrase:
# cryptsetup create scubed2 /dev/loop0
Enter passphrase:

This is exactly why exclusive checking is there - it is recipe
for data corruption if plaintext devices are wrongly accessed
(you write to one device but you will get data from cache for other).

Please can you add a new issue on cryptsetup project page to track that?
(I have currently no time to check it now but save it for later.)

I do not think I will reintroduce non-exclusive mode but I would like
to check how scubed works and possibly provide some workaround.
(IMHO if scubed creates private devices, it is fine, so maybe some patch
is the way to go.)

Thanks,
Milan

      reply	other threads:[~2012-03-12 22:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11 10:27 [dm-crypt] exclusive flag trouble Javier Juan Martínez Cabezón
2012-03-12 22:54 ` Milan Broz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F5E7EC1.6090903@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=tazok.id0@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox