Skip to contentSkip to conversation

New: Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

Bug 217399 [email protected] 1 participant 10 messages May 4, 2023 – Jun 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=217399

Bug ID: 217399
Summary: Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153
Gigabit Ethernet Adapter
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: USB
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Created attachment 304215
--> https://bugzilla.kernel.org/attachment.cgi?id=304215&action=edit
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.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

https://bugzilla.kernel.org/show_bug.cgi?id=217399

--- Comment #1 from Bernd Buschinski ([email protected]) --- 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

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

--- Comment #2 from Bernd Buschinski ([email protected]) --- Created attachment 304216
--> https://bugzilla.kernel.org/attachment.cgi?id=304216&action=edit
lsusb -v, for the the device

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

--- Comment #3 from Bernd Buschinski ([email protected]) --- 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.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

The Linux kernel's regression tracker (Thorsten Leemhuis) ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from The Linux kernel's regression tracker (Thorsten Leemhuis) ([email protected]) --- Forwarded the report to the developers:

https://lore.kernel.org/regressions/[email protected]/T/#u

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#5 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

Jakub Kicinski ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Jakub Kicinski ([email protected]) ---
Hi Bernard, are you able to compile your own kernel to see if this simple edit would fix the problem for you?

kernel/bpf/offload.c +1 -1
index d9c9f45e3529..8a26cd8814c1 100644
@@ -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);
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#7 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

--- Comment #7 from Bernd Buschinski ([email protected]) --- 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 :)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#8 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

--- Comment #8 from Bernd Buschinski ([email protected]) --- 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?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#9 lore raw

[Bug 217399] Kernel OOPS on boot with Kernel 6.3(.1) and RTL8153 Gigabit Ethernet Adapter

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217399

Bernd Buschinski ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #9 from Bernd Buschinski ([email protected]) --- 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! :)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.