Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1513153rwb; Thu, 10 Nov 2022 17:57:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4oaWW+yrXYlJGEaiDLkXHnlUl9O38ktMx4wHdqbBjhTqaR3tzLnq7hgmhYdGEX3AD82SwG X-Received: by 2002:a17:906:bc4b:b0:7ae:37a8:9b5c with SMTP id s11-20020a170906bc4b00b007ae37a89b5cmr242390ejv.241.1668131877330; Thu, 10 Nov 2022 17:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668131877; cv=none; d=google.com; s=arc-20160816; b=DaosS1fYqEmMGh0ztsK7UL6ZnNnxHLFKoObXNYwP3fMy+RCVHgjeaOnsuoQFNv5Ope yq0Y6DiNZ/FMp0VF53Rql7p91ieOI3NGUVGmwi8LRx8ivt5bBMkCIJHP1eHHhdmXVaMu E9ssrdniH60d2Bogx1kxd93VRAhzRhHn+DlZRayuhm9tKJLWnr9zIJmbMD7hCFaXGbfA wIZ9tdTFkNxf5hVW/tNRdeONxptx+es+0CjehmShcJsp+icnfgNwiEWUgGzUwkVgVNn+ iCOMR0KHcj4LoN3JGEdDNgF6akavAp+BVu0fXu3pRe3PwYH7/xUN1X1cLd6eCmIwdIgf pTaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jccwGn6yraR6ggbRcl5+kQG8NY32menh2AFqjtDH2Ns=; b=jeT9FKTU2twjUMA/mmQA4TMW3rmCgZsMsEzBt9aR7/VWCZgVbJftTyA+6syIi97fhe aaykvUTaBK1mlZnP8MYR4sV2cj0oFfVu5T/tbO6qlmPO3D3ntZsdMMGv4S6dwqpkIIlv ZKuRUHfALL2CX2wG8CCek6JIpQhAwJThIqzFC4fO+8xjbmxbTZ862akiWoHrM55jcMGM 6gV7rpaT+9XwIEoSqpsDxO5pc6U+LiWgnoJVhu/3SvtTG9qep93IGnosQVR4GxjrayEp 4JU7Cx70faTGwKVOPz7Xj+fw+VhHMywDKLWvFJ8nFFzTO/bgC4UfqrKX51iWSy7325Z9 PABw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="P5U2OVQ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a056402400800b0045907cec72dsi1238684eda.320.2022.11.10.17.57.35; Thu, 10 Nov 2022 17:57:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="P5U2OVQ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231737AbiKKAsS (ORCPT + 92 others); Thu, 10 Nov 2022 19:48:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbiKKAsQ (ORCPT ); Thu, 10 Nov 2022 19:48:16 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3258961B87; Thu, 10 Nov 2022 16:48:15 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id k2so9321275ejr.2; Thu, 10 Nov 2022 16:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jccwGn6yraR6ggbRcl5+kQG8NY32menh2AFqjtDH2Ns=; b=P5U2OVQ/nvzFp6KeGVu5Ia7mi8o7RbKUCzp1mUSahT2VHwPbpgY9kQsBj3i2y39X9u /vDBkESTrEV1jp1hEJU730zDEZ+5IU3BiSklFdqzkjQieBAiYk2zxifgADC81VEazg43 HSTN8GidE/16q+P66QziSy5v49F1LqNfTXz2TmqH/aoji2Pgoy2RLPgyDhXz+7X1IFcD R6UYn703346kzahSS8Mppto0C1j9FENa+wsylBCbbDjEiqZbecnqRbsx5lTqxYhImLlM iYfTIlgPxirtYdQQ0TIUQozBQNGt0lV14uCSVuT5k6PLeXwa1G8EGKw5TVeX/HQoDqQh 8oNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jccwGn6yraR6ggbRcl5+kQG8NY32menh2AFqjtDH2Ns=; b=F49MVUqu5Xnn8y/1JLmV+feDo1ePEjS0TEsLLX570BJIrLgLKjVSjSucj+uejbJYnX 1Pzxxy/n4k18y13ookwWZjyK/v85HzSPHygVOUJPTjOnDDsLE6JEXxNbZJ75d9Y4BsJI nxlPMnq2oGkko/PaT9jYUAR2AZqFtxvLGS+I8L5Z1/KHfIeQn23+3+a9NMZbUbCynL5h T2sqx8RZClaUTD7fPXmwPjUtNKia5fP/KyJi5upZXIE3yVSiCqbvvm5fo+uDqfFk1bsG C+pi7S9yjhynEK+ORtw96nSeoIkkOF45pCGt0zyIzph8Z0G3nS+bOKFAkD+mtGbMzRNE pXFA== X-Gm-Message-State: ANoB5pmVIPVBvu9NRqRYLOFyTShv8FrZ6qf/EYthT2mDTiecvyOBq2pH 2E7vH1kFLMuy1hii9MIU4iESB7z+u+oRSmgiZWU= X-Received: by 2002:a17:907:2045:b0:78a:3479:ec7d with SMTP id pg5-20020a170907204500b0078a3479ec7dmr49199ejb.671.1668127693508; Thu, 10 Nov 2022 16:48:13 -0800 (PST) MIME-Version: 1.0 References: <29824864-f076-401f-bfb4-bc105bb2d38f@app.fastmail.com> <96a99291-7caa-429c-9bbd-29721a2b5637@app.fastmail.com> In-Reply-To: <96a99291-7caa-429c-9bbd-29721a2b5637@app.fastmail.com> From: Dmitry Torokhov Date: Thu, 10 Nov 2022 16:48:01 -0800 Message-ID: Subject: Re: arm: TI BeagleBoard X15 : Unable to handle kernel NULL pointer dereference at virtual address 00000369 - Internal error: Oops: 5 [#1] SMP ARM To: Arnd Bergmann Cc: Naresh Kamboju , linux-stable , open list , Linux ARM , lkft-triage@lists.linaro.org, Greg Kroah-Hartman , Sasha Levin , Linus Walleij , Mark Brown , Liam Girdwood Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 9, 2022 at 2:20 PM Arnd Bergmann wrote: > > On Wed, Nov 9, 2022, at 13:57, Arnd Bergmann wrote: > > > > One thing that sticks out is the print_constraints_debug() function > > in the regulator framework, which uses a larger-than-average stack > > to hold a string buffer, and then calls into the low-level > > driver to get the actual data (regulator_get_voltage_rdev, > > _regulator_is_enabled). Splitting the device access out into a > > different function from the string handling might reduce the > > stack usage enough to stay just under the 8KB limit, though it's > > probably not a complete fix. I added the regulator maintainers > > to Cc for thoughts on this. > > I checked the stack usage for each of the 147 functions in the > backtrace, and as I was guessing print_constraints_debug() is > the largest, but it's still only 168 bytes, and everything else > is smaller, so no point hacking this. You mentioned that we are doing probing of a device 6 levels deep. Could one of the parent devices be marked for an asynchronous probe thus breaking the chain? Thanks. -- Dmitry