All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Guido Guenther <agx@sigxcpu.org>
Cc: dm-devel@redhat.com, Alasdair G Kergon <agk@redhat.com>
Subject: Re: dm-ioctl on amd64 with 32bit userspace
Date: Wed, 19 Sep 2007 17:26:50 -0700	[thread overview]
Message-ID: <20070919172650.72df609f.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070917165726.GA11958@bogon.ms20.nix>

On Mon, 17 Sep 2007 18:57:26 +0200
Guido Guenther <agx@sigxcpu.org> wrote:

> using something like:
> 
> dmsetup message <mpath> 0 fail_if_no_path
> 
> on a 32 bit dmsetup with a amd64 kernel currently fails with:
>  "Invalid target message parameters."
> 
> since the structure padding is 8 bytes and so we're looking at a 4 byte
> to high address in target_message() - this also affects dev_rename() and
> dev_set_geometry(). The attached patch works around the problem but
> doesn't look like a proper fix. But since all the 32bit to 64bit ioctl
> conversion in device mapper seems a bit strange, I'm not sure where to
> fix this properly.
> 
> The bad thing about this is that multipath failover after a trespas on
> such a system won't work (among other things). This at least has been
> broken since 2.6.18 (I doubt it ever worked) and is still broken in
> 2.6.23-rc6-git7. With this patch, failover after a trespas and device
> renaming works as expected.

I don't understand why people aren't running around with their hair on fire
over this bug.    Is everyone running 64-bit dmsetup, or what?

This looks like 2.6.22 and 2.6.23 material to me.  Alasdair?

  reply	other threads:[~2007-09-20  0:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 16:57 dm-ioctl on amd64 with 32bit userspace Guido Guenther
2007-09-20  0:26 ` Andrew Morton [this message]
2007-09-20  1:24   ` Alasdair G Kergon
2007-09-20  7:07     ` Guido Guenther
2007-09-20 15:32 ` Alasdair G Kergon
2007-09-20 18:46   ` Guido Guenther
     [not found]     ` <20070929132754.GA19089@bogon.ms20.nix>
     [not found]       ` <20071002010519.GB18444@agk.fab.redhat.com>
     [not found]         ` <20071002071647.GA11183@bogon.ms20.nix>
2007-10-04 17:28           ` Alasdair G Kergon

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=20070919172650.72df609f.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=agk@redhat.com \
    --cc=agx@sigxcpu.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.