Created attachment 304215 [details] Kernel OOPS on boot Hello, on my laptop with kernel 6.3.0 and 6.3.1 fails to correctly boot if the usb-c device "RTL8153 Gigabit Ethernet Adapter" is connected. If I unplug it, boot and the plug it in, everything works fine. This used to work fine with 6.2.10. HW: - Dell Inc. Latitude 7410/0M5G57, BIOS 1.22.0 03/20/2023 - Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter Call Trace (manually typed from the image, typos maybe be included) - bpf_dev_bound_netdeuv _unregister - unregister_netdevice_many_notify - unregister_netdevice_gueue - unregister_netdev - usbnet_disconnect - usb_unbind_interface - device_release_driver_internal - bus_remove_device - device_del - ? kobject_put - usb_disable_device - usb_set_configuration - rt18152_cfgselector_probe - usb_probe_device - really_probe - ? driver_probe_device - ... For the full output, please see the attached image.
lsusb: Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter and yes, I made a typo in the call trace, it is `rtl8152_cfgselector_probe`
Created attachment 304216 [details] lsusb -v, for the the device
I did not bisect it, but I think https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.3.1&id=ec51fbd1b8a2bca2948dede99c14ec63dc57ff6b is at least related, maybe.... feel free to correct me.
Forwarded the report to the developers: https://lore.kernel.org/regressions/ec4be122-e213-ca5b-f5d6-e8f9c3fd3bee@leemhuis.info/T/#u
Hi Bernard, are you able to compile your own kernel to see if this simple edit would fix the problem for you? diff --git a/kernel/bpf/offload.c b/kernel/bpf/offload.c index d9c9f45e3529..8a26cd8814c1 100644 --- a/kernel/bpf/offload.c +++ b/kernel/bpf/offload.c @@ -859,4 +859,4 @@ static int __init bpf_offload_init(void) return rhashtable_init(&offdevs, &offdevs_params); } -late_initcall(bpf_offload_init); +core_initcall(bpf_offload_init);
s/Bernard/Bernd/ apologies
Hi, I applied your patch to 6.3.0 and it works fine. I rebooted 3 times and it always worked. Just to be sure, I reverted the Patch and it failed again. So thanks for your work, it fixes my issue :)
Hello, since I saw that kernel 6.3.2 also had some bpf changes, I tried it. Vanilla 6.3.2: failed to boot Patch + 6.3.2: works fine Is there anything else that I can help you with? Something to test? Do you need any additional information?
Hello, I tested with 6.3.7 (which contains the fix https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.3.7&id=7e1ca7f01d872293ab1594c726922ff459830903) and can confirm that it works fine, thanks! :)