From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E59A434E5C for ; Thu, 30 Jul 2026 13:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785418019; cv=none; b=k79zkK5wrjcAJKxLT2PpYFomZygqD6j/IIzCSgBydtiCcOZe9eDs69sTU4nQlCDeraeZKlH8f8MCeURawM5RCp3cfbxs5bhbnT/G63ohhgk/R/+AxBJrlO2r0LLyyXcpTgYMXru+kQQ/jQSBMeWVpH91VhhN5u3Udm1ovDZzRZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785418019; c=relaxed/simple; bh=lkFrxBt/G7XrPsL8pspUcXKCUKR5nVLnq/toTNN0Iyg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Puh1w3n5str0AYKfmdubxC4JwAmhbHNKJ7qXdfPeUMQthCBMVmYL4K8xlnGxfwDZ2kPVopAsHWlcXmvD16SyioNTtTH3Uv0qhyFvf4XmufnJYXvxOEdwhG7EuileRN7Eq94XcT6ydutMFgj/P0V7mdV2C3f2Nr0X+u1kp4lJ9EA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HmkyRqfV; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HmkyRqfV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A30C41F000E9; Thu, 30 Jul 2026 13:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785418018; bh=yU0WzbY4WfMch0AB2KU35VjgA1kUcdsd454/INoTRaY=; h=From:To:Cc:Subject:Date; b=HmkyRqfVYgaHm7/fMz9RwL8Ca6ETpwm7KapTv6xElqHf0SnPq7/d5WinWPieiSIMF IfCy+wbvBTrNwIaJAlRrp1IX3/LdgQ6SBPlP+HSPnMJou7yGQ0saV3u8YABC5f0g24 1fHjVS4Zm4nD4Jk8LAAsGA4XOEo6lM8jOvmcrPzSkBZO0HhQQC9Y9jl4yPJfWuVdvd FeZ44xddXdhAMLl16XXE0Mgplc8LCMhYVOQ1d+Rp42omDnAmuSc35j/GCqyGjeDhjN jzu8mGotfTbDuGM68I9xt4KHTTmrVkrfsoLqJYjrTRucmXsdnNNDGfz+xhfdcdjOOl dzSDBXSybhtPw== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Kees Cook , Jinjie Ruan , Mark Rutland Subject: [PATCH v4 0/2] arm64: Fix handling of tracer updates to x0 on syscall entry Date: Thu, 30 Jul 2026 14:26:49 +0100 Message-ID: <20260730132651.25993-1-will@kernel.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi all, This is version 4 of the patch previously posted here: v1: https://lore.kernel.org/r/20260714143600.23853-1-will@kernel.org v2: https://lore.kernel.org/r/20260716120640.6590-1-will@kernel.org v3: https://lore.kernel.org/r/20260717182758.17111-1-will@kernel.org Changes since v3 include: - Add an additional patch to pass orig_x0 as the first syscall argument for native tasks (Jinjie) - Move WARN_ON_ONCE() after checking regs->syscallno (Sashiko) - Add Tested-by from Jinjie. Cheers, Will Cc: Kees Cook Cc: Jinjie Ruan Cc: Mark Rutland --->8 Will Deacon (2): arm64: ptrace: Keep 'orig_x0' in-sync with x0 on syscall entry arm64: syscall: Pass 'orig_x0' as first argument to native system call arch/arm64/include/asm/syscall_wrapper.h | 13 ++++-- arch/arm64/kernel/ptrace.c | 50 ++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 4 deletions(-) -- 2.55.0.508.g3f0d502094-goog