lkml.org 
[lkml]   [2021]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: kernel BUG in new r8188eu
    On Fri, Jul 30, 2021 at 02:59:44PM -0500, Larry Finger wrote:
    > 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?

    Is this a new regression due to the recent cleanups, or something that
    has always been here?

    As for the error, looks like someone is reading to an address that is
    in userspace without doing the proper copy_from_user() thing. Do you
    have a full traceback?

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

    That shouldn't be needed :)

    thanks,

    greg k-h

    \
     
     \ /
      Last update: 2021-07-31 07:38    [W:2.514 / U:0.160 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site