Linux Device Mapper development
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: Andreas Heinlein <aheinlein@gmx.com>
Subject: Re: Possible severe bug in the device mapper?
Date: Mon, 31 Jan 2011 12:13:09 +0100	[thread overview]
Message-ID: <4D469945.9000401@redhat.com> (raw)
In-Reply-To: <4D46811C.9050506@gmx.com>


On 01/31/2011 10:30 AM, Andreas Heinlein wrote:

> Expected behavior: Writing to the still mounted mapping should at least
> give an error

It should, at least the first flush must return error.

Reading from page cache will probably not hit DM code at all, so it 
is possible that you can read some data without failure.

Can you reproduce this on recent kernel? 2.6.32 is quite old and I expect
it is some heavy patches distro kernel.

> This does not happen with whole block devices as targets, which is AFAIK
> the case in most uses of the device mapper.

What do you mean by "whole block devices" here? Like not partitioned disk?

> Since this is reproducible with other device mapper targets, I am sure
> this is not a truecrypt problem. It might be related to udev, which
> AFAIK should notify higher levels when a device is removed.

Yes, Truecrypt uses dm-crypt here. Udev should get remove event and remove
all symlinks, also there can be some higher level (udisks) which forcily
removes crypt mapping when underlying device disappears.

But it still must return error on write when underlying device disappeared.

Milan

  reply	other threads:[~2011-01-31 11:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31  9:30 Possible severe bug in the device mapper? Andreas Heinlein
2011-01-31 11:13 ` Milan Broz [this message]
2011-01-31 11:20 ` Joe Thornber
2011-02-01  9:30   ` Andreas Heinlein
2011-02-01 10:03     ` Joe Thornber
2011-02-01 10:05     ` Zdenek Kabelac
2011-02-01 13:29       ` Andreas Heinlein

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=4D469945.9000401@redhat.com \
    --to=mbroz@redhat.com \
    --cc=aheinlein@gmx.com \
    --cc=dm-devel@redhat.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