Bug 360429

Summary: unhandled ioctl 0x530d with no size/direction hints (CDROMREADMODE1)
Product: [Developer tools] valgrind Reporter: Vasantha Ganesh K <vasanthaganesh.k>
Component: generalAssignee: Ivo Raisr <ivosh>
Status: RESOLVED FIXED    
Severity: normal CC: cpigat242, ivosh, vasanthaganesh.k
Priority: NOR    
Version First Reported In: 3.11.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: its a patch and fixes the error

Description Vasantha Ganesh K 2016-03-12 05:58:16 UTC
ioctl 0x530d is not supported by valgrind

Reproducible: Always

Steps to Reproduce:
1.run this code with valgrind http://pastebin.com/xK2aX0re
2.
3.

Actual Results:  
==6713== Warning: noted but unhandled ioctl 0x530d with no size/direction hints.
==6713==    This could cause spurious value errors to appear.
==6713==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.


Expected Results:  
it should not have issued the warning
Comment 1 Vasantha Ganesh K 2016-03-12 06:03:14 UTC
Created attachment 97850 [details]
its a patch and fixes the error

I added some switch cases to PRE() and POST()
Comment 2 Ivo Raisr 2017-05-10 23:00:33 UTC
The attached patch is missing definition for VKI_CDROMREADMODE1.
However it's obvious so I've added it at the right place in vki-linux.h.
Comment 3 Ivo Raisr 2017-05-10 23:14:52 UTC
Committed in Valgrind SVN as r16358.