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=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 077BEC433B4 for ; Fri, 21 May 2021 09:14:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD420613B6 for ; Fri, 21 May 2021 09:14:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234287AbhEUJPp (ORCPT ); Fri, 21 May 2021 05:15:45 -0400 Received: from muru.com ([72.249.23.125]:58332 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234120AbhEUJPp (ORCPT ); Fri, 21 May 2021 05:15:45 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id BA69880C0; Fri, 21 May 2021 09:14:26 +0000 (UTC) Date: Fri, 21 May 2021 12:14:19 +0300 From: Tony Lindgren To: Tomi Valkeinen Cc: linux-arm-kernel@lists.infradead.org, Nishanth Menon , "Bajjuri, Praneeth" , linux-omap@vger.kernel.org Subject: Re: Random stack corruption on v5.13 with dra76 Message-ID: References: <0f48c7e5-6acd-1143-35ef-3dea2255bec6@ideasonboard.com> <064a9324-cfcf-47b9-6ae3-a29085a52683@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <064a9324-cfcf-47b9-6ae3-a29085a52683@ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org * Tomi Valkeinen [210521 08:45]: > On 21/05/2021 10:39, Tony Lindgren wrote: > > * Tomi Valkeinen [210521 07:05]: > > > On 21/05/2021 08:36, Tony Lindgren wrote: > > > > * Tomi Valkeinen [210520 08:27]: > > > > > Hi, > > > > > > > > > > I've noticed that the v5.13 rcs crash randomly (but quite often) on dra76 evm > > > > > (I haven't tested other boards). Anyone else seen this problem? > > > > > > > > I have not seen this so far and beagle-x15 is behaving for me. > > > > > > > > Does it always happen on boot? > > > > > > No, but quite often. I can't really say how often, as it's annoyingly random. > > > I tried to bisect, but that proved to be difficult as sometimes I get multiple (5+) > > > successful boots before the crash. > > > > > > I tested with x15, same issue (below). So... Something in my kernel config? Or compiler? > > > Looks like the crash happens always very soon after (or during) probing palmas. > > > > After about 10 reboots with your .config I'm seeing it now too on > > beagle-x15. So far no luck reproducing it with omap2plus_defconfig. > > I think I have an easy way to see if a kernel is good or bad, by printing > stack_not_used(current) in the first call to omap_i2c_xfer_irq(). There's a > huge drop between v5.12 and v5.13-rc1. > > And interestingly, sometimes a simple printk seems to use hundreds of bytes > of stack (i.e. compare stack usage before and after the print). But not > always. So maybe the issue is somehow related to printk. > > I'm bisecting. OK sounds good to me. Thanks, Tony 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=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 D3163C433ED for ; Fri, 21 May 2021 09:16:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 99F4E613BB for ; Fri, 21 May 2021 09:16:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99F4E613BB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc: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=kyOUPLSaQOMpc2Kw9uR+DB0xLnHMFp9vFeZcAk4oVu0=; b=W+bfGcJrFNgwwj/LK1Ryt6lgjO PwEpL1amuJEQdP4430kGmkiO4Cv66CEjn5UD7LeGbCdYMjqTtcsbPIi2rmwE5lv/2qqcVUkXldVgC P0WbH0rpc5MLFbLec3GjxtfGaAvvNBRjm3PwiTWQiTTRgyQgsF+Xsoyf56R8NHMLg1krgOEMrrFT4 8sIxTUMmBMPj9zy8RTYkKBsbbpStL3e/3vO2B1y8TU6yvRPrD2sQGLBy6OQ3s1ReYX9uF+HJcyte6 ATpKD9eNPZzTFNXHtoT1elsb6RlvbSFkCcnDTEwlFU6yW3oiDGnQclKdHrnuDhc04oQC72YDr+JXn mACOmRlA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk1Ei-004eVQ-2N; Fri, 21 May 2021 09:14:28 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk1Ef-004eUd-9J for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 09:14:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VNdWzYnujMHNYwR5KuiVVkNkmJb6T4T1yLoMq1X2010=; b=hcAQEDjKKc/iVslmQEDJ/B6gCr +JJxiKoBsDmzQ0Li7Avj4/V+Rz9cOPqGZP1/IRNuQdLM0r9Nal0HpDugkV3poX9MmbO6aeAJTyov1 IvjEk9OSbkFhZ7PqcbV+m9z8JeiHmDAMm2OWAcf9b+tM5vtumo4eHqQSim7YAV+ExGNJ99e6A4CTh eeaZiaOL3RtmhaR4JQulzhcYpFSWE1o4Gu7VAcvpivuXjQ7Sdu0BnyhwCuxDVUBha0x47d72r5TwK 1bKiMgskK0lXkK6f4ua8iHEad7pBlWL8hHF9O6KjOqkSuEQrFC9xQISjgpKSUUKmbl+yaFT1mSFLH HnUPzGUA==; Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lk1Ec-00Gypl-QM for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 09:14:24 +0000 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id BA69880C0; Fri, 21 May 2021 09:14:26 +0000 (UTC) Date: Fri, 21 May 2021 12:14:19 +0300 From: Tony Lindgren To: Tomi Valkeinen Cc: linux-arm-kernel@lists.infradead.org, Nishanth Menon , "Bajjuri, Praneeth" , linux-omap@vger.kernel.org Subject: Re: Random stack corruption on v5.13 with dra76 Message-ID: References: <0f48c7e5-6acd-1143-35ef-3dea2255bec6@ideasonboard.com> <064a9324-cfcf-47b9-6ae3-a29085a52683@ideasonboard.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <064a9324-cfcf-47b9-6ae3-a29085a52683@ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_021422_913559_07C2A15E X-CRM114-Status: GOOD ( 21.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 * Tomi Valkeinen [210521 08:45]: > On 21/05/2021 10:39, Tony Lindgren wrote: > > * Tomi Valkeinen [210521 07:05]: > > > On 21/05/2021 08:36, Tony Lindgren wrote: > > > > * Tomi Valkeinen [210520 08:27]: > > > > > Hi, > > > > > > > > > > I've noticed that the v5.13 rcs crash randomly (but quite often) on dra76 evm > > > > > (I haven't tested other boards). Anyone else seen this problem? > > > > > > > > I have not seen this so far and beagle-x15 is behaving for me. > > > > > > > > Does it always happen on boot? > > > > > > No, but quite often. I can't really say how often, as it's annoyingly random. > > > I tried to bisect, but that proved to be difficult as sometimes I get multiple (5+) > > > successful boots before the crash. > > > > > > I tested with x15, same issue (below). So... Something in my kernel config? Or compiler? > > > Looks like the crash happens always very soon after (or during) probing palmas. > > > > After about 10 reboots with your .config I'm seeing it now too on > > beagle-x15. So far no luck reproducing it with omap2plus_defconfig. > > I think I have an easy way to see if a kernel is good or bad, by printing > stack_not_used(current) in the first call to omap_i2c_xfer_irq(). There's a > huge drop between v5.12 and v5.13-rc1. > > And interestingly, sometimes a simple printk seems to use hundreds of bytes > of stack (i.e. compare stack usage before and after the print). But not > always. So maybe the issue is somehow related to printk. > > I'm bisecting. OK sounds good to me. Thanks, Tony _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel