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 X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54FA6C433E6 for ; Tue, 12 Jan 2021 12:10:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2917C2310D for ; Tue, 12 Jan 2021 12:10:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732528AbhALMJz (ORCPT ); Tue, 12 Jan 2021 07:09:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:42206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732067AbhALMJz (ORCPT ); Tue, 12 Jan 2021 07:09:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 109EC22EBE; Tue, 12 Jan 2021 12:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610453354; bh=BjPws1i1weYzP92AP8zwRfwAds6wuNY30VQS9MCx2Sg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SFiozoZly4P1DLQ20Kg5/Yo8rJohFinrFI8e2GqVhtlcq7MG1JmbQ/dPPzza0S09O L1L7W6/u4Cgag7CZX/leu14RPULl+LGQQ4k73kGAPNSD9kK0+kPekAXFE0GlcyDNLs zupW9oRwhlslFzZw43VJe3sMq5QXU++81mJin6fU= Date: Tue, 12 Jan 2021 13:10:23 +0100 From: Greg Kroah-Hartman To: Pintu Agarwal Cc: open list , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , landy.gross@linaro.org, David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, indranilghsh428@gmail.com Subject: Re: [BUG]: Kernel 4.9: Kernel crash at fs/sysfs/file.c : sysfs_kf_seq_show 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-arm-msm@vger.kernel.org On Tue, Jan 12, 2021 at 05:31:54PM +0530, Pintu Agarwal wrote: > Hi, > > I am using Kernel: 4.9.217 for one of the ARM32 boards for Qualcomm SOC. > https://github.com/android-linux-stable/msm-4.9 > > But I think this is a general bug applicable to :Kernel 4.9 under > fs/sysfs/file.c > So, I wanted to quickly check here if others are familiar with this > issue and if it is fixed already. > Note, this issue does not occur in 4.14 Kernel. > > When I execute below command, the Kernel is crashing. > I tried to add few debug prints to find more details. I see that the > ops->show pointer is not valid (seems corrupted). > So I wanted to understand how this can happen only for this particular node. > Other sysfs entries are working fine. > > # cat /sys/power/rpmh_stats/master_stats Also note that this file is not in the upstream kernel tree, so there's not much we can do about this either... good luck! greg k-h 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 X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4032FC433E9 for ; Tue, 12 Jan 2021 12:10:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F199323109 for ; Tue, 12 Jan 2021 12:10:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F199323109 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=38FQSgJSVKb33f3racEkBfoTPSqmag/7vdTL2FnOK+Y=; b=oiWctNXVcF6kctPqu9o+yQXn8 C9YT9bBozRErUvPSfSh1SZcSAec8/V1/CVozB7JPTb7mDh1GwE2WPWcfU9knuiaiimNkRThDoQ2oh fp0ETGHV2qyMQwrV9wvkTWahaFqwkdzlnIadj+hszFUvVBVS5oMdg/ffb5MO/GorZxWkGCMkaLnl1 SNHM5UfVBrxW3hZ0zvDFR9AFsvOQFqefUvrCijZWe6gLuGG8Yorr8txfxfskqGHWp2jI6D7GB7xEY PuCx3gewg8WHNcUmadt2/Nuk9PTVoLbW/C58DrEwIHHGjYHCpkQwi1TUpQyFQS5S+w9oi8qoc5N4/ O6CVbh0Jg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzIUB-00036e-OT; Tue, 12 Jan 2021 12:09:19 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzIU7-00035D-US for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2021 12:09:17 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 109EC22EBE; Tue, 12 Jan 2021 12:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610453354; bh=BjPws1i1weYzP92AP8zwRfwAds6wuNY30VQS9MCx2Sg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SFiozoZly4P1DLQ20Kg5/Yo8rJohFinrFI8e2GqVhtlcq7MG1JmbQ/dPPzza0S09O L1L7W6/u4Cgag7CZX/leu14RPULl+LGQQ4k73kGAPNSD9kK0+kPekAXFE0GlcyDNLs zupW9oRwhlslFzZw43VJe3sMq5QXU++81mJin6fU= Date: Tue, 12 Jan 2021 13:10:23 +0100 From: Greg Kroah-Hartman To: Pintu Agarwal Subject: Re: [BUG]: Kernel 4.9: Kernel crash at fs/sysfs/file.c : sysfs_kf_seq_show Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210112_070916_083224_D839B062 X-CRM114-Status: GOOD ( 15.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: indranilghsh428@gmail.com, linux-arm-msm@vger.kernel.org, open list , landy.gross@linaro.org, David Brown , linux-soc@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jan 12, 2021 at 05:31:54PM +0530, Pintu Agarwal wrote: > Hi, > > I am using Kernel: 4.9.217 for one of the ARM32 boards for Qualcomm SOC. > https://github.com/android-linux-stable/msm-4.9 > > But I think this is a general bug applicable to :Kernel 4.9 under > fs/sysfs/file.c > So, I wanted to quickly check here if others are familiar with this > issue and if it is fixed already. > Note, this issue does not occur in 4.14 Kernel. > > When I execute below command, the Kernel is crashing. > I tried to add few debug prints to find more details. I see that the > ops->show pointer is not valid (seems corrupted). > So I wanted to understand how this can happen only for this particular node. > Other sysfs entries are working fine. > > # cat /sys/power/rpmh_stats/master_stats Also note that this file is not in the upstream kernel tree, so there's not much we can do about this either... good luck! greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel