Bug 18362
Summary: | Possible kernel memory corruption due to wrong usage of CDROM_SEND_PACKET | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Alexander Eichner (alexander.eichner) |
Component: | SCSI | Assignee: | linux-scsi (linux-scsi) |
Status: | NEW --- | ||
Severity: | normal | CC: | akpm, alan, frank.mehnert |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.32-23-generic | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Kernel log
The raw packet trace leading to the corruption. Every line is exactly one CDB Testcase |
Description
Alexander Eichner
2010-09-12 20:46:52 UTC
Created attachment 29682 [details]
The raw packet trace leading to the corruption. Every line is exactly one CDB
Created attachment 29692 [details]
Testcase
The testcase contains 3 files:
gen-cmd-trace.sh generates a header from the packet trace.
cmd_trace.h contains the output of the script
cd_passthrough_oops.c is the main source of the program.
Compile with: gcc -o test cd_passthrough_oops.c
Then insert an audio CD and execute ./test
You need read/write access to /dev/sr0 (if your device is named different change the path in the source accordingly).
The testcase was made rather quickly so it has a few rough edges :) You have to remove the last , in the generated header for example to make it compile.
|