linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Ioctl warning for a partition
@ 2012-01-26 22:30 Jan Kara
  2012-01-26 23:01 ` Linus Torvalds
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kara @ 2012-01-26 22:30 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Linus Torvalds, LKML, linux-scsi, Jens Axboe, James Bottomley, mmarek

  Hello,

  with your patches (commit 0bfc96cb in particular) to limit ioctl on
partitions we get warning:
dd: sending ioctl 80306d02 to a partition!
because dd checks whether given device is a tape (it's MTIOCGET ioctl).
It's easy enough to silence the warning the same way as
CDROM_GET_CAPABILITY since the ioctl is safe but it's not so simple for
32-bit userspace.  MTIOCGET32 is defined only in fs/compat_ioctl.c so we
cannot easily add it to scsi_verify_blk_ioctl(). Any opinion how to cleanly
solve this? The only idea I had was to define compat structures and ioctl
numbers in a special header and use it both in fs/compat_ioctl.c and in
block/scsi_ioctl.c.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-01-28 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-26 22:30 Ioctl warning for a partition Jan Kara
2012-01-26 23:01 ` Linus Torvalds
2012-01-26 23:56   ` Michael Tokarev
2012-01-27 19:28     ` Henrique de Moraes Holschuh
2012-01-27 19:37       ` Henrique de Moraes Holschuh
2012-01-28 10:22       ` Paolo Bonzini
2012-01-28 14:41         ` Henrique de Moraes Holschuh
2012-01-27  8:35   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).