]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Handle the CDROM_DISC_STATUS ioctl.
authorTom Hughes <tom@compton.nu>
Thu, 26 Jun 2014 11:11:56 +0000 (11:11 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 26 Jun 2014 11:11:56 +0000 (11:11 +0000)
Patch from Daniel Kamil Kozar via BZ#333788.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14106

NEWS
coregrind/m_syswrap/syswrap-linux.c
docs/internals/3_9_BUGSTATUS.txt
include/vki/vki-linux.h

diff --git a/NEWS b/NEWS
index 142638ea207ad6805c64d749555f706de7792fd1..08b4de26f5f924292aa40477b08fa373bf05408f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -153,6 +153,7 @@ where XXXXXX is the bug number as listed below.
 333230  AAarch64 missing instruction encodings: dc, ic, dsb.
 333428  ldr.w pc [rD, #imm] instruction leads to assertion
 333666  Recognize MPX instructions and bnd prefix.
+333788  Valgrind does not support the CDROM_DISC_STATUS ioctl (has patch)
 334049  lzcnt fails silently (x86_32)
 334705  sendmsg and recvmsg should guard against bogus msghdr fields.
 334727  Build fails with -Werror=format-security
index dfbe2609129becbd8ea337f6a44dbd2fe846bcb7..ea9f9841dff11e67081b844488d9045d47012a7b 100644 (file)
@@ -5540,6 +5540,9 @@ PRE(sys_ioctl)
       /* SCSI no operand */
    case VKI_SCSI_IOCTL_DOORLOCK:
    case VKI_SCSI_IOCTL_DOORUNLOCK:
+   
+   /* CDROM stuff. */
+   case VKI_CDROM_DISC_STATUS:
 
    /* KVM ioctls that dont check for a numeric value as parameter */
    case VKI_KVM_S390_ENABLE_SIE:
@@ -7499,6 +7502,8 @@ POST(sys_ioctl)
       break;
 
       /* CD ROM stuff (??)  */
+   case VKI_CDROM_DISC_STATUS:
+      break;
    case VKI_CDROMSUBCHNL:
       POST_MEM_WRITE(ARG3, sizeof(struct vki_cdrom_subchnl));
       break;
index 62b0f08db0b591a421ecc71efa62865a0f1ff6c8..449865d43852952717bfacc9724b97eba00c44c8 100644 (file)
@@ -57,7 +57,6 @@ For bugs reported before this time, see 3_8_BUGSTATUS.txt
 333434  In some weird corner case Valgrind cannot execute
         executable files symlinked by /proc/self/fd (related to 331311?)
 333051  handling hugepages (is largely broken)
-333788  Valgrind does not support the CDROM_DISC_STATUS ioctl (has patch)
 333817  Valgrind reports the memory areas written to by the SG_IO
         ioctl as untouched
 334585  recvmmsg unhandled (+patch) (arm)
index e386292c8d7aa270b3343274ac83b967e5118bd9..c5d60e34b6b8c52fae776862964a46b4204e5eff 100644 (file)
@@ -1838,6 +1838,7 @@ struct vki_scsi_idlun {
                                                   (struct cdrom_read) */
 #define VKI_CDROM_CLEAR_OPTIONS                0x5321  /* Clear behavior options */
 #define VKI_CDROM_DRIVE_STATUS         0x5326  /* Get tray position, etc. */
+#define VKI_CDROM_DISC_STATUS          0x5327  /* get CD type information */
 #define VKI_CDROM_GET_CAPABILITY       0x5331  /* get capabilities */
 
 #define VKI_CDROM_SEND_PACKET          0x5393  /* send a packet to the drive */