kernel BUG in new r8188eu

From: Larry Finger
Date: Fri Jul 30 2021 - 15:59:51 EST


Greg,

When I unplug the USB device with the driver loaded, I get the following BUG and my laptop freezes:

kernel: BUG: unable to handle page fault for address: ffffeb0200043248
kernel: #PF: supervisor read access in kernel mode
kernel: #PF: error_code(0x0000) - not-present page

The traceback points to a kfree() call. I do not understand this BUG. Can you explain what happens?

I think I know how to avoid the BUG, but that might be at the expense of a memory leak.

Thanks,

Larry