On Thu, 2017-10-26 at 07:30 +0200, Bart Van Assche wrote:
> +static void virtblk_initialize_rq(struct request *req)
> +{
> + struct virtblk_req *vbr = blk_mq_rq_to_pdu(req);
> +
> + scsi_req_init(&vbr->sreq);
> +}
Please ignore v3 - the build fails with this version for
CONFIG_VIRTIO_BLK_S
Avoid that submitting an SG_IO ioctl triggers a kernel oops that
is preceded by:
usercopy: kernel memory overwrite attempt detected to (null) () (6 bytes)
kernel BUG at mm/usercopy.c:72!
Reported-by: Dann Frazier
Fixes: commit ca18d6f769d2 ("block: Make most scsi_req_init() calls implicit")
Sign