Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp26962pxy; Fri, 30 Jul 2021 22:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqahNrlOH4oK8SQMfDgLwPYXpmadlrXYdTv7gJgKGjjb2XL2+Z8sWv03NAXCLk/Jj5ehEP X-Received: by 2002:a05:6402:18c1:: with SMTP id x1mr7467055edy.145.1627709996842; Fri, 30 Jul 2021 22:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627709996; cv=none; d=google.com; s=arc-20160816; b=eGyIgaCvusAvrt87vsBa2UogX0Jw/7milrpDP8GNcnCjCLswL38WgIhX3yVc2VY/6p ykqprIGfxaZS0MjapVFNm6QvLZxJ7XnXI+wIucK8yWPwDyAFQyLY7JOeQLfZkbz0oByM zrGsMXpXEqKyIvVwAKQdfyuNsszlVgjea5Qu9/m3kDKpXgl4XnIXA4zLVtmk79GrpjmE P3auVeBTKRw++ZVxy35JW4E4NOWQjKpDrtJIrNGJC1QdSlgQjf7fJNvtp5jyqwxR8QmU 3h4KrFL13XFZfKUjL83IDJeVY2VRu1O3BCvBEcvGMjmOv8vy7THxr9l+1Gg2cj7aja04 Pczw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xiRUcCInsvvFfwgPizbWowbJXxCzjTUAAwce4xiTyQU=; b=hfTxGGKzmxgGLcGxgmBr/Y7fADK77jhN/2A/poVZgK+EzEsNfGPJ4Z/cS2wlMWzFhc ze331lYG9TxB5XzurJD2YBWx40qF0uUsUvq2lBvTBEaLk4+B9hzgi8ana/7rETW+JIgY OdebjhPAjfqzv6h254+oVrCLGzQMReMsoggUK7BM2UYbl6CsHLAyVC8ri3I6jYtna/GZ eYojkBZe9iFKVK2UzWjso+7ad0EeXR8ijmclPkj5YCSJlOIZ4ExYMJ2u7l/v0GjoKhxN OVXWYcyXQcqKzF1ASKEogPjJ59Zp9TqvCHouTeHGQyoD0uiElHnnNuVQO7N2Wqj2btct MapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wKqnh8Wu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox26si4589193ejb.426.2021.07.30.22.39.33; Fri, 30 Jul 2021 22:39:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wKqnh8Wu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231578AbhGaFhn (ORCPT + 99 others); Sat, 31 Jul 2021 01:37:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:39154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbhGaFhj (ORCPT ); Sat, 31 Jul 2021 01:37:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8F9E60F12; Sat, 31 Jul 2021 05:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627709853; bh=S3uexazbecHE/Hgv8ReBZYx8s/DUibwfmrnN3y8zAw4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wKqnh8WuJcKmWLQ2YEjFxgGx+a9IkBBsZSypBE3jI3KuAubPDIU98J7BsvV+4EyH5 2nY/tea7JezudGybI3Ly/3LOvCrYcEM0y6tVczrbFY7i0NHPnvrOZpbKWfXo4+sLTc n/exC2QoGvjcL8958RCgYdHv5uMLEKIVcftCQCbI= Date: Sat, 31 Jul 2021 07:37:31 +0200 From: Greg Kroah-Hartman To: Larry Finger Cc: LKML , linux-staging@lists.linux.dev Subject: Re: kernel BUG in new r8188eu Message-ID: References: <80042e9f-6811-38f3-010b-1c0951ba88db@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80042e9f-6811-38f3-010b-1c0951ba88db@lwfinger.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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