Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7456898rwd; Tue, 6 Jun 2023 10:58:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GKNcTczPB08KIQgpW4/RD9OV6nhqNyw0BAxvfb2LqxZBjrXZFQdHxXPeXfboWRuVWZ4IF X-Received: by 2002:a05:620a:2d86:b0:75b:23a1:413 with SMTP id tr6-20020a05620a2d8600b0075b23a10413mr430129qkn.41.1686074330620; Tue, 06 Jun 2023 10:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686074330; cv=none; d=google.com; s=arc-20160816; b=HFyF2Ratz+4kBkqgjnXx8cjlF1ngDa3L21T1aH1CwgQlSaOjenV13PUedsuUOJRJ2H 3Vs352lsRdwYd4tK3YpDT8LZP5rSLEO7tBjVhEWwaxgqpDBESm+4p3Hzq9mURtea0MZb Kj8HrkS5fQP5/aZgT3My7OZ73oaIMBB5vnJ3ALM72ynb9rAZikkxk80aGVpEK0g5edwF zXgwh5u4kEAzI26Cb3QmiK/Y2K5rvMOS3k3NPb4oIIXGTAMRzmF7YgUiftDInQrwmgI9 4SCrH2CJMP8eHDkWwFac+Tz4mge4FjayXN8G6YSGsDaS20MBbE7BY2e8/47cbyRx38Fw SJgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LQU6EYmw7i6amjDNRig/d7TtkExZcTvaNW2F1pNLtO4=; b=rBfj6dy/+Fa4qgy/U39pBh7A5O5gAc8AsFlEN1F7dLpCEtwe+SpysYbfAzLh9ZeX9S A6J+2HYTYlYbC1SHkB+R5eVfYiyJY+BN9m/nV/JTCxeTp4Mqd6lD7e8dmfvs2oehierq IVpuiPfEnOWTWm/wO8JSQIayAX11JFwBXzKuF1REZynHxJs4uiHjpSf4bCWBrvRscLMV w/Rm23XJbkBrgaa1Fkx36giSvfkAmAjdVDS0bS8LEvtEFrjcW08kNiwfBgRs4O5Nuf7l k6H50fzRT/WiuKzfkqRMF8dVuMFgB9JCZi0MEV8lnRtIR+6OWerfq2tGLuIyU4xI1ALG W9ug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020ae9f50f000000b0075b016ec925si6461804qkg.336.2023.06.06.10.58.35; Tue, 06 Jun 2023 10:58:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238749AbjFFRaY (ORCPT + 99 others); Tue, 6 Jun 2023 13:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238753AbjFFRaW (ORCPT ); Tue, 6 Jun 2023 13:30:22 -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 BFFB51705 for ; Tue, 6 Jun 2023 10:30:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 47DCE63620 for ; Tue, 6 Jun 2023 17:30:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCA38C433EF; Tue, 6 Jun 2023 17:30:13 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Mark Rutland , Eric Chan Cc: "Paul E . McKenney" , Anshuman Khandual , Frederic Weisbecker , Mukesh Ojha , Josh Poimboeuf , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: lockdep: enable checks for held locks when returning to userspace Date: Tue, 6 Jun 2023 18:30:11 +0100 Message-Id: <168607260525.1438101.16339877591274617563.b4-ty@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531090909.357047-1-ericchancf@google.com> References: <20230531090909.357047-1-ericchancf@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,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 On Wed, 31 May 2023 09:09:09 +0000, Eric Chan wrote: > Currently arm64 doesn't use CONFIG_GENERIC_ENTRY and doesn't call > lockdep_sys_exit() when returning to userspace. > This means that lockdep won't check for held locks when > returning to userspace, which would be useful to detect kernel bugs. > > Call lockdep_sys_exit() when returning to userspace, > enabling checking for held locks. > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64: lockdep: enable checks for held locks when returning to userspace https://git.kernel.org/arm64/c/ab1e29acdb33 -- Catalin