Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2573741rwl; Thu, 13 Apr 2023 08:10:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bzYqwk/xa836zhxk4FNPCN/r5h29Sizmc5E07DETck6qcCThlOBvm3A1tpAJr5hVOIAI8M X-Received: by 2002:a05:6902:1202:b0:b8b:ea51:f8a5 with SMTP id s2-20020a056902120200b00b8bea51f8a5mr2457951ybu.32.1681398622542; Thu, 13 Apr 2023 08:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681398622; cv=none; d=google.com; s=arc-20160816; b=gSacCGjWynO7+MjQzxtGPTNiuGnmw2ZK5iv/VqGP2sxKzj2tZN1L6HnWmOlRvBIQrR HmTmnO1P8ENTrq1xCgASZ+/QqSjBzUxwQDvwhhk7vOyk27hn+kiru6qWAiwhVOqz3bxf 5ArWJxX22adA4FPj63GZy70OPlaAljvKV+Ivtl1neSjeqB71/z9me4djt8PtEN97PF7r Ligr/rd6TkU8y8c/8GKHfVa7Zo+yUjoTmLEo+VcJzoZZfBSOSK7IccZJVCft86dAqxDS DXfYEO6f2beogE0YQQ1yju26RX/v0D24KfHTMc/cvpzaVXlQN3mOlX67Hx54nWadbM12 7agQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=9dCYOGSbIYbfYYbmLvUJ5TG/nk29LN5wquzmrRZ81Uc=; b=izBlqoXLuqE+3eM7j6cxtCCpMIEn+Dj9EO0YJxhG07EdrgAOCfggh1rKgM0WbgTLmS Ns2jmh3WMUBHasSS9vTdZmc7B486k915Sb+3k4rjQluZ1bxlIqGM+8G996KhjXaSAF6u 5EehZ9vj0wFuXdc5Qp1geVtmaVBwQh0FG+H4bl87kkncDyhgV7q+foXBBZfDkKwhHO2s U8SXkhbAVSOY+SPNgDDuCeo0Y5/J0ftgf3u3ppIlzGCb4hpW2Tp1oNAMwRLXQ3zWYuL1 Ng7nmCGjtmtXU7ARHGNLn2ldqJeJIAY/RokhU4O5JAa9M7I/Bi9y0Kf5sjeC7SVSKCJL StOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="bA/8X41O"; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f188-20020a1f51c5000000b00440045989d6si521439vkb.21.2023.04.13.08.10.04; Thu, 13 Apr 2023 08:10:22 -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=@linux.microsoft.com header.s=default header.b="bA/8X41O"; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231417AbjDMO7f (ORCPT + 99 others); Thu, 13 Apr 2023 10:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjDMO7e (ORCPT ); Thu, 13 Apr 2023 10:59:34 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C7966A42; Thu, 13 Apr 2023 07:59:33 -0700 (PDT) Received: from [192.168.254.32] (unknown [47.189.246.67]) by linux.microsoft.com (Postfix) with ESMTPSA id E1B9B2179255; Thu, 13 Apr 2023 07:59:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E1B9B2179255 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1681397972; bh=9dCYOGSbIYbfYYbmLvUJ5TG/nk29LN5wquzmrRZ81Uc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bA/8X41O3YYQ46GMlQH62h1w4H8PuSCT37utR845/hQjryig4kFiPnGIW159LT26B HrpaV3RQ6IMpRJZMO6SnESlK1cfJU4GmT4+Bp+p2ur6l+JBifq6qTfv4+alQUyv+S3 NnIm9HRzeB+GKC4v2iOg5JvPiJLd4ayY2Jw6276s= Message-ID: Date: Thu, 13 Apr 2023 09:59:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC PATCH v3 00/22] arm64: livepatch: Use ORC for dynamic frame pointer validation To: Josh Poimboeuf Cc: Mark Rutland , jpoimboe@redhat.com, peterz@infradead.org, chenzhongjin@huawei.com, broonie@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jamorris@linux.microsoft.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <0337266cf19f4c98388e3f6d09f590d9de258dc7> <20230202074036.507249-1-madvenka@linux.microsoft.com> <054ce0d6-70f0-b834-d4e5-1049c8df7492@linux.microsoft.com> <20230412041752.i4raswvrnacnjjgy@treble> <20230412050106.7v4s3lalg43i6ciw@treble> <20230412155221.2l2mqsyothseymeq@treble> Content-Language: en-US From: "Madhavan T. Venkataraman" In-Reply-To: <20230412155221.2l2mqsyothseymeq@treble> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-20.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,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 4/12/23 10:52, Josh Poimboeuf wrote: > On Wed, Apr 12, 2023 at 09:50:23AM -0500, Madhavan T. Venkataraman wrote: >>>> I read through the SFrame spec file briefly. It looks like I can easily adapt my >>>> version 1 of the livepatch patchset which was based on DWARF to SFrame. If the compiler >>>> folks agree to properly support and maintain SFrame, then I could send the next version >>>> of the patchset based on SFrame. >>>> >>>> But I kinda need a clear path forward before I implement anything. I request the arm64 >>>> folks to comment on the above approach. Would it be useful to initiate an email discussion >>>> with the compiler folks on what they plan to do to support SFrame? Or, should this all >>>> happen face to face in some forum like LPC? >>> >>> SFrame is basically a simplified version of DWARF unwind, using it as an >>> input to objtool is going to have the same issues I mentioned below (and >>> as was discussed with your v1). >>> >> >> Yes. It is a much simplified version of DWARF. So, I am hoping that the compiler folks >> can provide the feature with a reliability guarantee. DWARF is too complex. > > I don't see what the complexity (or lack thereof) of the unwinding data > format has to do with it. The unreliability comes from the underlying > data source, not the formatting of the data. > What I meant is - if SFrame is implemented by simply extracting unwind info from DWARF data and placing it in a separate section (as it is probably implemented now), then what you say is totally true. But if the compiler folks agree to make SFrame reliable, then either they have to make DWARF reliable. Or, they have to implement SFrame as a separate feature and make it reliable. The former is tough to do as DWARF has a lot of complexity. The latter is a lot easier to do. Sorry if that was not clear. Madhavan