From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 111621BD9E1 for ; Mon, 10 Feb 2025 08:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739176221; cv=none; b=mS7d8nt7xvSj3hwsBLkjd2gJL6DpWWgsqnFSIj3H18BYBnfDp+g7P0y+HNyz3w0sSX3Bqp+V3XdlOtYc++gQyb183OoTcElR7k+HG+CzDEOwHRAqjXSo6/KUU4UEBJpzLx1pzD/F58jST1lCf/EaN1WcLi1fybNSbGIDyzFL0QM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739176221; c=relaxed/simple; bh=PPmmV6mrjHp+lAp5KhBgmJc4ilN/3JaEJWAOyFrLPSw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=GKcM3tfqCvCDnAvKD9kCcmGCHMkWoCaUBB5cbw1UG7KYH0S+WOgmFcPMHyjMoyD4jBdPLGcGbUl0/IuI6+AEvSUMRy2dY11W1zGE4CJiOb2K/z/c21Fc+0Xv778HMlhU/9yzq7u3P+5JVM4SXg8Q6BFgQtQw+J3q//Q4S6Tw3yc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--wnliu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=HBdFdtZ6; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--wnliu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HBdFdtZ6" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2fa166cf656so7500786a91.2 for ; Mon, 10 Feb 2025 00:30:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1739176219; x=1739781019; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=PPmmV6mrjHp+lAp5KhBgmJc4ilN/3JaEJWAOyFrLPSw=; b=HBdFdtZ6JSHjJJd3i3oiGM5RcWOB/3gKKGkpOXMp9hhM4TSpwwSuXJ0x16fU0X7Sw1 k3IFOEiaOnlbaWcIh0qzts39EMozAwzlsCFs9ci9VVFIerlbmki9s5rU2DALc75ooGrm ORZQqARub0fhNvZpO8sAC1IXXzoDkxW9Lh9dQ0PGSc7BPGHukWSoHmLM9Qm2dy+RTzQ+ mh7R9RCjeOSmwqNaNE0x6RAPnn0XS1Gp3S/daMZdGYbLh1QMzAnsr5HJktAVHM174LrL h4hPXDlxwfC4svcCWJ54qZQBh9WZf3MufmeFmTGfTnMOydT1FvfTBb4wwJ5/1MLQhv9u mM5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739176219; x=1739781019; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=PPmmV6mrjHp+lAp5KhBgmJc4ilN/3JaEJWAOyFrLPSw=; b=HdPumjB1f4r4bQNEmzEueAFQ1jF6z4u+dWvPijpeIDzJtcaBd9GFc8l3oiNt96vwQP EHdBU5HB5T0pbjFkJDL6u7XiauiQEVDR+QWDi8e85iH/ig4g1UfeuKKf5l+8SoPCUsMm r9HDBk8AkInyIySfLpVH+O1aS0JObg0sF8Ezch0Jww6d7KhDfDwRhDoZk1o9kZBg0k0m AumcwIrq62wYd3B04MJPSGNcRwLNjvuZMN+ti7ZTQ8+Iq3inpHjWcL7xZkvpTQEjvX9a MPCfXDMhEyw3TPD8FrzComeaFyNdUSAMnjKyUpilJNsOi9iOzFCFO7kaYTwK6J0uJuBC zwSw== X-Forwarded-Encrypted: i=1; AJvYcCVNp+fi9Ci41pZkuTrRH1fm/l0zb4l/PEbvkz7Q/+TUb6TNqPT38ZE/yDgxYdSmd2AxQay2Kokd1WiZOwjT+d1v@vger.kernel.org X-Gm-Message-State: AOJu0Yy+oo9sLTJJc4wRNrGVp4v/vLMzDQZi6MIlRoVSfpcnlEQoyO6Y q3HSijoDo43vn1/EIjVUoBTPV0MyvvxfxVuX7kOjgC9/cniU3vxC7ZrPbPZbrrEOVE2AqFu5pQ= = X-Google-Smtp-Source: AGHT+IEXo1lV682Dvui+xqTqQ9vsTUnOVO23WNyemCNciJ06wQPtgH2MGkCCmvZ/liuvldm8njt7IMjgAA== X-Received: from pfbbi7.prod.google.com ([2002:a05:6a00:3107:b0:730:9499:1f46]) (user=wnliu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:850:b0:730:949d:2d3f with SMTP id d2e1a72fcca58-730949d3086mr2135669b3a.7.1739176219304; Mon, 10 Feb 2025 00:30:19 -0800 (PST) Date: Mon, 10 Feb 2025 08:30:15 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-toolchains@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.48.1.502.g6dc24dfdaf-goog Message-ID: <20250210083017.280937-1-wnliu@google.com> Subject: Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel From: Weinan Liu To: puranjay@kernel.org Cc: indu.bhagat@oracle.com, irogers@google.com, joe.lawrence@redhat.com, jpoimboe@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org, live-patching@vger.kernel.org, mark.rutland@arm.com, peterz@infradead.org, roman.gushchin@linux.dev, rostedt@goodmis.org, will@kernel.org, wnliu@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 7, 2025 at 4:16=E2=80=AFAM Puranjay Mohan = wrote: > > Yes, I think we should, but others people could add more to this. >=20 > I have been testing this series with Kpatch and created a PR that works > with this unwinder: https://github.com/dynup/kpatch/pull/1439 >=20 > For the modules, I think we need per module sframe tables that are > initialised when the module is loaded. And the unwinder should use the > module specific table if the IP is in a module's code. >=20 > Have you already started working on it? if not I would like to help and > work on that. >=20 > Thanks, > Puranjay Thanks for updating the arm64 kpatch PR so quickly. So we can use kpatch to test this proposal. I already have a WIP patch to add sframe support to the kernel module. However, it is not yet working. I had trouble unwinding frames for the=20 kernel module using the current algorithm. Indu has likely identified the issue and will be addressing it from the toolchain side. https://sourceware.org/bugzilla/show_bug.cgi?id=3D32666