From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6094C47082 for ; Mon, 7 Jun 2021 13:15:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D4DF610FC for ; Mon, 7 Jun 2021 13:15:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D4DF610FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A/FxNVZQ7juTZGU1lqP34OPMqUaQbFSgWXVh2qr9jNo=; b=xGnu9NscWh5GST DIux2wfOb7rD8D/2NGWpAdRyAL3x05xC3CR+4xcmPz2evLLdpjtpS7bFr8BNzpFlpV8TZaH59tN3N CsViZXKjCaNPIpG7DvsX5vRp5NyAXvULZd7XxwOb2XtKYB51eI1we1UxJZzudmqf+E4f8jLhDOQJA a0WojE66LgZjAI19q1KPY9ghr//Hy29V0VjTVAIV0+PUSfdcINQqYhrloYxKGS7HNOgaDQQ/BMvRl B60tQyABifK3xAVT8V4FvQ7ZuFtrr7GVsicspTdFcofghsGuq6KGfunY+N465WOIuL3uZt1+8zX1/ 2yAbrkQ5fym1gdaYlqJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqF3N-003iUQ-TO; Mon, 07 Jun 2021 13:12:31 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqF1k-003i0E-Uq for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 13:10:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623071446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H2K8Jw3CiaykrguwZiAlFM0Svs+MuPSnZvZJ7a9wNHQ=; b=FNmElJZAzcoiTBJLVmsi8kXetItxNiEOXnRvFGvjdZ1fakVBZDhZLlXQxwp5ADM0Kc7DVx kKEqEH5IaYsb8g7bV6rKPHTPQ0v5nkW43MCE5+1uWVu1YWKkOLWoMcM4O7jBRCd7/+o3gS YCwYaRYqnPhi51qfYuympxD5eJ1IuHg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-591-SxdSqh9bOBCCdrG4RjsFmg-1; Mon, 07 Jun 2021 09:08:59 -0400 X-MC-Unique: SxdSqh9bOBCCdrG4RjsFmg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3C392501E5; Mon, 7 Jun 2021 13:08:57 +0000 (UTC) Received: from redhat.com (ovpn-113-26.rdu2.redhat.com [10.10.113.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1754160C17; Mon, 7 Jun 2021 13:08:53 +0000 (UTC) Date: Mon, 7 Jun 2021 09:08:52 -0400 From: Joe Lawrence To: Mark Rutland Cc: Suraj Jitindar Singh , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, madvenka@linux.microsoft.com, duwe@lst.de, sjitindarsingh@gmail.com, benh@kernel.crashing.org Subject: Re: [RFC PATCH 1/1] arm64: implement live patching Message-ID: References: <20210604235930.603-1-surajjs@amazon.com> <20210607102058.GB97489@C02TD0UTHF1T.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210607102058.GB97489@C02TD0UTHF1T.local> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210607_061049_253510_B63EB611 X-CRM114-Status: GOOD ( 21.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jun 07, 2021 at 11:20:58AM +0100, Mark Rutland wrote: > On Fri, Jun 04, 2021 at 04:59:30PM -0700, Suraj Jitindar Singh wrote: > > It's my understanding that the two pieces of work required to enable live > > patching on arm are in flight upstream; > > - Reliable stack traces as implemented by Madhavan T. Venkataraman [1] > > - Objtool as implemented by Julien Thierry [2] > > We also need to rework the arm64 patching code to not rely on any code > which may itself be patched. Currently there's a reasonable amount of > patching code that can either be patched directly, or can be > instrumented by code that can be patched. > > I have some WIP patches for that at: > > https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/patching/rework > > ... but there's still a lot to do, and it's not clear to me if there's > other stuff we need to rework to make patch-safe. > > Do we have any infrastructure for testing LIVEPATCH? > Hi Mark, If you're looking for a high level sanity check, there are livepatching integration selftests in tools/testing/selftests/livepatch. Let me know if you have any questions about those. Regards, -- Joe _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel