Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4471793ioa; Wed, 27 Apr 2022 04:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyec8mvygU7ySzwl/8Ph/KxeVXQC3TRyDgOpAI9lN1C28lv/Q9bYqXwYRaaFIw11qUNIEvG X-Received: by 2002:a17:90a:d584:b0:1bc:e520:91f2 with SMTP id v4-20020a17090ad58400b001bce52091f2mr43665862pju.192.1651059859163; Wed, 27 Apr 2022 04:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651059859; cv=none; d=google.com; s=arc-20160816; b=zPzHRZIhRCsLjQ3V2DenFnfFCNpn56BpnQcs83Wy42IoejnjiKt/qsROYB4kz0LDtK 2cpslI41Z9z3n2cb8MM89KE8wiM9AWUH/llTcZJZs7SoxC7PLPjsZ/d2J0dnTzhjBaSl mlVRmxQXgii9hKIAudeqVzxfz3SHxMqweM7PXxLEZDqfLmQoYl6hs28pMpRJR6gjDrKM 14E38MZI6RjtxI3yRop4bln+94lP+0qbry+dmVN0xbIQI/dejIH73lzukEApNh689v1y JdIZn7Shzic2iUPdVavF33BL7E/20xL4/l3z9QJnQ4C9RNrdHXz2w1vcQG3Kb7klcFYh hWQg== 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; bh=o54nhru50dRy6HHcr9AN67LdyrHacSllq2P2+xumz3A=; b=0KDNH9Kfov/ZHAkCXAL52Kg7CcYc+koUeo4GcxCcdG8YAN1emygpXzmBT6KDt1tenV Xk09YkenHUIDzr+Tiv6eQb7yFjgo6l/5ERMRSMojmz+p6RXxqQ5Y4OpPqFnxEyqKE+e8 +A76XGA//14m1UUZ7q9tNda5Ys55vMg3RFqj2lRdXNRInE892Cx/p67Sqlnm/4yaLk41 CI1cYJbxLCp3b9hjn87BEFCCSCXst4HLbm130Mqo1cMZ67GU/1QJi3j34AXSEkOMxWVD SBRQoLj8TXbBN0WmvflNMaLOs4y9VjhvouVgi0u5wDCBTgnM1nQkK1swLhdHqsSZyVwi lB/g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b1-20020a170903228100b0015d17ba5b87si1620250plh.20.2022.04.27.04.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:44:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 453702FBF6F; Wed, 27 Apr 2022 03:58:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbiD0LBz (ORCPT + 99 others); Wed, 27 Apr 2022 07:01:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231791AbiD0LBm (ORCPT ); Wed, 27 Apr 2022 07:01:42 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29DF12C8C2E; Wed, 27 Apr 2022 03:46:49 -0700 (PDT) Received: from mail-yb1-f174.google.com ([209.85.219.174]) by mrelayeu.kundenserver.de (mreue012 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MOm9H-1nVh3d2eJr-00Q8kt; Wed, 27 Apr 2022 11:37:30 +0200 Received: by mail-yb1-f174.google.com with SMTP id m128so2318775ybm.5; Wed, 27 Apr 2022 02:37:30 -0700 (PDT) X-Gm-Message-State: AOAM5300N9y4NIA3ZxiFB/HOsO0zUvGEV3wrP8+da6a7nms/KtAHgCig eswCwv7bdFeWygj5ZNOd704c5ck1zZROp7LNgwY= X-Received: by 2002:a25:d3c2:0:b0:645:74df:f43d with SMTP id e185-20020a25d3c2000000b0064574dff43dmr24429740ybf.394.1651052249361; Wed, 27 Apr 2022 02:37:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 27 Apr 2022 11:37:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kernel panic with v5.18-rc1 on OpenPandora (only) To: Tony Lindgren Cc: "H. Nikolaus Schaller" , Discussions about the Letux Kernel , Linux Kernel Mailing List , Linux-OMAP , Linux ARM , Ard Biesheuvel , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:3EX3mYX6KEXjhQgHkDZWS3QeX8xjxcCpdZo4zBbMrRE7iXkjm6H JTOhu01vRZPmjNAeyADH7vVynVZ4tq98tHTNlPIgZmvMdMI1mK1vZQToaK1kFybINhrUNA0 wJyyiLZzm2DDDU2iZyFtb7X12UzqaH2U+yvLF116ouy2iU+E0M6eju9Y8YQBHL7kRMGkXEQ FxgV9rsIkBoxAuXlw8FPg== X-UI-Out-Filterresults: notjunk:1;V03:K0:fjivupKgZ08=:3In3UonnUB55Oqi5Tc3nXz XcTywYTLQ2S8ISSHeggOzNFcNYVHW6RNG36hUP78VkiJhvXj+S1zvDyC+WIxWpj/c/wrm0Bhq X73qSZkaRDR0PpOIkeEE03t0SeZehUG83OeKZetTRCf00UM40ft+K6DggXwwuL9YSiAXmHL7g uAumSa5RF06J374r530FGWOPIqq9sJKLq76Pl+F2+1vGsRKAeiN89zgaQYW9l/ThX/vI3jLBe riDlpNc400kyiF/o/1//hr+TRHoQok4aUrQbTDChdGVWbb51CKsO356UlLYCYDdCtDnuwG+4a Ei5knPERLepkZBYYgmGMqtSIpo+9CKo7S1XZP2UltQUizbUdBPJE6JyaTYLnovZoKawcf8okI LLdQWaBWIlxwRdFQ27HvxKlvidAzSQKL7TRzdVnOSKRO6EPzG4VhGYZEjOUp7Q8k7OKUY+6f+ xE1kfrBPVrBNtzzvLQj35w6DJNGJs+zMoqPDdkmVlPHS1ybWgpkq/bHqkVzMkPedZF3FhS4PH 3IJ19gEOBgud7kE0F1Pf+w3mmU88JllCytg++IIiE+Cb5jzNpFAtmuFDIA6b2fOKoh4dBkiFD 7/kE1PmvEw6oWcVmbXZ45cNgJHCnRzpshr0JvAqhAX2qS1YkGD2T9xJ6JamvN1mwXO+UJ6UGX pcpUhxhA+tyoD4XAAy66BLnXkYhQw/w3gXBlMdNRCmiiPS3tCENZsOvqBpYP3t3AwLWE= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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, Apr 27, 2022 at 10:38 AM Tony Lindgren wrote: > * H. Nikolaus Schaller [220426 20:16]: > > [ 28.245727] [] (__irq_svc) from [] (_raw_spin_unlock_irq+0x20/0x4c) > > [ 28.254150] [] (_raw_spin_unlock_irq) from [] (do_wait_for_common+0xa8/0x138) > > [ 28.263488] [] (do_wait_for_common) from [] (wait_for_common+0x30/0x48) > > [ 28.272277] [] (wait_for_common) from [] (mmc_wait_for_req_done+0x1c/0x90) > > [ 28.281341] [] (mmc_wait_for_req_done) from [] (mmc_io_rw_extended+0x1c0/0x2f4) > > [ 28.290893] [] (mmc_io_rw_extended) from [] (sdio_io_rw_ext_helper+0x118/0x140) > > [ 28.300415] [] (sdio_io_rw_ext_helper) from [] (sdio_memcpy_toio+0x18/0x20) > > [ 28.309570] [] (sdio_memcpy_toio) from [] (wl1251_sdio_write+0x34/0x54 [wl1251_sdio]) > > [ 28.319702] [] (wl1251_sdio_write [wl1251_sdio]) from [] (wl1251_set_partition+0x90/0x404 [wl1251]) > > [ 28.331207] [] (wl1251_set_partition [wl1251]) from [] (wl1251_init_ieee80211+0x1c0/0x3dc [wl1251]) I think the problem is here: wl1251_set_partition() passes a local stack variable into an SDIO API function that is given to the hardware. This was never safe and could cause a corrupted stack because of the cache management, but with vmap stacks it turns into a reliable DMA error, which I guess is what the l3 interrupt is about. Can you change wl1251_set_partition() to use kmalloc()/kfree() to allocate the partitions[] array? You said that it still crashes without the wl1251 driver, so I assume there is at least one more related bug. If you get a different call chain without the driver, or with the kmalloc() call, can you post that as well? Arnd