Re: [PATCH 1/1] comedi: ni_usb6501: fix transfer-buffer overflows
From: Greg Kroah-Hartman
Date: Sun Jun 05 2022 - 08:50:13 EST
On Sun, Jun 05, 2022 at 08:43:22PM +0800, Xiaohui Zhang wrote:
> From: xiaohuizhang98 <ruc_zhangxiaohui@xxxxxxx>
>
> We detected a suspected bug with our code clone detection tool.
What tool exactly?
Please read Documentation/process/researcher-guidelines.rst for how to
write a good changelog when you are using automated tools like this.
>
> Similar to the handling of vmk80xx_alloc_usb_buffers in commit
> a23461c47482("comedi: vmk80xx: fix transfer-buffer overflows"),
> we thought a patch might be needed here as well.
>
> The driver uses endpoint-sized USB transfer buffers but up until
> recently had no sanity checks on the sizes.
>
> Signed-off-by: xiaohuizhang98 <ruc_zhangxiaohui@xxxxxxx>
I strongly doubt you sign legal documents like "xiaohuizhang98", right?
thanks,
greg k-h