Re: [PATCH -next] [SCSI] Fix NULL pointer dereference in handling for passthrough commands

From: Bart Van Assche
Date: Sun Sep 05 2021 - 02:13:48 EST


On 9/3/21 23:45, Laibin Qiu wrote:
In passthrough path. If the command size for ioctl request from userspace
is 0. The original process will get cmd_len from cmd->cmnd, but It has
not been assigned at this time. So it will trigger a NULL pointer BUG.

A Friday night in the middle of the merge window is not the best time to post a kernel patch. Anyway:
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>