[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YQThm1A0Up1m4l1S@kroah.com>
Date: Sat, 31 Jul 2021 07:37:31 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Larry Finger <Larry.Finger@...inger.net>
Cc: LKML <linux-kernel@...r.kernel.org>, linux-staging@...ts.linux.dev
Subject: Re: 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
Powered by blists - more mailing lists