Re: [PATCH V2] usb: musb: Check requset->buf before use to avoid crash issue

2023-11-13 Thread xingxing luo
On Wed, Nov 1, 2023 at 3:31 PM Greg KH wrote: > > On Wed, Nov 01, 2023 at 03:14:21PM +0800, Xingxing Luo wrote: > > When connecting USB to PC, there is a very low probability of kernel > > crash. The reason is that in ep0_txstate(), the buf member of struct > > usb_request used may be a null point

Re: [PATCH V2] usb: musb: Check requset->buf before use to avoid crash issue

2023-11-01 Thread Sergey Shtylyov
Hello! You have have a typo in the subject: s/requset/request/... MBR, Sergey

Re: [PATCH V2] usb: musb: Check requset->buf before use to avoid crash issue

2023-11-01 Thread Greg KH
On Wed, Nov 01, 2023 at 03:14:21PM +0800, Xingxing Luo wrote: > When connecting USB to PC, there is a very low probability of kernel > crash. The reason is that in ep0_txstate(), the buf member of struct > usb_request used may be a null pointer. Therefore, it needs to > determine whether it is null

Re: [PATCH V2] usb: musb: Check requset->buf before use to avoid crash issue

2023-11-01 Thread Greg KH
On Wed, Nov 01, 2023 at 03:14:21PM +0800, Xingxing Luo wrote: > When connecting USB to PC, there is a very low probability of kernel > crash. The reason is that in ep0_txstate(), the buf member of struct > usb_request used may be a null pointer. Therefore, it needs to > determine whether it is null

[PATCH V2] usb: musb: Check requset->buf before use to avoid crash issue

2023-11-01 Thread Xingxing Luo
When connecting USB to PC, there is a very low probability of kernel crash. The reason is that in ep0_txstate(), the buf member of struct usb_request used may be a null pointer. Therefore, it needs to determine whether it is null before using it. [ 4888.071462][T597@C0] Call trace: [ 4888.071467][