[8004] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

ioctl clash: CDROMAUDIOBUFSIZ and SCSI_IOCTL_GET_IDLUN

daemon@ATHENA.MIT.EDU (Douglas Gilbert)
Sat Feb 5 14:29:55 2000

Message-ID: <389C7A31.A9CAB4CA@interlog.com>
Date:   Sat, 05 Feb 2000 14:29:53 -0500
From: Douglas Gilbert <dgilbert@interlog.com>
MIME-Version: 1.0
To: Linux SCSI list <linux-scsi@vger.rutgers.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

When I thought my code was sending a SCSI_IOCTL_GET_IDLUN ioctl
to a scsi device, strace reported that I had sent a
CDROMAUDIOBUFSIZ ioctl!

The IDLUN ioctl is defined in include/scsi/scsi.h with the
associated value of 0x5382 and the other one is defined in
include/linux/cdrom.h with the same value. Both lk 2.2.14
and 2.3.42 have this problem which has probably been there
for a while.

Is this harmless or dangerous? If it is dangerous is the
AUDIO one used (much) and could it be moved? Note that
the scsi mid level uses other ioctl numbers close to the
problematic one (eg 0x5283...0x5386) so be careful with
new DVD ioctls.


Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post