RE: must hold the driver_input_lock in hid_debug_rdesc_show

2019-03-19 Thread He, Bo
-in...@vger.kernel.org; linux-kernel@vger.kernel.org; Zhang, Jun ; Zhang, Yanmin Subject: Re: must hold the driver_input_lock in hid_debug_rdesc_show On Thu, 14 Mar 2019, He, Bo wrote: > we see the below kernel panic logs when run suspend resume test with > usb mouse and usb keyboard connected. > >

Re: must hold the driver_input_lock in hid_debug_rdesc_show

2019-03-19 Thread Jiri Kosina
On Thu, 14 Mar 2019, He, Bo wrote: > we see the below kernel panic logs when run suspend resume test with > usb mouse and usb keyboard connected. > > the scenario is the userspace call the hid_debug_rdesc_show to dump > the input device while the device is removed. the patch > hold the

must hold the driver_input_lock in hid_debug_rdesc_show

2019-03-13 Thread He, Bo
we see the below kernel panic logs when run suspend resume test with usb mouse and usb keyboard connected. the scenario is the userspace call the hid_debug_rdesc_show to dump the input device while the device is removed. the patch hold the driver_input_lock to avoid the race. [ 5381.757295]