Re: [PATCH] USB: core: limit access to rawdescriptors which were not allocated

2020-08-26 Thread Xu, Yanfei
On 8/26/20 2:00 AM, Alan Stern wrote: On Wed, Aug 26, 2020 at 12:16:59AM +0800, yanfei...@windriver.com wrote: From: Yanfei Xu When using systemcall to read the rawdescriptors, make sure we won't access to the rawdescriptors never allocated, which are number exceed the USB_MAXCONFIG.

Re: [PATCH] USB: core: limit access to rawdescriptors which were not allocated

2020-08-25 Thread kernel test robot
Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on usb/usb-testing] [also build test ERROR on balbi-usb/testing/next peter.chen-usb/ci-for-usb-next v5.9-rc2 next-20200825] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH] USB: core: limit access to rawdescriptors which were not allocated

2020-08-25 Thread kernel test robot
Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on usb/usb-testing] [also build test ERROR on balbi-usb/testing/next peter.chen-usb/ci-for-usb-next v5.9-rc2 next-20200825] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH] USB: core: limit access to rawdescriptors which were not allocated

2020-08-25 Thread Alan Stern
On Wed, Aug 26, 2020 at 12:16:59AM +0800, yanfei...@windriver.com wrote: > From: Yanfei Xu > > When using systemcall to read the rawdescriptors, make sure we won't > access to the rawdescriptors never allocated, which are number > exceed the USB_MAXCONFIG. > > Reported-by:

[PATCH] USB: core: limit access to rawdescriptors which were not allocated

2020-08-25 Thread yanfei.xu
From: Yanfei Xu When using systemcall to read the rawdescriptors, make sure we won't access to the rawdescriptors never allocated, which are number exceed the USB_MAXCONFIG. Reported-by: syzbot+256e56ddde8b8957e...@syzkaller.appspotmail.com Signed-off-by: Yanfei Xu ---