Bug 360429 - unhandled ioctl 0x530d with no size/direction hints (CDROMREADMODE1)
Summary: unhandled ioctl 0x530d with no size/direction hints (CDROMREADMODE1)
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.11.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Ivo Raisr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-12 05:58 UTC by Vasantha Ganesh K
Modified: 2017-05-10 23:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
its a patch and fixes the error (1.89 KB, patch)
2016-03-12 06:03 UTC, Vasantha Ganesh K
Details

Note You need to log in before you can comment on or make changes to this bug.
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.