Re: [PATCH] usbip: usbip_host: Fix null pointer dereference in rebind_store
From: Greg KH
Date: Thu Aug 06 2026 - 01:44:13 EST
On Thu, Aug 06, 2026 at 11:06:51AM +0530, Jeffin Philip wrote:
> On Thu, Aug 06 2026, Greg KH wrote:
> >What prevents bid->udev from becoming NULL right after you checked this?
> We could use usb_get_dev() and hold a reference to udev when the busid_lock
> is being held and then release it after do_rebind, or would that be incorrect?
I do not know, try it and see!
> >How was this tested?
> The method to reproduce it is in the same thread.
How is this just now an issue? What changed to cause it to suddenly
start happening, or has this codepath never been tested?
thanks,
greg k-h