Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9469763rwp; Thu, 20 Jul 2023 05:34:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/na2BZal7cpYKDxHLdSjPFOSpt0TayJYQ9+XER3ZKG16wak2IInP/mupEGfhiGFrMA78z X-Received: by 2002:aa7:88c3:0:b0:66f:7076:a5b4 with SMTP id k3-20020aa788c3000000b0066f7076a5b4mr6589513pff.7.1689856467189; Thu, 20 Jul 2023 05:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689856467; cv=none; d=google.com; s=arc-20160816; b=I5zvymValORe6avMufeudmU8kQXhueXmSOHMQxGBLEf3i8utbrHEOveZzOyVaurut3 YZaMIXQnX+OTeCgLOEsY9OQJGUFOr302mGAAyTJ8HGfk2/gpE8jPlKQJwzP4pWJMpi5b k7cbbhbG9Mi2tI1VB9IsaBJMhTlYSAHrbVJnXWO3QmqO1Qk65HickVjlhm7d8GF97N3F yQUcFywmJQeDkc7kkpO4hQggUYDutKXZay9EjQUAG0vYAw27BzrUv5iW1ucQ4dqRG7MK 7IBrnoLilyjt6Z7FS7Wr+r9vZlIDxh9oT6JwpQqzSdF5uBzKdn0k98YnRKFIloHNU0Xi E7TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VLEBEWDCKa9l4QwCUeUs8eG3yk6QwKNwCq5ozHCY6ds=; fh=OSAmvfzNyYEfpWI1cL0K4ea2yl5ceeDB5rkloiv+RGs=; b=pXPGOut6XO5MaAOn9sRSTuxnYPqvC+HbJh/uOJ4b82UM7et4sNGwCigynstzBhGOL5 Rog2VdRKkKuC5Tc+F3B0tk/3ECwVmaFs18JXhaSYNKBmr9hRmE3yD6qwQnkaZNkmNtay oDnLnfdF0i/U9L7ueCOfAsQp0vwyGkaz1Ml13MVbgUZIGzLeNvISGa2xHwxkd9vfg9rS yndUrindhQW1HGOVpKUDQ7TFZuKS/DcU3OzYJiJ+ctolirP4fNss+pxwEzuesQygZZs8 FXaGwtfrM80ERWO8ELZIUI0gNWUnCCdWUP/RaUOkbQR4Nh/B4RnzKf+eKwMpN2l8wCpp zQAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rGN/cnm3"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s42-20020a056a0017aa00b0065b4e2b52c5si898670pfg.196.2023.07.20.05.34.12; Thu, 20 Jul 2023 05:34:27 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b="rGN/cnm3"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231588AbjGTMGu (ORCPT + 99 others); Thu, 20 Jul 2023 08:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbjGTMGt (ORCPT ); Thu, 20 Jul 2023 08:06:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C81010F5 for ; Thu, 20 Jul 2023 05:06:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0814561A59 for ; Thu, 20 Jul 2023 12:06:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5A00C433C7; Thu, 20 Jul 2023 12:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689854807; bh=jPdP9GZazbPohmSBfvulF4WU7xmAHLyL6Lam/41SMK4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rGN/cnm3vfJTU7YKAOi15so7isOJgRbZG+SF58jILbUTzo3YcIOEPPB8e+ZwwyJoI l06P2eV1tsjFlfgIXVdA4KSxgeyF2lN/ZT5F3ZS4Ce5yvgkMFptj6UIGbZPNSKLttd uhpm61nWtJ09mRflHOhvZsxLEbLgyrbrfzTHxS/15fsE9BsyKABdispuWJSSVWMrpF gOwL/1yzEZUhLIGFWPypadEVBxYGTOpb8H4jUFfRBVj76r6YY5FWgyW0H2L/jxieyw V6AfO5cGMBovSMtBWHalk9atTmh5p5EOy8GOfOc3/3OdatSAP+HHLqe9YTpPeRS5T3 LgfTolpHI8sOg== Date: Thu, 20 Jul 2023 13:06:36 +0100 From: Mark Brown To: Will Deacon Cc: Hugh Dickins , Lorenzo Stoakes , Andrew Morton , Mike Kravetz , Mike Rapoport , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Suren Baghdasaryan , Qi Zheng , Yang Shi , Mel Gorman , Peter Xu , Peter Zijlstra , Yu Zhao , Alistair Popple , Ralph Campbell , Ira Weiny , Steven Price , SeongJae Park , Huang Ying , Naoya Horiguchi , Christophe Leroy , Zack Rusin , Jason Gunthorpe , Axel Rasmussen , Anshuman Khandual , Pasha Tatashin , Miaohe Lin , Minchan Kim , Christoph Hellwig , Song Liu , Thomas Hellstrom , Ryan Roberts , linux-kernel@vger.kernel.org, linux-mm@kvack.org, regressions@leemhuis.info, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 12/32] mm/vmalloc: vmalloc_to_page() use pte_offset_kernel() Message-ID: References: <696386a-84f8-b33c-82e5-f865ed6eb39@google.com> <42279f1f-7b82-40dc-8546-86171018729c@sirena.org.uk> <901ae88d-ad0c-4e9d-b199-f1566cc62a00@lucifer.local> <977ddee4-35f0-fcd1-2fd-1c3057e7ea2a@google.com> <591b5253-47f0-440c-84b6-7786ff59667d@sirena.org.uk> <20230720103227.GB11034@willie-the-truck> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Bb9JqOrF/z0TC5UB" Content-Disposition: inline In-Reply-To: <20230720103227.GB11034@willie-the-truck> X-Cookie: Ginger snap. X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --Bb9JqOrF/z0TC5UB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 20, 2023 at 11:32:28AM +0100, Will Deacon wrote: > On Tue, Jul 11, 2023 at 06:57:33PM +0100, Mark Brown wrote: > > Still investigating but I'm pretty convinced this is nothing to do with > > your commit/series and is just common or garden memory corruption that > > just happens to get tickled by your changes. Sorry for the noise. > Did you get to the bottom of this? If not, do you have a reliable way to > reproduce the problem? I don't like the sound of memory corruption :( Not to the bottom of it, but getting there - I isolated the issue to something in the unregistration path for thermal zones but didn't manage to figure out exactly what. There was some indication it might be a use after free but I'm not convinced. I have a reliable way to reproduce this if you have a pine64plus, it also shows up a lot on the Libretech Tritium but not quite so reliably as pine64plus since Hugh's changes. Equally pine64plus was rock solid until those so there's some timing/environment thing going on which makes the issue manifest obviously, I expect you should be able to trigger the issue by unregistering a thermal driver but the effects might not be visible. There is a change on the list to make the Allwinner SoCs not trigger the issue during boot (their thermal driver refuses to register if any one zone fails but most of their SoCs have multiple thermal zones with only one fully described) but it needs fixing either way. --Bb9JqOrF/z0TC5UB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmS5I0sACgkQJNaLcl1U h9CXgwf8Dw3YMYw4WOhw/YJtPAAANuKw+Zy86uChY4Ts5qPQSbVSwU3C+HSO1kz6 rsyG3dwIfPq1Zj93/9VIw6rWvIaAFRT8ahat1yP5iBmmphKSzCmDMmBiy3JV26v1 GbIX/dm/qVRmC6MzN/iom/XVWSc7nByWSBxjmuEUe535oSeScoVgo3REv/NDQalm JVTJ3R5/C0ZTiUzrlUPs/DNFGNVbJIEzDd2KxMQ82GzSDK4G+wVUEpfd9rWkFEC/ HAttaNYB/xgrYzkdgE94p7wQuXo1Ni7ggL3/2zVwr1IZEPr6IyoKipgGkGeJF5bX 4wMSGLbOh0p/lU1O3vFdo6mnxFeYUA== =jXeg -----END PGP SIGNATURE----- --Bb9JqOrF/z0TC5UB--