Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp543598pxf; Wed, 17 Mar 2021 10:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqPUaoOuYip6d1B0YqNBXUy4CnPyOSDk3Y6VPSqoDiVcYGwzGR2dC8QM1TYcLFaF2ZtbVN X-Received: by 2002:a05:600c:190c:: with SMTP id j12mr4676888wmq.133.1616000936467; Wed, 17 Mar 2021 10:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616000936; cv=none; d=google.com; s=arc-20160816; b=cyshhR3th/arXumbzbT5S4N/OSsuogmLknFUJFoCw8CTwmNBblM4prPqkt6UXlWNuA viwyL87IPeF6dFBdzDrwOjS/hwnP4ksySr/oKU7YUsDoLCAwJB+7rSEcBWciVENfdDQ+ zjI3s1aoLWtCckymTerfbhnDsD6kBr46Shh67qaJu5ZjIjDuLyV8GaLq/ka2SGeRk0Tj CLQJh0e65iJESdUiGBU3IEYkCZg4oWrUDe/w0NBwsYS9PlWOabGn3lrlapbESx+r83TQ cAo+etHUnPmoOnveTbacqCuoT5e610Ew61tOV64YbqmCbbpBoE1UJHF3e78rQvfH3Ga1 48BA== 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=XmIUv5r6oJR7UxrC4EqixfjoWscK6Z84STdkyU0g1XY=; b=acOmzUZ1+4qPVzvswIhzSOzFXrE1pEnLecxrCAExt6BNgnV0mymAms94BtailCdF2Q JKXDDf5/XI2IkA4rs4OiG2CA2OHHWurmvuNjY59d/XxIr12D1lDRaZ8MnE3hao6YSlEf av0u2l2pd3EVNTBZAyIUhsoLXCojakJUYI8L/Pi9O4yhYqX9DBU3mGr/BZKp2LIOb4iK IWv/sLtFVLW0i9zbkJipaiSKeyx7/9OFlt+7AQV+wqgnkLNry+WIP/xy4sKQPTLZOJ1m tCkBnSIsnHZExRB5H3ZronQPZ5bROpQTfvpIJU+c/a2BfFVIwqXSwxEPeOAvBJ/0WVtC kWRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c+Ia7ho3; 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 n18si16691533edt.3.2021.03.17.10.08.24; Wed, 17 Mar 2021 10:08: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=c+Ia7ho3; 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 S230045AbhCQMyY (ORCPT + 99 others); Wed, 17 Mar 2021 08:54:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:33874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbhCQMyI (ORCPT ); Wed, 17 Mar 2021 08:54:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D29764F18; Wed, 17 Mar 2021 12:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615985636; bh=CVep1gbTRjB+20m1ldxk7nAxwnahqYPj6MrXsgFKflU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c+Ia7ho3BJjFBeMI2Egh7Zx9fvN/L8WcXrUhW9ph740iN/61320WJXT/EFP7xg6Ng j7QOl03dNCiTNjbmjzB3vmb8jrrNF4j4saNJkAsNz1i4r5GSZvBp78L4kNzDqudBdL py49RkV9imRMSnaQtABut0pOlV2T60UlOf7BLyb4= Date: Wed, 17 Mar 2021 13:53:53 +0100 From: Greg Kroah-Hartman To: Naresh Kamboju Cc: open list , linux-usb@vger.kernel.org, lkft-triage@lists.linaro.org, Alan Stern , "Gustavo A. R. Silva" , Jason Yan , "Ahmed S. Darwish" , Oliver Neukum , Eugeniu Rosca , Arnd Bergmann , Anders Roxell Subject: Re: BUG: KFENCE: memory corruption in usb_get_device_descriptor Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 04:56:15PM +0530, Naresh Kamboju wrote: > On Wed, 17 Mar 2021 at 15:34, Greg Kroah-Hartman > wrote: > > > > On Wed, Mar 17, 2021 at 02:28:40PM +0530, Naresh Kamboju wrote: > > > While booting Linux mainline master 5.12.0-rc2 and 5.12.0-rc3 on arm64 > > > Hikey device the following KFENCE bug was found. > > > > > > Recently, we have enabled CONFIG_KFENCE=y and started seeing this crash. > > > kernel BUG log: > > > > What USB traffic are you having here? > > This is getting triggered while booting the device. > We are not running any traffic. Ah, so this is device probe time. > > And has this ever not triggered? > > No. > It was not triggered before. > Since CONFIG_KFENCE=y is added to our builds recently we are able to > reproduce always on recent builds. > > Steps to reproduce: > 1) Build arm64 kernel Image with this given config. > - tuxmake --runtime podman --target-arch arm64 --toolchain gcc-9 > --kconfig defconfig --kconfig-add > https://builds.tuxbuild.com/1pfztfszUNcDwOAyMrw2wPMKNfc/config > 2) Boot arm64 hikey hi6220 device > 3) While booting the device you will get to see this kernel BUG: > > [ 18.243075] BUG: KFENCE: memory corruption in > usb_get_device_descriptor+0x80/0xb0 > [ 18.813861] BUG: KFENCE: memory corruption in > __usbnet_read_cmd.isra.0+0xd0/0x1a0 There was a warning before this, from the hub code, when reading from this device as well. Perhaps this is just a side affect of the real memory corruption issue somewhere else? Bisection would be nice, but I'm placing odds on this always being an issue here in this driver code... thanks for the report. greg k-h