Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3131358iog; Mon, 27 Jun 2022 09:45:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ugzS1XTR8XsiC/k/6BmosYuVabtckVXqYDs++EWY8VqxN2WEOnrR1GqriHhQwwvRK4jZpn X-Received: by 2002:a05:6402:750:b0:435:68bb:8552 with SMTP id p16-20020a056402075000b0043568bb8552mr17513940edy.155.1656348315046; Mon, 27 Jun 2022 09:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656348315; cv=none; d=google.com; s=arc-20160816; b=L//8Z3PMFKlZv49HXutHpX4fcWGdr3SXsVDw9W0H2949T7c9VBzSNQG8i+iK4pv+YR 2GJ+Ewy9ZptmZ8W/jItRikyiN32XpyoZiO3Q8v13TK1lUtby6EDPd8dhjvI8mfrfSbvQ mHg/abXYMX1JY9Y8JDeV3lXn/4q0SOFkTPF2O6CXwHPHvt6tN0nAQhWughQ7C4b7crnc fyk5jVM1r5ouAdPAe234p93jAZbL8E1Nm+CYJIj18NHaQ8rE3cVR0rxuBA4O+qq/qKWM o7Mf52lK9UzrJ/dzQ+sJyoLUhaogRo7VJ7iQG88FMBlEBnnbnt4vmnsQ0P7nQ3MOdyKK cvOQ== 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=3jWqe5eCEvfhJ7SMk4jmfVBzaJ6AjX6eIUnqn4WhHcw=; b=iA6ntN3+oeaNG1w0l5LjmBJmWUo9JFLpOEzyRno3GIM7bSWdQdTqrM0AVtCRnK45XP 3RNU36eUDqH3vrN/9f8yeuwiA7OAhkZMvwfYvlzToUZDeGuDEaGWA8yh6gQE5oQJA5yR Y82IV2PLqHVrFesYS//SZofM7D/iYAFH7oL5oA4ZElLyZPwTv60aSc8ci2gp8BrcvPJ3 y53nWKsANko/nhdi/r3CX2OMHkVQqd3PxvWAwt/+U5uhXDvv0n9v6Ab5dXHrMoROMo1O dEMH22gcBfGasSQ5nXpGtC5gxRnijX/46sqY0eARyd9TPOZWiszRVm6lcjSEWfaiz85/ 68Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=XVc9E0Uy; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb26-20020a170906edda00b006e87b73b8ffsi11038360ejb.131.2022.06.27.09.44.49; Mon, 27 Jun 2022 09:45:15 -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=@google.com header.s=20210112 header.b=XVc9E0Uy; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239254AbiF0Qcz (ORCPT + 99 others); Mon, 27 Jun 2022 12:32:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239401AbiF0Qco (ORCPT ); Mon, 27 Jun 2022 12:32:44 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D994B7C2 for ; Mon, 27 Jun 2022 09:32:43 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id f190so5488445wma.5 for ; Mon, 27 Jun 2022 09:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3jWqe5eCEvfhJ7SMk4jmfVBzaJ6AjX6eIUnqn4WhHcw=; b=XVc9E0UydcgtLVpzee18YUE9wICJ2T/ZGKJI2aIKDSZ0FG2od9hCMeDuQ04H0LHste EMlYDFtHmqQHE5QTJzqXpgfexBrPEb8s/gNrhGLcVlknqbf5WVjUoLqoF4/auGb1d2pp KvCmBZx6+xHU2kGHRslJarja7ML5hE8qjc9vYEWtYm6gDaLMyKKY/CNS1qDDYMmNrf2q eJGzNf6Kt2xl35zFybppKqqjGgCbEToH9xB5OnUM9RQIoqOID+E6UxNMgQJxGaGbAiK+ A9lg9ufuLtyP3v79JJ+7OzMGSKg+ItpegL4oXNOvBdIBkW74CZhBWA2w3qXGGoNk6Q2Y GrXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3jWqe5eCEvfhJ7SMk4jmfVBzaJ6AjX6eIUnqn4WhHcw=; b=n9B7EMO36cxxLYpcDqzLvS6uB5xBoKjuzykS3YXSVMGu4Zy7uFJdltYJo4r7l4f6of mQbVl76Rd6crQU7PiioG2jTHWq4zVfxUckB8iIi1LSxDRoyuzeUKB1JtOHGku1OOBbjm ES5eFn8V9dKxW55QadUsql6K+iaOseM0VMoy3CjVqcTwRyd0qLvSnMExyHjjqGQY41jo /3pJ8Y8/BP4LIzy1uU8paHpHjUjV4/y0xbMZtkevDAA29oPujmoQDzMhrfCVy5xlBDcZ WN0ublkzmVrhbCJLFTn51Tqnjm+W2RvBCfZ7vpVvzjWTrUjwlU/hdFrkhNNIdmZnbJI7 aDGg== X-Gm-Message-State: AJIora/295zuf/fbRhWMSp4+p93FlkS6ppFB9rcz4NraMo2wOFbB0EDB 3tRWDC2b8J3dUIaWFQHCB0Tels9QrzqBZpJBTouxkw== X-Received: by 2002:a05:600c:4081:b0:3a0:47c4:8dd0 with SMTP id k1-20020a05600c408100b003a047c48dd0mr9768995wmh.178.1656347561570; Mon, 27 Jun 2022 09:32:41 -0700 (PDT) MIME-Version: 1.0 References: <20220617210717.27126-1-madvenka@linux.microsoft.com> <20220623173224.GB16966@willie-the-truck> <66545c21-cfcf-60eb-4acf-39be99520369@linux.microsoft.com> In-Reply-To: From: Kalesh Singh Date: Mon, 27 Jun 2022 09:32:30 -0700 Message-ID: Subject: Re: [PATCH v15 0/6] arm64: Reorganize the unwinder and implement stack trace reliability checks To: "Madhavan T. Venkataraman" Cc: Mark Rutland , Will Deacon , Mark Brown , Josh Poimboeuf , Ard Biesheuvel , nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, Catalin Marinas , James Morris , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , live-patching@vger.kernel.org, LKML , Marc Zyngier Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Sun, Jun 26, 2022 at 9:33 PM Madhavan T. Venkataraman wrote: > > > > On 6/26/22 04:18, Mark Rutland wrote: > > On Fri, Jun 24, 2022 at 12:19:01AM -0500, Madhavan T. Venkataraman wrote: > >> > >> > >> On 6/23/22 12:32, Will Deacon wrote: > >>> On Fri, Jun 17, 2022 at 04:07:11PM -0500, madvenka@linux.microsoft.com wrote: > >>>> From: "Madhavan T. Venkataraman" > >>>> > >>>> I have synced this patch series to v5.19-rc2. > >>>> I have also removed the following patch. > >>>> > >>>> [PATCH v14 7/7] arm64: Select HAVE_RELIABLE_STACKTRACE > >>>> > >>>> as HAVE_RELIABLE_STACKTRACE depends on STACK_VALIDATION which is not present > >>>> yet. This patch will be added in the future once Objtool is enhanced to > >>>> provide stack validation in some form. > >>> > >>> Given that it's not at all obvious that we're going to end up using objtool > >>> for arm64, does this patch series gain us anything in isolation? > >>> > >> > >> BTW, I have synced my patchset to 5.19-rc2 and sent it as v15. > >> > >> So, to answer your question, patches 1 thru 3 in v15 are still useful even if we don't > >> consider reliable stacktrace. These patches reorganize the unwinder code based on > >> comments from both Mark Rutland and Mark Brown. Mark Brown has already OKed them. > >> If Mark Rutland OKes them, we should upstream them. > > > > Sorry for the delay; I have been rather swamped recently and haven't had the > > time to give this the time it needs. > > > > I'm happy with patches 1 and 2, and I've acked those in case Will wants to pick > > them. > > > > Kalesh (cc'd) is working to share the unwinder code with hyp, and I think that > > we need to take a step back and consider how we can make the design work > > cleanly with that. I'd had a go at prototyping making the unwinder more data > > driven, but I haven't come up with something satisfactory so far. > > > > It would be good if you could look at / comment on each others series. > > > > I will review Kalesh's unwinder changes. Thanks Mark, I'll take a look. Madhavan, I'm in the process of preparing a new version. Let me rebase on your first 2 patches and resend, so you can look at that version instead. Thanks, Kalesh > > Thanks. > > Madhavan