You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
I inherited a disk lower filter driver project that besides other things catches DeviceControl requests specifically IOCTL_SCSI_PASS_THROUGH and IOCTL_SCSI_PASS_THROUGH_DIRECT.
I just discovered a bug that caused the blue screen. In some cases the driver sets a completion routine with the idea of modifying some of the data before it is returned to the caller.
But the driver code is taking the user mode buffer pointer from the SCSI_PASS_THROUGH_DIRECT structure which is wrong.
Now my question is what is the right way to access that buffer safely in the driver completion routine?