Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1572644

Re: [dm-devel] linux-next: Tree for Feb 2 (drivers/md/dm.c)

From Christoph Hellwig <hch@infradead.org>
Newsgroups linux.kernel
Subject Re: [dm-devel] linux-next: Tree for Feb 2 (drivers/md/dm.c)
Date 2017-02-02 19:50 +0100
Message-ID <t6uCe-7FA-35@gated-at.bofh.it> (permalink)
References <t6k09-LQ-7@gated-at.bofh.it> <t6tPQ-77C-37@gated-at.bofh.it> <t6uiR-7xo-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Feb 02, 2017 at 01:29:16PM -0500, Mike Snitzer wrote:
> Are you trying to say that this happens using a certain .config?
> 
> Also, not sure why you didn't cc Christoph (or Jens) seeing as these
> changes are _not_ staged in linux-next by linux-dm.git.

No changes to dm caused this, it was me making the SCSI ioctl / request
code optional.  The tree apparently has nothing pulling in the SCSI
ioctls (SCSI, IDE, virtio, cciss, target, cdrom, etc).  It turns
out DM calls the SCSI ioctl verification functions, despite never
actually using SCSIO ioctls directly, which looks very odd (and which is
why I missed it).

Git-blame for these lines pointes to ... me.  Heh.  But I just moved the
code around, before that every target had a copy of it.  The original
calls seem to come from:

ec8013bedd ("dm: do not forward ioctls from logical volumes to the
underlying device"),

The trivial fix would be to add a select of the SCSI_REQUEST symbol
to dm, but my gut feeling teels me the call is simply wrong, and
should be removed and instead all ioctls on DM devices that don't
map to a full underlying devices should be rejected.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

linux-next: Tree for Feb 2 Stephen Rothwell <sfr@canb.auug.org.au> - 2017-02-02 08:30 +0100
  Re: linux-next: Tree for Feb 2 (drivers/md/dm.c) Randy Dunlap <rdunlap@infradead.org> - 2017-02-02 19:00 +0100
    Re: linux-next: Tree for Feb 2 (drivers/md/dm.c) Mike Snitzer <snitzer@redhat.com> - 2017-02-02 19:30 +0100
      Re: [dm-devel] linux-next: Tree for Feb 2 (drivers/md/dm.c) Christoph Hellwig <hch@infradead.org> - 2017-02-02 19:50 +0100
        Re: [dm-devel] linux-next: Tree for Feb 2 (drivers/md/dm.c) Paolo Bonzini <pbonzini@redhat.com> - 2017-02-02 21:30 +0100

csiph-web