Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45E03259CAC for ; Tue, 25 Mar 2025 12:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742907196; cv=none; b=m93d41u9aEHjDSb0TRFOGS9K/WYr05JTYyaj4rcNJ2Rub7vMr00ihRJGJqdB+bXlXcmE88mBpwc7bTzblOSvj8AaW9hZPl8KHvKn3IdBI/u85V5rapzaC9LGnd83rvE8lQSYlJZCnV/6fUhhZUyrlYP+TrrhvGXnPjfXiiDy/rk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742907196; c=relaxed/simple; bh=yk5V0lLbSKSewN4X99NDU39q4bYUTkfI8/5DQqD0X3A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QmE3+ixz2mTqvrG14DNrAG6LyovYjEhP91bfhuMaXnE8+L4Qr2d6W8KRq1Spznz9N7s4IahwC366edl7kBQb0CQx37lYLsYZPX9YOFrYoWQ7HuT2BvVhUj+JLYF33CrV93ZwYwmto7TS1I+5+UOJskE8FbekAFe0KxuXtIxTB3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Yk21LG16; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Yk21LG16" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4394036c0efso35066425e9.2 for ; Tue, 25 Mar 2025 05:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1742907191; x=1743511991; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eWTGK/X4SS10wsDie07tFoBcds9fT9TR5FQTDlGWK3w=; b=Yk21LG16aA8bMWMANdojH/m0m9UHsNx1RLLxmgJ+e1WWIQEdoBK6b6iHrkd+SZse6M NVne8R8DznZID3yRLRanjY3alAp58amieixrNkgsckz+4UxM/GrydGg5PeWrTSDwoBPm /wqLR9ga4U0XIRaxDGP0MDrE8PTSTtbmWDzhjhpJ0dE72zrL/9hmD7JWxrQ4BGXsf72o CQ92pU48gP8GGq5hmn6MMni19+NoXRWKUCaWYGikyI1upLt5pSQC5wEv4RK6WLVWPEPR MCcXBr34sU9DavjGnFL0+t4qZcFvn44tXIDSNqfJdKHmaHGX7v4k+bzSKGHtxP3JxB/f MRhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742907191; x=1743511991; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eWTGK/X4SS10wsDie07tFoBcds9fT9TR5FQTDlGWK3w=; b=l0Zl5SCUFeG7Q9uLz/fq9UpE5DGAMdCpGobnORjxfKyFysH2lqy6M7jYJbUnINzeLB dKi0sltZSr3cgiL3tPJJV0MXmdEk8NfS+88ll943di1PpJxx5Y/jDzzh4DWIXNkjydjm t038arFAC7ZJl6EmrQhdPoh+s13UC8tvh7wP8k2F6m+4waUaQIXKgpgDQgOLMI5LvBTJ 0HopXMPvB1yrs93q/7D2hDNrwqxR4xro/90tCBOOVsmzQasvxBaydN89nXyWRHjah5HA l0AqVTPr2B0yHyeXc2+urqlSkYhrKdVcute0PHPQUUsIzBaM7dXOodfzjSeSmw1tug3c naoQ== X-Forwarded-Encrypted: i=1; AJvYcCU2ZVGJ9FxbahJYK3EPPpqjmbqoV8mq7Hvq5RNwDonVXMMFYPGCPGgjGpSi6bBwBBvWFN4op+Ft+az2w8fjB60R@vger.kernel.org X-Gm-Message-State: AOJu0Yyg3TVADtfh+qfE5OcqtDLMVR85tMVkEjEWNBFsV1knlwxv2wWs hqqIgQ9hlMzmJtKk022QxX0E4PrcO9+byz5OWOFYW7EdkBSjCXxLmZwRFl7cILI= X-Gm-Gg: ASbGncvcWYK4Ahu6FBDrLzgcfsJj6NkYmnlNR1zPuude2LKanpruIAFdOR8/WTPV4vv uZI7CdDIMADf8crMRfPzY45jBbNDY8vF4hbbqFr3xmsos3KRJHjf//9JFLlK7dmJImGDOVZir1t HBRfZYiUJlyhyyrgnFHplekW9ctUE0/A7rRRy1sZmMAKtEMschXVIjpm7SquzkdhnTKm/vTfm/l GhASlYzDSJJk2Bj7obl2o0PNU6e19ksGeSAmor67fX5qzhJ3h+ZKMFHI1IpBJ6aY9nbpP2QBovr 5kw1XDcP4lVTysLCDOuoUm6u37cfn4MZ7Krn5iuHW93T X-Google-Smtp-Source: AGHT+IEE0UpwexJ3OeA2GpZXDHjojgHRAF+v+OvPsapSM0mU4OKjhQXj6Y5aUqQobFvv4w+MSqtBUA== X-Received: by 2002:a5d:5886:0:b0:390:f460:77b0 with SMTP id ffacd0b85a97d-3997f90df2emr15215129f8f.26.1742907191489; Tue, 25 Mar 2025 05:53:11 -0700 (PDT) Received: from pathway.suse.cz ([193.86.92.181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3997f99540bsm13579803f8f.2.2025.03.25.05.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 05:53:11 -0700 (PDT) Date: Tue, 25 Mar 2025 13:53:09 +0100 From: Petr Mladek To: Song Liu Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org, live-patching@vger.kernel.org, indu.bhagat@oracle.com, puranjay@kernel.org, wnliu@google.com, irogers@google.com, joe.lawrence@redhat.com, jpoimboe@kernel.org, mark.rutland@arm.com, peterz@infradead.org, roman.gushchin@linux.dev, rostedt@goodmis.org, will@kernel.org, kernel-team@meta.com Subject: Re: [PATCH v3 0/2] arm64: livepatch: Enable livepatch without sframe Message-ID: References: <20250320171559.3423224-1-song@kernel.org> Precedence: bulk X-Mailing-List: linux-toolchains@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250320171559.3423224-1-song@kernel.org> On Thu 2025-03-20 10:15:57, Song Liu wrote: > There are recent efforts to enable livepatch for arm64, with sframe [1] or > without sframe [2]. This set tries to enable livepatch without sframe. Some > of the code, however, are from [1]. > > Although the sframe implementation is more promising in longer term, it > suffers from the following issues: > > 1. sframe is not yet supported in llvm; > 2. There is still bug in binutil [3], so that we cannot yet use sframe > with gcc; > 3. sframe unwinder hasn't been fully verified in the kernel. > > On the other hand, arm64 processors have become more and more important in > the data center world. Therefore, it is getting critical to support > livepatching of arm64 kernels. > > With recent change in arm64 unwinder [4], it is possible to reliably > livepatch arm64 kernels without sframe. This is because we do not need > arch_stack_walk_reliable() to get reliable stack trace in all scenarios. > Instead, we only need arch_stack_walk_reliable() to detect when the > stack trace is not reliable, then the livepatch logic can retry the patch > transition at a later time. > > Given the increasing need of livepatching, and relatively long time before > sframe is fully ready (for both gcc and clang), we would like to enable > livepatch without sframe. > > Thanks! > > [1] https://lore.kernel.org/live-patching/20250127213310.2496133-1-wnliu@google.com/ > [2] https://lore.kernel.org/live-patching/20250129232936.1795412-1-song@kernel.org/ > [3] https://sourceware.org/bugzilla/show_bug.cgi?id=32589 > [4] https://lore.kernel.org/linux-arm-kernel/20241017092538.1859841-1-mark.rutland@arm.com/ Hi, I am sorry but I haven't found time to look at this in time before the merge window. Is it acceptable to postpone this change to 6.16, please? Best Regards, Petr