* [Bug 531] New: cdrom ioctl CDROM_SEND_PACKET broken
@ 2003-04-02 16:50 Martin J. Bligh
0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-04-02 16:50 UTC (permalink / raw)
To: linux-kernel
http://bugme.osdl.org/show_bug.cgi?id=531
Summary: cdrom ioctl CDROM_SEND_PACKET broken
Kernel Version: 2.5.66+
Status: NEW
Severity: normal
Owner: bugme-janitors@lists.osdl.org
Submitter: pee@erkkila.org
Distribution: gentoo/other
Hardware Environment: amd/asus p4/intel
Software Environment:
Problem Description:
I think i've located the problem with doing generic commands
to atapi drives.
mmc_ioctl calls cdrom_do_cmd with it's own copy of cgc made
from IOCTL_IN
cdrom_do_cmd then does it's thing, and copies back into
the cgc from mmc_ioctl. And then returns, however mmc_ioctl
is returning immediatly w/o updating the user passed in cgc.
The pointers to return to user space never get updated, so if you
set all 1's in a cgc->buffer and send it in you will get all 1's back
as that buffer is not updated correctly. nor is the sense data.
It looks like the copy_to_user needs to move to mmc_ioctl, or mmc_ioctl
needs to update the user cgc correctly.
Steps to reproduce:
Run a small program that calls CDROM_SEND_PACKET, i'll attach one
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-02 16:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-02 16:50 [Bug 531] New: cdrom ioctl CDROM_SEND_PACKET broken Martin J. Bligh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®