* Re: linux-next: Tree for Feb 2 (drivers/md/dm.c) [not found] <20170202182117.73e354f1@canb.auug.org.au> @ 2017-02-02 17:58 ` Randy Dunlap 2017-02-02 18:29 ` Mike Snitzer 0 siblings, 1 reply; 4+ messages in thread From: Randy Dunlap @ 2017-02-02 17:58 UTC (permalink / raw) To: Stephen Rothwell, linux-next Cc: linux-kernel, dm, Mike Snitzer, Alasdair G Kergon On 02/01/17 23:21, Stephen Rothwell wrote: > Hi all, > > Changes since 20170201: > on x86_64: drivers/built-in.o: In function `dm_blk_ioctl': dm.c:(.text+0x1a5121): undefined reference to `scsi_verify_blk_ioctl' # CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSGLIB is not set -- ~Randy ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: Tree for Feb 2 (drivers/md/dm.c) 2017-02-02 17:58 ` linux-next: Tree for Feb 2 (drivers/md/dm.c) Randy Dunlap @ 2017-02-02 18:29 ` Mike Snitzer 2017-02-02 18:44 ` [dm-devel] " Christoph Hellwig 0 siblings, 1 reply; 4+ messages in thread From: Mike Snitzer @ 2017-02-02 18:29 UTC (permalink / raw) To: Randy Dunlap Cc: Stephen Rothwell, linux-next, linux-kernel, dm, Alasdair G Kergon, hch On Thu, Feb 02 2017 at 12:58pm -0500, Randy Dunlap <rdunlap@infradead.org> wrote: > On 02/01/17 23:21, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20170201: > > > > on x86_64: > > drivers/built-in.o: In function `dm_blk_ioctl': > dm.c:(.text+0x1a5121): undefined reference to `scsi_verify_blk_ioctl' 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-devel] linux-next: Tree for Feb 2 (drivers/md/dm.c) 2017-02-02 18:29 ` Mike Snitzer @ 2017-02-02 18:44 ` Christoph Hellwig 2017-02-02 20:19 ` Paolo Bonzini 0 siblings, 1 reply; 4+ messages in thread From: Christoph Hellwig @ 2017-02-02 18:44 UTC (permalink / raw) To: Mike Snitzer Cc: Randy Dunlap, Stephen Rothwell, linux-kernel, hch, dm, linux-next, Alasdair G Kergon, Paolo Bonzini 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-devel] linux-next: Tree for Feb 2 (drivers/md/dm.c) 2017-02-02 18:44 ` [dm-devel] " Christoph Hellwig @ 2017-02-02 20:19 ` Paolo Bonzini 0 siblings, 0 replies; 4+ messages in thread From: Paolo Bonzini @ 2017-02-02 20:19 UTC (permalink / raw) To: Christoph Hellwig, Mike Snitzer Cc: Randy Dunlap, Stephen Rothwell, linux-kernel, dm, linux-next, Alasdair G Kergon On 02/02/2017 10:44, Christoph Hellwig wrote: > 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. I would certainly be fine with that. It would not be surprising if something broke, but a middle ground could be to allow all ioctls if you have CAP_SYS_RAWIO and none if you don't. Paolo ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-02 20:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170202182117.73e354f1@canb.auug.org.au>
2017-02-02 17:58 ` linux-next: Tree for Feb 2 (drivers/md/dm.c) Randy Dunlap
2017-02-02 18:29 ` Mike Snitzer
2017-02-02 18:44 ` [dm-devel] " Christoph Hellwig
2017-02-02 20:19 ` Paolo Bonzini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox