Re: [patch NOT added to 3.12 stable tree] Don't feed anything but regular iovec's to blk_rq_map_user_iov

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/13/2016, 04:24 PM, Greg KH wrote:
>>>> --- a/block/blk-map.c
>>>> +++ b/block/blk-map.c
>>>> @@ -118,6 +118,9 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,
>>>>  	struct iov_iter i;
>>>>  	int ret;
>>>>  
>>>> +	if (!iter_is_iovec(iter))
>>>> +		goto fail;
>>>> +
...
>> I tried, but unfortunately, 3.12 has no iter_is_iovec :(.
> 
> And you can't "open code" it for 3.12 by just checking the bitfields?

Nope, blk_rq_map_user_iov above does not even have "const struct
iov_iter *iter" as a parameter yet. Instead, "struct sg_iovec *iov" is
there.

So maybe, the patch is not even needed. But whoever can tell me for
sure, please do so.

thanks,
-- 
js
suse labs
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]