Re: [REGRESSION] usb: gadget: u_ether NULL deref in eth_stop after gether_detach_gadget

From: Greg Kroah-Hartman

Date: Wed May 27 2026 - 04:04:32 EST


On Tue, May 26, 2026 at 08:56:15AM +0300, Ivaylo Dimitrov wrote:
> on linux 6.18.31 I am seeing a NULL pointer dereference during RNDIS gadget
> teardown.

Does this also happen on the latest 7.1-rc release?

> I suspect the reason is commit:
>
> usb: gadget: f_ncm: Fix net_device lifecycle with device_move

Do you have a proposed fix for this issue?

thanks,

greg k-h