From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0D3EC43334 for ; Wed, 15 Jun 2022 07:41:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346773AbiFOHlD (ORCPT ); Wed, 15 Jun 2022 03:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243934AbiFOHlA (ORCPT ); Wed, 15 Jun 2022 03:41:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C64B3AA6E for ; Wed, 15 Jun 2022 00:40:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29A0C618F5 for ; Wed, 15 Jun 2022 07:40:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F81AC341C5; Wed, 15 Jun 2022 07:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655278858; bh=hoIk4nSZKSUgOeeJkohO5SOkmhY2HlMd4RFU6ZcXnlQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qOhpnVHKbXmQuvQ8jU61HMxvpc0pynX2MIruxMkRknS+Bxu8HOEWpGOAdBOXCntQ4 5ntfaTOZA5XwDRS7df+6ee1kpgeREfm+LNFpjGRtHOwSc1Tru2rxQSqycxee+dHSzd xhaebeXF61vrXbvf0d8/nmuladeY1JRVOY+Si6QI= Date: Tue, 14 Jun 2022 20:44:20 +0200 From: Greg Kroah-Hartman To: Will McVicker Cc: "Rafael J. Wysocki" , Tejun Heo , "Cc: Android Kernel" , Christoph Hellwig , Linux Kernel Mailing List Subject: Re: [PATCH v1] sysfs: fix sysfs_kf_seq_show null pointer dereference Message-ID: References: <20220614172401.3010509-1-willmcvicker@google.com> 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 Tue, Jun 14, 2022 at 11:38:27AM -0700, Will McVicker wrote: > On Tue, Jun 14, 2022 at 10:31 AM Greg Kroah-Hartman < > gregkh@linuxfoundation.org> wrote: > > > > On Tue, Jun 14, 2022 at 05:24:01PM +0000, Will McVicker wrote: > > > When the kobj->ktype is null, > > > > How can that happen? What in-tree code does that? > > This kernel panic happens randomly for me. The call trace shows that this > happens when the read syscall is invoked by Android. GDB gave me this line > when disassembling __arm64_sys_read+0x20/0x30: > > fs/read_write.c:628 > SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) What sysfs file is it reading? Any hint about that? thanks, greg k-h