From patchwork Wed Sep 2 14:43:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296776 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ACWU0Iwy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=pz+r=g2=vger.kernel.org=sparclinux+bounces-7424-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmXF0g14z1xwZ for ; Thu, 03 Sep 2026 01:16:13 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmXD6ms9z4wCm for ; Thu, 03 Sep 2026 01:16:12 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmXD6gPBz4wFP; Thu, 03 Sep 2026 01:16:12 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=172.105.105.114 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362172; cv=pass; b=NU1NgRybKLdjkbkiMz8kuT2H0dMUxB5m4nLDQ4EWNgwpjXU4qVwjuiAeAxVufgd8hj0UAVPOopxsVR29qvstpZcwpw0QCiN5jYRcegV6i1rzoonh/PucO9IIDYwkXeHIERB6V0vOySe2SyB7cgica0fkQrnduM2R49JRpKjO84dyfytLbghytzMMVd8ODXrFZFSk2Pl9gQoy+SxzQUzHhAiMWFxiLZM75cWvFud6XeUoxItZLrpRv4cBAN4P4FdAFR+Eil08UH9d73JbLVo/7NQzoR0J26ZEN9cdPiIhlI2S1Q9m32hLdExmWEboJ1uJVpA3kpeIWTh8W0vrjOgvlg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362172; c=relaxed/relaxed; bh=2JnrEcZXT7a4Ko8RzDbmeGNWkBaG45AGwndXeHnOoAk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M680ZDXIGXIQ9ExyL4B1tID+2NbUVy4ChTQAywnKY4L4GK0kwsMElzruKnjf8k119XOOvqmRoXmjWQTAHpriQCDCs7NiSuTzxVosfmd51dTHeYWsEpLY8fDG3L6FcCj8qXT9Rn21jfb1WWAeiZrf1lYtB4vO4/Gj/Vr4mgEwjjddpHEMbSXI9cckkjgwoivKMJNn8wwjmTGtZNkLCTGINSUTblSF23ikwCLIIJXXfHfeWemigT/HSAXBYij4dhfRb5Eg/VUIBCO0sUoyo226AlDNONjpoWFr3L+a8oHJa5N7GsC5YdC7nWdl7VBBJP54hRlgQr2mfIjkhaYtBFlXsw== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ACWU0Iwy; dkim-atps=neutral; spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7424-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ACWU0Iwy; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7424-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmX86nNMz4wCm for ; Thu, 03 Sep 2026 01:16:08 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 6A9DC81A9B for ; Wed, 2 Sep 2026 14:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B635B4A3D4A; Wed, 2 Sep 2026 14:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ACWU0Iwy" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 32A6149C4D1 for ; Wed, 2 Sep 2026 14:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360277; cv=none; b=GfFqDm61j3y+pPuUxSIIE1ZvBECI+NcvGojfKP2AQqoxKPJq1QgqDCp0lKuNcxFHRvdlJ+uodJtDHVeCLlfhRym8MNrZFewAmXTeiSl4DW8Q9d5wdoGhvYe4eQpsMs/BYP5H0l6Ezn8LGfg6DxXGIanxPeLeUhiA1dtyjnFQnLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360277; c=relaxed/simple; bh=YYJcWSK0o8g3JZG0m9jWuvgOSpeoKqWZxSBIxDt0t+Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fzjc/mSty8EFbjsINARks7jv65JwUmh5M+hLTCSB36ndbGYgUpAZApYm7+bh0LLwbbuXN/NBjmtePDCsC8mr3Hjz6v5EuEcW1rdw/p5o6+IgMjhRM8Qr/mWK6bnXEWzkprW34Nb4zj6kATWh6rj5EXpN3M6wYVYE/Uuqv/esuUk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ACWU0Iwy; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360273; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2JnrEcZXT7a4Ko8RzDbmeGNWkBaG45AGwndXeHnOoAk=; b=ACWU0IwyhJjAcDBGVJXfeuaDFptsi0u12vv1ShnAG/jLMEt9YHrBRCbQDWUKVpp8m7ZL7Q 3L2/n3v6jaTNf5n+i0fgnx6rrHOnv7gmXCNTwpZXXlOU3fwrKNEZxA9LMQ2wt2KBqjmESk RfJTYhp8YZqNvVYaoBFAKDH8lmAGI6c= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-441-a2JSz_KeOTmg8-pUeyfoLw-1; Wed, 02 Sep 2026 10:44:31 -0400 X-MC-Unique: a2JSz_KeOTmg8-pUeyfoLw-1 X-Mimecast-MFC-AGG-ID: a2JSz_KeOTmg8-pUeyfoLw_1788360267 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1BE781944EBC; Wed, 2 Sep 2026 14:44:24 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1DCEC1800765; Wed, 2 Sep 2026 14:44:09 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 01/13] audit: log all six syscall arguments in the SYSCALL record Date: Wed, 2 Sep 2026 11:43:34 -0300 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org The SYSCALL record currently logs only four of the six syscall arguments (a0-a3). The remaining two are captured but silently discarded before reaching the audit context. This leads to the need for auxiliary records when audit-relevant data lands in the 5th or 6th argument of a syscall. Extend the SYSCALL record to log all six arguments, by adding arguments a4 and a5 (5th and 6th syscall arguments respectively) inline within the existing record. Also add the two new args to the audit rules switch case, so audit rules can filter on them. Rather than plumbing two more register arguments through every architecture's syscall entry path, change __audit_syscall_entry() to take a pointer to pt_regs and use syscall_get_arguments() to retrieve all six arguments. audit-testsuite# make test audit-testsuite# ausearch -i -m SYSCALL ... type=SYSCALL ... syscall=sendto success=yes exit=1088 a0=0x4 a1=0x7ffe43518b60 a2=0x440 a3=0x0 a4=7ffe43518b4c a5=c type=SYSCALL ... syscall=openat2 success=yes exit=4 a0=0x3 a1=0x7fffc74692c8 a2=0x7fffc7467390 a3=0x18 a4=0 a5=7fffc74674f8 type=SYSCALL ... syscall=openat success=yes exit=3 a0=AT_FDCWD a1=0x557ced4141a2 a2=O_RDWR|O_NONBLOCK a3=0x0 a4=0 a5=0 ... Suggested-by: Will Deacon Link: https://lore.kernel.org/audit/CAHC9VhSjEt_-Bsra4AEqWv+Daw5Ff=gqy7dX4Ah11RVhdyCBUQ@mail.gmail.com/T/#t Signed-off-by: Ricardo Robaina --- include/linux/audit.h | 13 ++++--------- include/uapi/linux/audit.h | 2 ++ kernel/audit.h | 2 +- kernel/auditfilter.c | 2 ++ kernel/auditsc.c | 19 ++++++++----------- kernel/entry/syscall-common.c | 4 +--- 6 files changed, 18 insertions(+), 24 deletions(-) diff --git a/include/linux/audit.h b/include/linux/audit.h index 45abb3722d30..9ce5962bc537 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -323,8 +323,7 @@ extern int audit_alloc(struct task_struct *task); extern void __audit_free(struct task_struct *task); extern void __audit_uring_entry(u8 op); extern void __audit_uring_exit(int success, long code); -extern void __audit_syscall_entry(int major, unsigned long a0, unsigned long a1, - unsigned long a2, unsigned long a3); +extern void __audit_syscall_entry(int major, struct pt_regs *regs); extern void __audit_syscall_exit(int ret_success, long ret_value); extern void __audit_getname(struct filename *name); extern void __audit_inode(struct filename *name, const struct dentry *dentry, @@ -373,12 +372,10 @@ static inline void audit_uring_exit(int success, long code) if (unlikely(audit_context())) __audit_uring_exit(success, code); } -static inline void audit_syscall_entry(int major, unsigned long a0, - unsigned long a1, unsigned long a2, - unsigned long a3) +static inline void audit_syscall_entry(int major, struct pt_regs *regs) { if (unlikely(audit_context())) - __audit_syscall_entry(major, a0, a1, a2, a3); + __audit_syscall_entry(major, regs); } static inline void audit_syscall_exit(void *pt_regs) { @@ -611,9 +608,7 @@ static inline void audit_uring_entry(u8 op) { } static inline void audit_uring_exit(int success, long code) { } -static inline void audit_syscall_entry(int major, unsigned long a0, - unsigned long a1, unsigned long a2, - unsigned long a3) +static inline void audit_syscall_entry(int major, struct pt_regs *regs) { } static inline void audit_syscall_exit(void *pt_regs) { } diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index e8f5ce677df7..6726059d6df1 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -303,6 +303,8 @@ #define AUDIT_ARG1 (AUDIT_ARG0+1) #define AUDIT_ARG2 (AUDIT_ARG0+2) #define AUDIT_ARG3 (AUDIT_ARG0+3) +#define AUDIT_ARG4 (AUDIT_ARG0+4) +#define AUDIT_ARG5 (AUDIT_ARG0+5) #define AUDIT_FILTERKEY 210 diff --git a/kernel/audit.h b/kernel/audit.h index 92d5e723d570..83011b14af18 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -117,7 +117,7 @@ struct audit_context { struct audit_stamp stamp; /* event identifier */ int major; /* syscall number */ int uring_op; /* uring operation */ - unsigned long argv[4]; /* syscall arguments */ + unsigned long argv[6]; /* syscall arguments */ long return_code;/* syscall return code */ u64 prio; int return_valid; /* return code is valid */ diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index f52645625214..cded3696e3c5 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -358,6 +358,8 @@ static int audit_field_valid(struct audit_entry *entry, struct audit_field *f) case AUDIT_ARG1: case AUDIT_ARG2: case AUDIT_ARG3: + case AUDIT_ARG4: + case AUDIT_ARG5: case AUDIT_PERS: /* */ case AUDIT_DEVMINOR: /* all ops are valid */ diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 2b9ce0b52511..cf45c782b03d 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -728,6 +728,8 @@ static int audit_filter_rules(struct task_struct *tsk, case AUDIT_ARG1: case AUDIT_ARG2: case AUDIT_ARG3: + case AUDIT_ARG4: + case AUDIT_ARG5: if (ctx) result = audit_comparator(ctx->argv[f->type-AUDIT_ARG0], f->op, f->val); break; @@ -1674,11 +1676,13 @@ static void audit_log_exit(void) AUDITSC_SUCCESS), context->return_code); audit_log_format(ab, - " a0=%lx a1=%lx a2=%lx a3=%lx items=%d", + " a0=%lx a1=%lx a2=%lx a3=%lx a4=%lx a5=%lx items=%d", context->argv[0], context->argv[1], context->argv[2], context->argv[3], + context->argv[4], + context->argv[5], context->name_count); audit_log_task_info(ab); audit_log_key(ab, context->filterkey); @@ -1970,10 +1974,7 @@ void __audit_uring_exit(int success, long code) /** * __audit_syscall_entry - fill in an audit record at syscall entry * @major: major syscall type (function) - * @a1: additional syscall register 1 - * @a2: additional syscall register 2 - * @a3: additional syscall register 3 - * @a4: additional syscall register 4 + * @regs: the task's register state at syscall entry * * Fill in audit context at syscall entry. This only happens if the * audit context was created when the task was created and the state or @@ -1983,8 +1984,7 @@ void __audit_uring_exit(int success, long code) * will only be written if another part of the kernel requests that it * be written). */ -void __audit_syscall_entry(int major, unsigned long a1, unsigned long a2, - unsigned long a3, unsigned long a4) +void __audit_syscall_entry(int major, struct pt_regs *regs) { struct audit_context *context = audit_context(); enum audit_state state; @@ -2012,10 +2012,7 @@ void __audit_syscall_entry(int major, unsigned long a1, unsigned long a2, context->arch = syscall_get_arch(current); context->major = major; - context->argv[0] = a1; - context->argv[1] = a2; - context->argv[2] = a3; - context->argv[3] = a4; + syscall_get_arguments(current, regs, context->argv); context->context = AUDIT_CTX_SYSCALL; context->current_state = state; ktime_get_coarse_real_ts64(&context->stamp.ctime); diff --git a/kernel/entry/syscall-common.c b/kernel/entry/syscall-common.c index b8eac9efb6fd..471db2a8e09d 100644 --- a/kernel/entry/syscall-common.c +++ b/kernel/entry/syscall-common.c @@ -22,9 +22,7 @@ void trace_syscall_exit(struct pt_regs *regs, long ret) void syscall_enter_audit(struct pt_regs *regs) { long syscall = syscall_get_nr(current, regs); - unsigned long args[6]; - syscall_get_arguments(current, regs, args); - __audit_syscall_entry(syscall, args[0], args[1], args[2], args[3]); + __audit_syscall_entry(syscall, regs); } #endif From patchwork Wed Sep 2 14:43:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296763 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aMd3v6LS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=e0f+=g2=vger.kernel.org=sparclinux+bounces-7425-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZm913v0Cz1xvf for ; Thu, 03 Sep 2026 00:59:33 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZm912CX4z4wFP for ; Thu, 03 Sep 2026 00:59:33 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZm9123K5z4w9Z; Thu, 03 Sep 2026 00:59:33 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361173; cv=pass; b=IPao5cW5WFQIMlQpOQBAdRe20aIyV/NAQErNMaCRkt3GXRBzrAMbsF4WSmeSBoPGxTqlylWbt6DzXJERpOFkUUyANoHVRVQEriEHZdTu/dZpKLyotAZ5QjI5PTkuz5gixlUIPtxQupWUr9j71c2OWqyyn2duj3s6Q92+WPdErUTF6Jmo6OeHA0SkmacXs92zLW1IpwsBLsxyOzEekxGkXwWr0+NdAKmOZylqeJ5BLcxd/dzpRl7KNr8D450SQY027CWHD7/z7XPXPufqnK5CDs0KrmubMGZwziQkZDrhviiP/CNaoO6rQCtxCi+/xit1aekvusw11wY2CRFo+WeV5w== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361173; c=relaxed/relaxed; bh=WqVatm7SO4RAJULUJ3fy6bXN1Cic9NEzCojra3OqLQ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CXy21RE4faIqyb8aobj3yNbdKO4/7C4sacFoHaV5tP/0Wmfj5d5S9K2y80cIh6pJNpBX1zcZN0FOs0dFTm/2HfPIj3FtpQFQmQXOSPMo08RCVpztyY4+dvNj57RXhMfJcglUGcgg6x3LUscxM2O/AsMyq9bqK4u4xy7zq4nzMBftReMrY2l5209V9wTHVfZ6mPajflVZHZsrpus2zYAK7qJ+4LtB/2E+oNqf3OgiIxgwE018Key1glaWnH+kQPhNbxrqKxhsQRPHYx8jrRX1pMNcY7Lh7raxdVQChZZnU8tgF6XMomjsFyqZ00NRLx4nPy9iEglxt3QSI7o9m8r+sA== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aMd3v6LS; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7425-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aMd3v6LS; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7425-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZm8x4lWNz4wFP for ; Thu, 03 Sep 2026 00:59:29 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 6AA29480E1 for ; Wed, 2 Sep 2026 14:45:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 130504A3F02; Wed, 2 Sep 2026 14:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aMd3v6LS" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 09D584A3D35 for ; Wed, 2 Sep 2026 14:44:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360294; cv=none; b=rjsKSC2uW/iij4+hfIWDpeZ+t+BNozgpsLWoiEEtjyixp2tbFsslpdLNgP+dZ/lvLtQQmnIfqUyHwVE6TY9FpZyqyTZFdc6jryI5Xa2Qff+8y6J2kNiuRU5SwEq8spxVy4ncd2S4STqtVpWBVEXe24ekzoeswgL2UaR9/AWy8CQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360294; c=relaxed/simple; bh=viHpp99FKRJsQc5vLWyWAYVcO2oZKVIY6BDS2Ha0zlU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jz6JxzYwIQgipCLvEHk8LqS0ucgKcU/gpzCXCmhqbkJi0xEWpTlcUnHKE7PEne09kMMSITMDvw74l9143MXLXDMrw4Y1dldcKEL6YT4qA7xRHf0hhT1reukT1w+SN3SwjfLRphAGSrdEQBR+PWpMmmXqmMJtAMj3hxSfhwNcHww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aMd3v6LS; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WqVatm7SO4RAJULUJ3fy6bXN1Cic9NEzCojra3OqLQ8=; b=aMd3v6LSbr0H4463jlVcrLZo19U0lRHWfxnnQpqDdqqwMvrlaoUjHslgIfM6LNBAz6Nmgm RkoB6lk7DLY4qdB9X+qwUxMSLwBT34nufGfZ+y7Qkj5eICIZSE406ILSVNgFLgwNdUGAX9 VZdZ3/FvtN3awSS11aaObw6LoFePPh0= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-649-tj9F9GjaP92Ad6IHG9-Djw-1; Wed, 02 Sep 2026 10:44:45 -0400 X-MC-Unique: tj9F9GjaP92Ad6IHG9-Djw-1 X-Mimecast-MFC-AGG-ID: tj9F9GjaP92Ad6IHG9-Djw_1788360281 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5BBAB1954AE4; Wed, 2 Sep 2026 14:44:39 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8FCB81800643; Wed, 2 Sep 2026 14:44:24 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 02/13] alpha: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:35 -0300 Message-ID: <4ada9fcbb93af8d5c1c9bfe2c83d94fc10bfe327.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/alpha/kernel/ptrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/alpha/kernel/ptrace.c b/arch/alpha/kernel/ptrace.c index fc8f6cedbb28..8a39c0473297 100644 --- a/arch/alpha/kernel/ptrace.c +++ b/arch/alpha/kernel/ptrace.c @@ -496,8 +496,7 @@ asmlinkage unsigned long syscall_trace_enter(void) } #ifdef CONFIG_AUDITSYSCALL - audit_syscall_entry(syscall_get_nr(current, regs), - regs->r16, regs->r17, regs->r18, regs->r19); + audit_syscall_entry(syscall_get_nr(current, regs), regs); #endif return syscall_get_nr(current, regs); } From patchwork Wed Sep 2 14:43:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296777 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NQDJ/Zs4; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=exev=g2=vger.kernel.org=sparclinux+bounces-7426-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmYQ3GrTz1xwZ for ; Thu, 03 Sep 2026 01:17:14 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmYQ1tkQz4w9Z for ; Thu, 03 Sep 2026 01:17:14 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmYQ1nmFz4wCm; Thu, 03 Sep 2026 01:17:14 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362234; cv=pass; b=pdcGMIFjB8+12WcnyX2BM7AxdUushYrAF+wThP0OjN+drrjip0wpr1p6qHRXFjHwn8GqIpa1Q68/wwMzQ+7uyD3uW6GwgiuyIyxByBuTmTy+3muOOpNuyiSUDlYaNmusXHgH9zHVWlccYZvBNWAXsasn0wgtOECr4/q0d51BT7aAELDJxYeu7YinGRf766QZD0X7jnD321SB3aBsXmmdCyBVT8OGHYPMCXgtOqURL9obRsgfgrJdInp/V+UAcvXGPNGlJ9U8np4G2C7/Hc4bZMSgIo3Z+Q8JtVglAbOrDziQRsDxdoiV4eLhtIvx/ZuhLNExk+VAAn5bO51UG0c5gw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362234; c=relaxed/relaxed; bh=bIvLvNjfFpHlzvcj5ekjg7l2b7htCeRUTqEEz8CXAmk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hTs2yT/36XK19eYmVyw7lxxFsFudZUG+W4lf4sfaFP0iCGfxXiyRrL/dD6qyBN5TVUUNPMKMXAxiRLUIJFStFg5AsZAV8dHQZluFR7WcR2pnIyAWorfSvqdTtpFeUfLhu0RiPqYXoVqh6wiLIPA3vKhmVergRmdlcyem1bFUKeyPjedySEEeCs3k4XoBnkYmOtxPTsmm38eGuQufMOO+NfaKMr+qNXR8aiwN4Br9i1xgA/1M8sNZ8H39W3X4qAU2ca9ia+lOKp0yoBSXfkf6arYKabwOhqlifEUwAsS9x+9DiL6rCEHonP1sq8sXdyxrv9XKqGB6bu2X7BPp53NkgA== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NQDJ/Zs4; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7426-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NQDJ/Zs4; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7426-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmYL3zqYz4w9Z for ; Thu, 03 Sep 2026 01:17:10 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id A2A04C89B7 for ; Wed, 2 Sep 2026 14:45:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 536684A3F18; Wed, 2 Sep 2026 14:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NQDJ/Zs4" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 D99E64A3D5A for ; Wed, 2 Sep 2026 14:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360306; cv=none; b=Qi8xWO5DBAAJsTKcQW9sacnJMKypVgL1xazmR/XG3k6Sw4YxezAOpvSDN70Lz4TOS9wDhP1egbH3/HFSK9ZAFLY2cWojq6zL8NIxRhX5CGuQsb5kwCiRhwFpKNaARaGo0qC+ca/paCwVqnxf/nVii8GTZRl8Z6QU4SX5hKfWa5E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360306; c=relaxed/simple; bh=4n+0+5i30Q5tAHEJnQORXuPv5JKrVny4oORcMMejxfQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fDuppkuzrZ9MWawH/ZbbazuIpDFckMnALJMo/US6QEBfib7V1UMN7yibFQveC5oRZyk/MkjQjfCCOJh1GgLl1Dl2TJKO05ucDk9gOnei5r0epYlgN5WuSChSCqNYwAHnwh27KDc14eOfRWYgg4mF0QW0rRk9VyJjLP5TkHaTsuM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NQDJ/Zs4; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360302; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bIvLvNjfFpHlzvcj5ekjg7l2b7htCeRUTqEEz8CXAmk=; b=NQDJ/Zs4tYyXR8UPGl6Pa9+mXqXXJLEZ1j7aBJSAQZ0WJ23FzzyZ/FceXxRtHPNvEXB+T2 96twAcgu1cCu5Yfh6J8GUt7n5MdRhYdYcUEutxFWn5dTiP6yJosZvlhVK6UyIMia0YbhDG B4GjLUWZYB9rkKf9Ukgq81I2Ys/zxF0= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-510--6trhLijN-alxn-pagj6FA-1; Wed, 02 Sep 2026 10:44:59 -0400 X-MC-Unique: -6trhLijN-alxn-pagj6FA-1 X-Mimecast-MFC-AGG-ID: -6trhLijN-alxn-pagj6FA_1788360294 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4EB50192DD59; Wed, 2 Sep 2026 14:44:53 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CF44E1800644; Wed, 2 Sep 2026 14:44:39 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 03/13] arm: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:36 -0300 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/arm/kernel/ptrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index ed7a2a87a670..e103ec2661cd 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -868,8 +868,7 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, scno); - audit_syscall_entry(scno, regs->ARM_r0, regs->ARM_r1, regs->ARM_r2, - regs->ARM_r3); + audit_syscall_entry(scno, regs); return scno; } From patchwork Wed Sep 2 14:43:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296749 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V0ozld28; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=6kdf=g2=vger.kernel.org=sparclinux+bounces-7427-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZm1R4rN5z1xwg for ; Thu, 03 Sep 2026 00:52:59 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZm1Q6NVKz4wFP for ; Thu, 03 Sep 2026 00:52:58 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZm1Q636dz4wBF; Thu, 03 Sep 2026 00:52:58 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=172.234.253.10 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788360778; cv=pass; b=bboNU+6JT+UUUUW9cFJifauFfm/Y9E1Q6xDZA+JnUMxax0pMR6KTO2fSS/OE122JZrmb3n12OQu+1P9DOqq7RuOkUpTVRopuk4ch2Thw7bjtia26gagwOjS1ljW4S2VsjRGCOXW2XEZQXfB3/agNZ79vqAsV9oL7FZEk11nEXN5FQA51V0moBQIBzIywy1Z+dxbeTpNHYxcim1hjkBJQ6bekVvt5uI2/UnfxSnOlz+/EZV85OxIodoeZ+c0Wo0u3RmkuE6KzVbuugOa9LYp3i/0xrDhEHuOUNII5r/J9T65sIXIVP/yc6nZ20fcj1Noa8+Pt5qVpXSVpvRo3LCRHmA== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788360778; c=relaxed/relaxed; bh=vE1P/olvp3+bKqpzcnfp1l9GInHg3ox03H37VJYA0pc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=xWwaMvRsKloxzlcwwpP9taGUYlP4EpOrRFQgCzuv57SLDW32ZY1QO3XmVEeNEhqNuXclx8AY1YwYoT5l2DcVOthm2DdatGHforFr6s3NMdPQPZ9T59WDuViIChnVu5gHHbuGoUNUSq4Y+kLvFQ7V3zMxhLx2zbqeicqJ0iIRRs9F8gVghwiXEsPgCEXIflst170e3a6GbqXr3V1zBZyX4W2URDfNpZG7VIhd87M3ivqExEwYEZ0HqY4nyWZdPJlTCygDvl2gv6bs9MX8xy32qY65kDWGV7+G9A8+r3lxDtbfegu6Wzlntcq1NOuCckl+Gzly6+myyf4j1oAbMJGQYw== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V0ozld28; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7427-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V0ozld28; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7427-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZm1M1DRnz4wFP for ; Thu, 03 Sep 2026 00:52:55 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id C899BE151F for ; Wed, 2 Sep 2026 14:45:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBDA04A3F32; Wed, 2 Sep 2026 14:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="V0ozld28" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 16CED4A091F for ; Wed, 2 Sep 2026 14:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360322; cv=none; b=iMdCk2qOARytcNZcqEOIxO9H/gkC+tIEvy1D5TFx2wZ23wn1NpJuwFW7KNa5icd9oalmdSv0nGw0LrWP0HPO9L8RP1CNxkgnGvENGdLIEblOibziGXE6laWCV50d9orHSuput9HY7eaA7C+U0FEO7FXubuSObjRN1j1a+P0qMBs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360322; c=relaxed/simple; bh=9GeWUP82q+/B9JJxMUYt+IHDDJj6ypaoMuCaHgdv5IQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l7wC3M6BWEFJx0tvvSFIRV4KJNRKl/yCrruTvc4KjkAxoDGXi/0KXQzCB8OoUvAwqXUmBP+sxWSMrjOl5xuIivuEjdXYNNYmdV+UKj2loiItRdDQJgW/HPq2CqLXt6esMtIn5BGC0eSZVyS7j2Y0nKRsXG5LWblu7eBOFU3kMv8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=V0ozld28; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vE1P/olvp3+bKqpzcnfp1l9GInHg3ox03H37VJYA0pc=; b=V0ozld282fGaH5aytnLyagzOqhqFCp+ppOgtVUaeQLS6YTuFV2DcYXovbvypQXmRdklBXu dqWJ1i2RubRNxUwT1HOmfeeavrmYdrQ+KWjV/KeVOe1NEskIOze4hR8Fnc3+Gx44ntMrck 63v5YcJBTTETVHTrfg0451yF2LafARQ= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-625-DkV1fo4oOi-hNmkoEOv3GQ-1; Wed, 02 Sep 2026 10:45:14 -0400 X-MC-Unique: DkV1fo4oOi-hNmkoEOv3GQ-1 X-Mimecast-MFC-AGG-ID: DkV1fo4oOi-hNmkoEOv3GQ_1788360307 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3CFE2195E93E; Wed, 2 Sep 2026 14:45:06 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D5E981800642; Wed, 2 Sep 2026 14:44:53 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 04/13] arm64: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:37 -0300 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina Acked-by: Will Deacon --- arch/arm64/kernel/ptrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c index f743cbec1c3a..65532b2a8cd4 100644 --- a/arch/arm64/kernel/ptrace.c +++ b/arch/arm64/kernel/ptrace.c @@ -2476,8 +2476,7 @@ int syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, regs->syscallno); - audit_syscall_entry(regs->syscallno, regs->orig_x0, regs->regs[1], - regs->regs[2], regs->regs[3]); + audit_syscall_entry(regs->syscallno, regs); return regs->syscallno; } From patchwork Wed Sep 2 14:43:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296814 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UUGGt4ZK; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=ir+7=g2=vger.kernel.org=sparclinux+bounces-7428-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZnKk5S6Yz1xwg for ; Thu, 03 Sep 2026 01:52:09 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZnKj18GHz4wCX for ; Thu, 03 Sep 2026 01:52:09 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZnKj0qMYz4w1V; Thu, 03 Sep 2026 01:52:09 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c15:e001:75::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788364329; cv=pass; b=wGO1tdOqhy9RpUOTa5f4W5ycSw4Zh69n0cQ3LpAhOyWw/HPMACDXyCawyBpPZIlJuopj2aTh8OoGJKw256bseQs6EZ8tueu/2FhFTqqwtFjIwiaCjTjWvZ99ijz0y4xc9Em1LOtnap9X11vRuHK79/vyONJ20cx7PaMFZMrw+6wQC+FIAbSpdF/LMDx4kQQZgi3O0oZQGD1Dyfo+c8H07FckMb5F38SmGkVmK0Rl7CDluxyryvpOelWXqUV6ef3OngA/cS3WirD6dcnHHu6dfOzrLwQBdDerBGWP+5GYrPURtEOzXpwjnAaZxL7LJLDz/3zkkeqbVnKixygUJaMlNw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788364329; c=relaxed/relaxed; bh=iMrptk4mqYOQP3eWTGD3d/U/K/Lln3cM3PUoSH99Zx0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X5Gtp5FnO/+rBZLlgZkobZSfx4QIibvz4VjDLXBrl7wi8obsqetvr9v2twuZt1cmk7Ehmu0JaPeIw+0EgFElc08KFw80WOw6zMk3bqthQamzfyv/GnkEunaXtOz4h/0JeFwvdKbV3ok05JHTC+URYDZF4EUw/bxQlGXEKjx/ZBleURLyzmOHiYU3SlXTN1+cfbCo5UUq48Vcm5TGaa3wmzPHI2cCkahCk2kk87XkfwVenBEVcMv7YCVwZWmuVJB/tm1zE7e5gufYTq6SeKul6rSOg1KyF4oY6yV19R9t0UO8SzkQRVQVxGXQOCF6Cw36qO2cMoGp5p1P1iMsQkbszA== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UUGGt4ZK; dkim-atps=neutral; spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org; envelope-from=sparclinux+bounces-7428-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UUGGt4ZK; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org; envelope-from=sparclinux+bounces-7428-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sin.lore.kernel.org (sin.lore.kernel.org [IPv6:2600:3c15:e001:75::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZnKd52ZTz4wCX for ; Thu, 03 Sep 2026 01:52:05 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id D6CF347CBE for ; Wed, 2 Sep 2026 14:46:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE46E4A4820; Wed, 2 Sep 2026 14:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UUGGt4ZK" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 818234963A6 for ; Wed, 2 Sep 2026 14:45:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360334; cv=none; b=TFmdU48zpDzRrM+bZDQ4FD5z4b/8sOc6Oqpu6Pzsl4ut/rNsTALHWFjE2wtQpHj6V19eQt/X14YH6p1bC2BD+Ilxo59xPcbUYpmyhE8MyfRgVWkb5FI0cWUIjXrM3FoBp7WaSaTA3Lu3tJAyCcBnZoxAI1IhEoZTtWSWnFMQsKk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360334; c=relaxed/simple; bh=jq17hbYLb63begqUlax0zfoLb1QS8lLPBPIiPSa6mk8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gm+fEna2QSiVseOd2WFyktSU2rRGFJjY69ZFk+NcJqaMOMCkuQGINA5d9M173tOtIbJtoMA5r4pUsaQjdjRj8WInaNm7l75hJdBfFL62Wm3yHtwKFBCgFSo5tRPc2tKEma9HWSEXK4zCVOOmFyclmaq+iHNawxLyJZ6BJOYREkc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=UUGGt4ZK; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iMrptk4mqYOQP3eWTGD3d/U/K/Lln3cM3PUoSH99Zx0=; b=UUGGt4ZKCdPEFC6ZwiyVCeLCYtXEfLmfchpxB18I+NiQKAjFFaTKH9fF1zJqF1+hiGCCio FyLLvWDJkvEckCzowx4VrqNf/BcZUHZ9irs4nPAcImFQ+ScL7pdNvAIIsNW+Ll2A2Al9ae QiX6qIxF0A82d4oSGiLnqq41VnFd6M4= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-199-U63W3z6YNve8UdxmLpajGg-1; Wed, 02 Sep 2026 10:45:24 -0400 X-MC-Unique: U63W3z6YNve8UdxmLpajGg-1 X-Mimecast-MFC-AGG-ID: U63W3z6YNve8UdxmLpajGg_1788360320 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9B785195D03D; Wed, 2 Sep 2026 14:45:19 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B17831800641; Wed, 2 Sep 2026 14:45:06 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 05/13] csky: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:38 -0300 Message-ID: <83f97472fb90a20f84892b6686c2158027c3e06c.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/csky/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c index ee2867a1576e..5c3051bcd78c 100644 --- a/arch/csky/kernel/ptrace.c +++ b/arch/csky/kernel/ptrace.c @@ -329,7 +329,7 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, syscall_get_nr(current, regs)); - audit_syscall_entry(regs_syscallid(regs), regs->a0, regs->a1, regs->a2, regs->a3); + audit_syscall_entry(regs_syscallid(regs), regs); return 0; } From patchwork Wed Sep 2 14:43:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296769 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cSJbnX5N; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=62pt=g2=vger.kernel.org=sparclinux+bounces-7429-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmGB57rMz1xwZ for ; Thu, 03 Sep 2026 01:04:02 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmGB456Lz4wFP for ; Thu, 03 Sep 2026 01:04:02 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmGB41Mfz4wGB; Thu, 03 Sep 2026 01:04:02 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c04:e001:36c::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361442; cv=pass; b=tzcIla2ClbL2y1QpaHE5VX8QGVe8I5CW6QEKFm5UE5yoFYB73Y9ONv2VFaSD4RD52D/RDfuYWiTIxhOxWInjZxGK8tqS3X5ZN2tdSO8HOg+uyCaalpSMzHrsiXsgiRqH+5fdrs4hSLAZG30nEUvg+MHEEbcftxeR2829YI2LC/+9zP9gT4cWPyYz8MIDAnK+XFqrM3yq2dKbgi0ZcPWFfRMhWLd6We60AWi928Af0sTYF9fdcm8wQdgQhJ9BnDEdVJSNMFnZsZOLNcY+gyNWVFGTfJsA0NgqscAPLt41ZaRldKV2nNXeGqhBNvylvlcmRvNYf98a7VI94tADJwyhgw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361442; c=relaxed/relaxed; bh=ItBk91wHSYNF8sJoVrRHTmXutoGVHgHWsPITNC9iFGU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a5LBZ9+ZtF//NOIk1pks3wkDT/cb5UcYHzFwwMH92KcngGDNEFNfLWtTDT8WFkVg1LxGDI7cT37HeL1tCrf2oFxtjR0Mi/eFS+0fVmZqRERjbyVHfdcKRhFd5r5cyGV6TagR1pZ4vS3JL3Q9WJ9cP4sBnNNxlHPs2zBbRXvB5USWIs6Sr+R/Ujh5QvKazDYU5mwYDdkjJWmmezjQw3KyCzmVxVWI3zGa1AqJHbryoHgGsgzFSyc8L91PyU+hvSqP3pPHJrGvMs1leCBqQY1DwX5Y6SZcNiu4FiIiRXkSls0xWtc68+XrAwQbUJfYaswLEB+YSWwg8vOZl62HOgLS0g== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cSJbnX5N; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7429-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cSJbnX5N; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7429-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [IPv6:2600:3c04:e001:36c::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmG70RLKz4wFP for ; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id C4B41A0DA8 for ; Wed, 2 Sep 2026 14:46:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F3C24A3F1A; Wed, 2 Sep 2026 14:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cSJbnX5N" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 EE97A340416 for ; Wed, 2 Sep 2026 14:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360349; cv=none; b=FKiw1NpeB/GeXZj2+z+jQrQobNWZ8h9vyqt8FI6txTwdnqKMKIcrk2TXSXIzHQDNQnlBHaYwLMsTAaPNiXu/CeKwQV7tMu3f6ecjQ9494ctKUWmkdk8cCVxDgq3MligrwKrEnW9kVFL+v/LD7XD2Gsmg1fVmcE+GBxIeYNU8230= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360349; c=relaxed/simple; bh=8/GCA5LAxIagEVqfPnhqTs8UinXTcTM+5JmGK586QT4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bNj/1+nzv2bWfZlCcUc7CmQkAJ4o1cJi4JaHksH6Q42xgRPA2rptgk22FwE9+H3lrQ2ixKDP66HfRNNH7mc+4Y227s6DvwJ2umWM2zgZzLFlgDwL3pfKyvpAB2t9it2LNvkuiAQ9rbGn3rrg0laE6PPy7MgeA0bd2fzrZxBECZg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cSJbnX5N; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ItBk91wHSYNF8sJoVrRHTmXutoGVHgHWsPITNC9iFGU=; b=cSJbnX5NuBpVXlTHsqicPmzyOQlYW6mkcNxiVJmCmlO9lygNRGeiXnkl+0SJ0kmsuRlWdf tFKxQG3HjHcJ9dq4l67Kr3s2Hx49t4qDrIvKEv91jZPfCxIwAxOVGloiYGBk0FWQ8L7K3c u78+S3kur1X+A28B/VJk7RjJtJX3oqo= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-358-u0gr6a0fMcKlIaVx4XlB8Q-1; Wed, 02 Sep 2026 10:45:45 -0400 X-MC-Unique: u0gr6a0fMcKlIaVx4XlB8Q-1 X-Mimecast-MFC-AGG-ID: u0gr6a0fMcKlIaVx4XlB8Q_1788360334 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1DB4F18512F5; Wed, 2 Sep 2026 14:45:33 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1B99D1800641; Wed, 2 Sep 2026 14:45:19 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 06/13] microblaze: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:39 -0300 Message-ID: <185aac22d5afd79ef50f170332a1a808ff0a5b0d.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/microblaze/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c index 236264e932d6..5fe9e3a150f4 100644 --- a/arch/microblaze/kernel/ptrace.c +++ b/arch/microblaze/kernel/ptrace.c @@ -147,7 +147,7 @@ asmlinkage unsigned long do_syscall_trace_enter(struct pt_regs *regs) */ ret = -1L; - audit_syscall_entry(regs->r12, regs->r5, regs->r6, regs->r7, regs->r8); + audit_syscall_entry(regs->r12, regs); return ret ?: regs->r12; } From patchwork Wed Sep 2 14:43:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296797 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cwTiozn+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=ztb2=g2=vger.kernel.org=sparclinux+bounces-7430-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmgw04Kfz1y1D for ; Thu, 03 Sep 2026 01:22:52 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmgv5xDhz4wFP for ; Thu, 03 Sep 2026 01:22:51 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmgv5t2jz4wJ6; Thu, 03 Sep 2026 01:22:51 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362571; cv=pass; b=N9Lnd5m5zSOBu94nsmO6s0lZPrfqjSs8vxciwOmMEV0EhrKVyw5LMeHXFzd+NCKWsmTZOiqp4mJH5g/TH0dfFoRzmEXpcSuvcx6v44e8ftzR/sEq+UFvpztAZv76/KDCkRZ0JNYo+kfzmHQNmvLOLyBpwzgTNFQBAf3kRr7/3p/NhwFXkHP/xQe+fQcLtqxDTRI7TXNG3qacEdQ2UsvWdbeJrRoXSn8Fdgcct4BJmoSBbauLAkZtzfK1CEnui1BIWqJWE3x1xhzja43Eh9KoKrJQ7YRRaPEQ9MuTVIVfbmNgzyEnIvchHQg2VV0vA8FQvxn1yJ+ZqXem5xA3iik+wQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362571; c=relaxed/relaxed; bh=3jzmBjzGkcUWIV8+PXpCllBMS71YAnuNqy8uXQRSDk8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SvK798rxMVWssx2wkUZhVvPchOdrQUjKWrLE1ac2z6BWMJps7v4Np51LNR8entJD26GMm8g+dfz3/7Y/rvGcbBK7lN+/lUmxvostYDLse9aDou4agXTz6MMa0OIOMAyTUi2klCiDDVxVBTA6abZ2o26rCFi3Y2zUFbiKZ9+IGrmVjUA2SOGTcR0bw8RWbIK/bCLWZ5c0bRQavTidAHsG9XRl3hxU8gd8DKTY8P9H/2wsoTCLDwZo7ga1XgEBgJjlY8hhX3Q+OCmMYk3Yv4jjRc4ej3b1kRInnNg4fHosZfQjnfTJsCmeH45UQSK6QbyeqpHJqQXeX6oFyhDgVEnEvA== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cwTiozn+; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7430-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cwTiozn+; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7430-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmgq11fLz4wFP for ; Thu, 03 Sep 2026 01:22:47 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 81839862FC for ; Wed, 2 Sep 2026 14:46:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 553F24A43EF; Wed, 2 Sep 2026 14:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cwTiozn+" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 8F96F32D42B for ; Wed, 2 Sep 2026 14:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360355; cv=none; b=nQdRlI/cG1sMySIkPyIzipIRuthqe4Lho9aCWr5CCYcbmBlkIHwjeC4Ma2kynfBUPIc4Nu+nGDTh8VhTVwH9xVGmBJLRr7p/yUsgzuHQIfX93x2RiONp2p/DPtFoE3LQgSgfQrrtedpjqxcBf7woaKdqQfhdunXj9oq+Z4God+Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360355; c=relaxed/simple; bh=pSOOTYA1PnB0eQIBmyoqEag46PJtYb2GNPANAOhFQ3k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WqY/zq8s+wgodlL50B4DckJlen3jBONNNhl2zH3fkQRTssxymZUTgNQrWl4BVJMWepnx7gaHX1ZpjOtGMjCkrErDRPW4rRseVDUXJshmUwt1+5Cj993hgWBmXekOQPNibEDrhiBPyXzb53VHLCKIzM7FWZs7EYAmSv1Elg+n25o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cwTiozn+; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3jzmBjzGkcUWIV8+PXpCllBMS71YAnuNqy8uXQRSDk8=; b=cwTiozn+rLUjoLGZWHOALazhPcsyX04W+JL/tFLO86JHcl6bYWHqZ54aTAaBgLaQyFr5Ab pm1Ps/GI8zZEWBpLP5zptQCj5kvOdlDIbtRit8RkuBzKP6TAYJVWs7lbkFBJqx/5RvSHHP Jj8Eq3LfZ3HTaE07IJmPNidE73ftSfk= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-125-qp2Fhcg8PhKkCoXXpnbxsg-1; Wed, 02 Sep 2026 10:45:50 -0400 X-MC-Unique: qp2Fhcg8PhKkCoXXpnbxsg-1 X-Mimecast-MFC-AGG-ID: qp2Fhcg8PhKkCoXXpnbxsg_1788360346 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 96CCF184BA87; Wed, 2 Sep 2026 14:45:45 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 939571800642; Wed, 2 Sep 2026 14:45:33 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 07/13] mips: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:40 -0300 Message-ID: <153ece40b540f100ab436549b8e5819d52cd4f92.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/mips/kernel/ptrace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index 17dc7249b8ca..7a09b4671a54 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c @@ -1338,9 +1338,7 @@ asmlinkage long syscall_trace_enter(struct pt_regs *regs) if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) trace_sys_enter(regs, regs->regs[2]); - audit_syscall_entry(current_thread_info()->syscall, - regs->regs[4], regs->regs[5], - regs->regs[6], regs->regs[7]); + audit_syscall_entry(current_thread_info()->syscall, regs); /* * Negative syscall numbers are mistaken for rejected syscalls, but From patchwork Wed Sep 2 14:43:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296778 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ViQgTe6B; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=qi9y=g2=vger.kernel.org=sparclinux+bounces-7431-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmbZ6cbFz1xwZ for ; Thu, 03 Sep 2026 01:19:06 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmbZ5MD7z4wFP for ; Thu, 03 Sep 2026 01:19:06 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmbZ56Jgz4wGx; Thu, 03 Sep 2026 01:19:06 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362346; cv=pass; b=REOf9EYTnj5D7am/MOvkEV83ITM1GtQe9Iqsw38+gA2PfYMndagOSkCU5M5hVYaUaae29FX9Otu0/MspZteWolHwVQQSb+nnzXkWx/6z+6y2S/A3Uf6UsMsTtpIyJog3fy7Bfv8EeXYAoyW+7cSshZfIHzx/wWWZH58G0tglVV8v+amKmx06MauNYv71mzMjQcs9LY2gd9Bte7uaLEE0B8FFp3GCo9GOD39+02hkYGAiBjMmqdPuubz3gxYQ+hVkA5VKbHONmDzy57uWWo+V/uoWbWWDlMw6uqPLPNJpb+NPYUx16X8HbCP4mUQdwMg1/VQ2FULU1xIjwXA26VtrMg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362346; c=relaxed/relaxed; bh=rvbxpjMAQjSj/LINaSUWjfJ/DSqjHqJ5bhFD9zr5Fzk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mRUzlTQf8aVTI8UsCr+9RXj3ChmU6J5TlfyAf3EvOt85UQ3aE1WTypAAvUzEamOVMI3QkJpLd/Mo+dROoKkUleadVMuUZJGJv99zdgwzSsuROwaHRFIAw7/M61WNV5fsulUNbWVAya+pAyiIqha+NBBz5LzsUXcEyIhDEVhv8jTHQWSZ8FPLN4PqR1x4I613w69sO2Y5BTlDd5MT9zxPTEp64+P/LDVCLLzin2yPMMJhfVB+OsVZAwvoas5ejjDxl+airERQB6nInqmsIlV9SHmFZiem5WOXoE75vzIPF3qcxITyGNlzJaskVxh1i1LfLmgJSDnIVl3WsSkQPSV0mw== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ViQgTe6B; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7431-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ViQgTe6B; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7431-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmbW0W2hz4wFP for ; Thu, 03 Sep 2026 01:19:03 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 96534E4899 for ; Wed, 2 Sep 2026 14:46:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D1954A4830; Wed, 2 Sep 2026 14:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ViQgTe6B" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 887A44A3D53 for ; Wed, 2 Sep 2026 14:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360371; cv=none; b=ciNDF/w63lcpYxTrzAsQWK3b1MuwPm64YGkzwWHX9xTg8LHBZ4K3FggaVN+j0Yg9ZG2tF3Ldwn5JsMcAY9bbqxtrY+8COq0nCyDv1bej+J0qonSFoggQr4Kcrtuj1v2DKdPLPijb7Bjv7G7saK9MKnWxoq+wlfDeTRBeXQlJPzE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360371; c=relaxed/simple; bh=CCNONiB3FTFvhm2CZakx4OhF7akkV8b86dwa+v6Vp7Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mqQbsnugAyJ4V/vD1h6TxXvaUrafPZjyDUbtBw49oOC02rgpsgze2DhbwC9idYOFZwrT+MQdJHjMDGiqIC3zbPXd8lR7PHay+GaiZUSJFO8sKQhB0f8LfwxOflsq5qkFz75bUGPKl3KTTGoO9E8sNL8p6LCyAOJQOJfvNxO9qv8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ViQgTe6B; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rvbxpjMAQjSj/LINaSUWjfJ/DSqjHqJ5bhFD9zr5Fzk=; b=ViQgTe6BJihPxW2c+nAaRKlgxTXbH9GEW3Tz6cLJoyGRXkU0g/QyL24wpMug79pWhVuST1 +8aGu9IAYLMT/qj4zyt9yVXIWUA6szhQuAQfbXP0i24MCH8L+FDwfCc1sXjG4ctoBh1r88 cnr7ndRLoOBIcfRwGuTe3hgbRMgkbXY= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-120-prpdUxWTOB2NTILg9_DtWg-1; Wed, 02 Sep 2026 10:46:03 -0400 X-MC-Unique: prpdUxWTOB2NTILg9_DtWg-1 X-Mimecast-MFC-AGG-ID: prpdUxWTOB2NTILg9_DtWg_1788360358 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DA6641955D99; Wed, 2 Sep 2026 14:45:57 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 156A61801AEA; Wed, 2 Sep 2026 14:45:45 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 08/13] openrisc: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:41 -0300 Message-ID: <20dc1432035e116c2a0be75afc0504e4a8ac4274.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/openrisc/kernel/ptrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kernel/ptrace.c index 287a9718f0c6..eca613b84ff8 100644 --- a/arch/openrisc/kernel/ptrace.c +++ b/arch/openrisc/kernel/ptrace.c @@ -301,8 +301,7 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) */ ret = -1L; - audit_syscall_entry(regs->gpr[11], regs->gpr[3], regs->gpr[4], - regs->gpr[5], regs->gpr[6]); + audit_syscall_entry(regs->gpr[11], regs); return ret ? : regs->gpr[11]; } From patchwork Wed Sep 2 14:43:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296775 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJDYzkz8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=hbgg=g2=vger.kernel.org=sparclinux+bounces-7432-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmRF1fMYz1xvf for ; Thu, 03 Sep 2026 01:11:53 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmRF0PRsz4wCM for ; Thu, 03 Sep 2026 01:11:53 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmRF0JlCz4w2D; Thu, 03 Sep 2026 01:11:53 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=172.234.253.10 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361913; cv=pass; b=BuUs59jEicm33hkbTIa2RL9q0fGFSE8XpqXy/BYgnPEYcoYIJUBgY2PYAOb1C+pseZ56BDVhq4o1zF3PYLzjuIj/MdqnD2bRCUbsPqLx1q/OtydKy4qzvTvenakD3mfvfNNwpzHcqHmK3jVTN6AEaJNburL5mBGKwk2LriV7YA5lauFInp6LonMX0AWRJfAodMDuPBfl3Ll9xs8Xgp0pzWmS0eE92RwgVyhWYu/YUlKJfHuq61IIR/yCy4uG2+tffirVoxoHh7cZmRWCEb0maeT+vWOkAVNvOE7gsDOMHKkLFqKw4ZBxzsqBf1ul8gtwiuMuAJm5kreCSYowXYNq3g== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361913; c=relaxed/relaxed; bh=w7y9W91HQGBu0H2CHYYe7IynyY+rFM6Tt6aZ3QhTjIQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IyJw7EQM/+sZ2xc16baIkgYeKoIAotjC98hJAXqdYqRoEYCWrLvIcAKSRZzJa2K7ERKUx54mJdaWKs39TV6aaJAr9uDp3jxDfHFem9qli1CdBEaBP5VEI+0NBAVTVSd4xAaELFk+o5ZXoSZO6RMKgLq3YvaWbto0yU/59wBI/3RoOu+xKZ8YQLepdLCsETId34L2F8bDZxbiZ99YDaXlqMESMNtb+rSTL7JhCMa2LnVrmFhWwZBhGygkgHRkcKY5GuM42Fyw8cd+15P+br5byZrv8NNcyllXDP8NetEAcQEkJ/ZIR4RegX5AnMEV2zEXNdjR4MQa4cEO6fyKqMwX5Q== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJDYzkz8; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7432-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJDYzkz8; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7432-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmR84HZNz4wGB for ; Thu, 03 Sep 2026 01:11:48 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 713C63D55B for ; Wed, 2 Sep 2026 14:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1154A49A3; Wed, 2 Sep 2026 14:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJDYzkz8" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 C464A4A3F09 for ; Wed, 2 Sep 2026 14:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360385; cv=none; b=PviDONsn0gsjnwFgKLK9GJj7Kk7N/d247KJghFNKJ2LoZCRnpoHl1tUoFjb7PRRCo83ZGWyVH/6Rtiycg9E90z7OlB4RzJr08pO2qTnlBXWt2AHyPnSgzhFkW2+SquhMalBeMQXsbaYXq48KiX503V7EbFRgFUZB3zagOwX5MDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360385; c=relaxed/simple; bh=4IaYU5F5ZUse8/txNRWQkXrU6IWQl/7zD1+mzEskZsQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h7hhzaZQJrMG7o8dw9Si85KGTBNTAcIaZZTczEHWa2o35rKZZaD+6/wau2Q3quznerRu4L0ukujiv7zDV/pxtE+ocpk9hHlmXMrY2+HYervI+wIY6dS/T2hsSPsOKFp6fRn2SSbrW2U8jkRjb55UAFbYnjWSEBGG0cCOmdfjXF0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZJDYzkz8; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w7y9W91HQGBu0H2CHYYe7IynyY+rFM6Tt6aZ3QhTjIQ=; b=ZJDYzkz82IKHld9P6uBZPzyYzu0hvREP7kDKrl9jzQkK246JcLUgKyShsvZWqfD9DbX7/d 3nKYVFgR1qmiCDbI0hyAaYGDDRMKz/1/NpFqsgZ+DGgdtbjQWpudmMVB6RDb9rHZYVwBqv LfUO5icyZIrHvvEtEvlDlzphNzwQQ2k= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-dCVeTZG2PKK-c4lSlVKL2A-1; Wed, 02 Sep 2026 10:46:16 -0400 X-MC-Unique: dCVeTZG2PKK-c4lSlVKL2A-1 X-Mimecast-MFC-AGG-ID: dCVeTZG2PKK-c4lSlVKL2A_1788360371 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 52069180133D; Wed, 2 Sep 2026 14:46:11 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5965E1800643; Wed, 2 Sep 2026 14:45:58 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 09/13] parisc: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:42 -0300 Message-ID: <83d9a03e1fa526aef9f2ecac704c118a156401d7.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/parisc/kernel/ptrace.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 1d9e210702e1..948e0cf29ba4 100644 --- a/arch/parisc/kernel/ptrace.c +++ b/arch/parisc/kernel/ptrace.c @@ -359,15 +359,10 @@ long do_syscall_trace_enter(struct pt_regs *regs) #ifdef CONFIG_64BIT if (!is_compat_task()) - audit_syscall_entry(regs->gr[20], regs->gr[26], regs->gr[25], - regs->gr[24], regs->gr[23]); + audit_syscall_entry(regs->gr[20], regs); else #endif - audit_syscall_entry(regs->gr[20] & 0xffffffff, - regs->gr[26] & 0xffffffff, - regs->gr[25] & 0xffffffff, - regs->gr[24] & 0xffffffff, - regs->gr[23] & 0xffffffff); + audit_syscall_entry(regs->gr[20] & 0xffffffff, regs); /* * Sign extend the syscall number to 64bit since it may have been From patchwork Wed Sep 2 14:43:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UbL49rFF; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=dvwl=g2=vger.kernel.org=sparclinux+bounces-7433-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmm73KVjz1xvf for ; Thu, 03 Sep 2026 01:26:30 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmm63zwtz4wCM for ; Thu, 03 Sep 2026 01:26:30 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmm63sTcz4wCm; Thu, 03 Sep 2026 01:26:30 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362790; cv=pass; b=JQ4que2quK/9K1jR3k6MtShkGE9aPMikeMXjaccBYMuD+hsQMfceuFVc6q6ZrhmzpcByoAU6v8TrS1HB34krFbZBR+3IiMR97rwU9A81W9wF3+N7xJarcvagZhvNDEpnJH0Ch5A7s8AUFBhOfSvDVE0a3vQBpjCl4zElXdYzpB2diVpC4Oq3qk4uLOfTPsqd152X2tl9EPTO6PTdtVRtFV87z8/8wHU6cDsSzTDOCOtRoBZzqq3tX6LCv+iMZSqVQ9sGyRa+vwlEKiZk21jjv/r7JRFRhuGalJbEZc7e+jCyB3dkEVNGE7DTF3zIKfhk/hq+tU16OOxcNOK+BxPYUw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362790; c=relaxed/relaxed; bh=GiBzCemBLnI584lSVr86fUM8vzDEzjZRV2DJcn2fj5Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gbl0gV7ZtbbmRz07eKOOdtXkdsWidYvaB6GfyqItP61YSZnivDkfOIKDaKhLyKCG6OPrRwlvoTG3bz4kEbyQUx+2M/29AFOfWKkquD+TrsAEcIiU4Fwjq0tz4rwzuV7i1ngYOcpGLrGsYR5hh1kNEmIRLmb0l3338Ng2e/rUOgsX4rpfJQU4xWBvfSqjHImr5Mr+uSmZPykMnfuuoVBA1jblbNEeRvIbl59IUL00I5I+dbVfjwjKf4t/zcpPxGpDipeyaExGyM9ZKDZPGZBCSxi1IUF4tMfrg+aveaH4zDqx57mcAXGGrPcj0aruYHzBvyw0e/15K9KCMlnfAJfOZQ== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UbL49rFF; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7433-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UbL49rFF; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7433-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmm26NZXz4wCM for ; Thu, 03 Sep 2026 01:26:26 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id CD188E5208 for ; Wed, 2 Sep 2026 14:47:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 507D04A3877; Wed, 2 Sep 2026 14:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UbL49rFF" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 B5BF54A3F2C for ; Wed, 2 Sep 2026 14:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360391; cv=none; b=fcCru3aNuptSdRhU/FJprWHUTnGJGl9bJnMLmgu99qU+57dsf4X9XodrSGfq3GEcQg+6G3KY+C20mpE7biDCtIo5ybi//sX2Vn7OPl86jcP9kXI3qd1CnScuqJ9yQBjciNaY/snYN98tsfaCDubrOyYALz8itELTt5kQW1xPO1g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360391; c=relaxed/simple; bh=DlPaEd7noW1KyP3qScWGZfq/VdVWdVf5pnn1WR+m1Ns=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zb0Q+KUW/L3Sf5QZWPE/nDM3dHXrPPJgR6/1aIPHN8R9QgOrmJXQPlsSk2CXb4fhEBo1aoCwB7T8gOUAUyBSCDZqokgpexDKmC0bj81pmm/bvu/yGh/86Za7tsg3g0G1aq9nIDRPtiKr8txMgWMQipry8OwDegaMQBPaqFHo7OQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=UbL49rFF; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GiBzCemBLnI584lSVr86fUM8vzDEzjZRV2DJcn2fj5Q=; b=UbL49rFF4bHQW9/a/CsY5Mj4CNtLwNLERzyH84Q8Sbpf8EY1GY3YWNYkbN2jeTZ2d0f64z JdZq8CS7IU9RFY5HNICZqizlTtSWGKVhhu5+97RpthE/A6b7bl2TBCwm59HdxJgN91O+5J iSE5r/k+admnZyTxH2LuYo/rSaywYCE= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-257-eYe4-cicPwqUztVTJjLHNA-1; Wed, 02 Sep 2026 10:46:27 -0400 X-MC-Unique: eYe4-cicPwqUztVTJjLHNA-1 X-Mimecast-MFC-AGG-ID: eYe4-cicPwqUztVTJjLHNA_1788360383 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2E1C4180131C; Wed, 2 Sep 2026 14:46:23 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C669F1800642; Wed, 2 Sep 2026 14:46:11 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 10/13] sh: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:43 -0300 Message-ID: <097bd384731da18be54fafd41f67c60e2a70e37e.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/sh/kernel/ptrace_32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c index 8794081483fb..e138f529ee7e 100644 --- a/arch/sh/kernel/ptrace_32.c +++ b/arch/sh/kernel/ptrace_32.c @@ -466,8 +466,7 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) trace_sys_enter(regs, regs->regs[0]); - audit_syscall_entry(regs->regs[3], regs->regs[4], regs->regs[5], - regs->regs[6], regs->regs[7]); + audit_syscall_entry(regs->regs[3], regs); return 0; } From patchwork Wed Sep 2 14:43:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296779 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=TMJyK/d/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=ngp5=g2=vger.kernel.org=sparclinux+bounces-7434-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmbq3PTlz1xwZ for ; Thu, 03 Sep 2026 01:19:19 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmbq2B3Sz4wCm for ; Thu, 03 Sep 2026 01:19:19 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmbq25Lqz4wFP; Thu, 03 Sep 2026 01:19:19 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362359; cv=pass; b=jG/zn/0T9naq20o+cPlJGjWEu1nAfDB0gBcfRcTX8qAmnonHU+B3BLSPRb/jgws7nYgVW99WkIAX8Z8QJj3sGRalqa7kwJWcjTXqRXzqcX89ptqUJk769D2wp+qXhoqj2HOV87EQG8WHKolRPum265W8OgWt2cYdxWYdk/4sd5XDvICQJ6jxJIzTxOeUel/V7mK7poPdKs1aM3o6zArW6rlWrOARs3p6CUEohRuQzybIS0ZoHYNmEJg8X2W0UxKkncLgJFGDPWnaoIDxo56Zne6KtAN6H7UsIXWer8CIPJcqWVDDIKnjxKTG8Kz/oeupSJt0R3LJlIXsklB3SOcB9Q== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788362359; c=relaxed/relaxed; bh=d+wbQbDqSGkxHemqbPjciPTDnnklfXLc74JSqQp6y6I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mWtxyB9ORX8n3GgZkyFYw061WNz8SAeqKPTGpITRzlPGZyCG425Owp94c09h5UrV+PbQcI0E5qr/YmS7c+7ex68v5elsKCmEKc2p3598X0wmHJo466W4myShMcDkg3qMJ7Zjm944CcJGdUJGt2y2F6rQKpsczmgmWGW05kurzo+ECzmsSfvYenTot0B2YGT0fuaZ0arMGHocHTTEc/jD7UJ1wczvK84OB5RFcuzMGX7YrTejmj29JqLG4ZjXrFoz+QtfA+dhRtHCktp2W4MIa3QxYnMpcEBycHDKpVN9M7zS6R5T5bb0B2K13ClBHnkkFKUH3rRRjrcD/MZjF4KzWg== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=TMJyK/d/; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7434-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=TMJyK/d/; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7434-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmbl4rs3z4wCm for ; Thu, 03 Sep 2026 01:19:15 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 7B8E36880F for ; Wed, 2 Sep 2026 14:47:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 193CD4A4832; Wed, 2 Sep 2026 14:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TMJyK/d/" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 1A6EA474246 for ; Wed, 2 Sep 2026 14:46:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360407; cv=none; b=i8vfUoF7dJ/nItB7gEUM6QCNzphahBXFUFjFbn3IQDKGpWYxB2tHd4TKecpSjDmN6z3issQRMiQz/8BprHVxcayols4xI0igCbjWxXR0cL7EvOhAguxo4LnSrgrcyOphZSxUpWo66fQqL2GRxCyPlFj5CfhVGWiAIaqaQ62ZJ44= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360407; c=relaxed/simple; bh=g/z2c0uejjbvW+bTUcXx6A5unb4ZHFpYUUEpYX5hIYw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OUJ0agwwx8S4mBmjFQSP6U85RaT3bXZ5YUBDwjMuvludl8s1EU+QGbiDVuqkVFqYxCIyJosgwLddQegCpe/Z/ZO2S+w77jX9YkxlxHxfNGAk+AI92F2g6npllQJDtcFL6kWUgRvETnu2lFcHdlkHAPxvAQtXXxfYnlHXJtLfPkg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TMJyK/d/; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d+wbQbDqSGkxHemqbPjciPTDnnklfXLc74JSqQp6y6I=; b=TMJyK/d/UnjOWmj+2vMZDGSBY19zXzzvmRarEhaMZfSMNorCbCB5wtEI6Ljc0HzJGqLCak UzWI7QNJosUdMQxPYwXmaw1ODDbv/ZBZAJLqGNChGo+0OTZHUzaPB3PItPzvSLk8y8HV8C WeUK1yJzDXObsu+IKUm1V1rxyycxeyg= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-446-O9slN2rfNGSVNs8IHLvaPA-1; Wed, 02 Sep 2026 10:46:40 -0400 X-MC-Unique: O9slN2rfNGSVNs8IHLvaPA-1 X-Mimecast-MFC-AGG-ID: O9slN2rfNGSVNs8IHLvaPA_1788360395 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3C6021954AF4; Wed, 2 Sep 2026 14:46:35 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8846F1800641; Wed, 2 Sep 2026 14:46:23 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 11/13] sparc64: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:44 -0300 Message-ID: <336fa8f8d896ca7989bc483b53fdefe2152a16f9.1788351089.git.rrobaina@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/sparc/kernel/ptrace_64.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/sparc/kernel/ptrace_64.c b/arch/sparc/kernel/ptrace_64.c index 825ddf55fece..b162585b4a74 100644 --- a/arch/sparc/kernel/ptrace_64.c +++ b/arch/sparc/kernel/ptrace_64.c @@ -1098,9 +1098,7 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs) if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) trace_sys_enter(regs, regs->u_regs[UREG_G1]); - audit_syscall_entry(regs->u_regs[UREG_G1], regs->u_regs[UREG_I0], - regs->u_regs[UREG_I1], regs->u_regs[UREG_I2], - regs->u_regs[UREG_I3]); + audit_syscall_entry(regs->u_regs[UREG_G1], regs); return ret; } From patchwork Wed Sep 2 14:43:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296773 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZVMJPzz6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=loho=g2=vger.kernel.org=sparclinux+bounces-7435-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmLJ2pdGz1xwg for ; Thu, 03 Sep 2026 01:07:36 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmLJ1ZtYz4wC8 for ; Thu, 03 Sep 2026 01:07:36 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmLJ1Wh7z4wBF; Thu, 03 Sep 2026 01:07:36 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361656; cv=pass; b=yJw/FdHySDqdo9tJscDsC/oDD7lfBqeJTqC3a647wC1D080JTU548taQNdZftwpGCgnqmpNA3hSJoznSHe3+GT+Uq8M+jdjplEab7NSQfxzSQ5sQjrbv/k53si+hA+jSVtNcV/Cb3+R6PcuLQTVHyEsb51OVU8tyw5PftSDF1eCa/QNLYktbOnL6io3l9E+jtvFQTQ/E9julb8RUm/avQ4VFPnZsY9c8BoQTfHZqJpzW8lZODMBpgI7aNSnY0p3uvycxz3GoNfN3Ac9LIk7f7ItjOnhYptkkoFgBtGIzOWsh8PFd19XkzbIw0xGbqXak0XmP5yZV29h9/IxW7b7s4A== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361656; c=relaxed/relaxed; bh=ra0Ky6mXltAUt+LZScMYM+TpmdGUEEaSHVLD1V4U5Ys=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rb4PmxjYPvclmSjO5527EeD+baK4ZnlPSK2SRHr9gzFidTifhubp9XPsrHhWAV1udILseuV/aN2Li6DTXR2hr/VFhZs/DfJ0ykQqsz6tvMWN0ZHIcw02/UxvwXGm76WafNad/b10YCA3h0gr7spjG+vXjubfIGBMdV60nBgm0DVUmxFOwQxGDPngjHqQLxFOLQ7lJC574sLwqlUX6r+QjmC3By8XlOHruEGyT2jLy0dINnDcjlNdCE+88j9VlUQwZmByqpUwMvAvOzjV/76m4RiwI5fZ71N3DIP2D8ZpMgif5XxaKFkZaIfYNxxp18pyc+ijY8eSGB6j5n0yCuJBLw== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZVMJPzz6; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7435-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZVMJPzz6; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7435-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmLD3zghz4wC8 for ; Thu, 03 Sep 2026 01:07:32 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id C3246E5F88 for ; Wed, 2 Sep 2026 14:47:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C2594A43E6; Wed, 2 Sep 2026 14:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZVMJPzz6" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 8197D4CCDEE for ; Wed, 2 Sep 2026 14:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360420; cv=none; b=TixoO9cGAaE76wF279DwMOAzMOQ0oYSxJkHJZldArD1xFTmREIWBIrYRTNVAhHuNEo3ZKNxYrdjgKrsU9EzB6QdbLz6oWpZRC0Nuwy8xzw1oCf7XMRkqsmfHLbMnrnBCjghj9OItBn7jxJh1JRkMuFnMQsqZYIoe0pi4MfdTrzc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360420; c=relaxed/simple; bh=qaNpQ47O+nMx6JKMW9SpqDFRpcNJ2e0ML7m7iqV9m5g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ha67U8as6xo2yPr2JBRh6amAC5werlmPmJHHP4rA/+Fd+ZA+KrqIP3k9piTZi+RA7e3IIvoBOBRtPE1syvtdeesyNR4DbT/HvitWdXjJAwTxPZORG82IMMLWiHi+eXeBDCzpgpppnwI/8TRR4/hjvbnxYCn+hO/sF3KMdDaCSaI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZVMJPzz6; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ra0Ky6mXltAUt+LZScMYM+TpmdGUEEaSHVLD1V4U5Ys=; b=ZVMJPzz6sMeVM4CTXaV3xFUHU+XMQ3POGENgkypnM48thGpM3LS+YAmxZxMOk34flHtNnn nzzbCbuE+rnHQCNR39gvmgWohEaZKsu96q1ilugqcGqGyRL1UeEgS3dBvlMKI7MpjB4kAp v2FSMVQW3hLlgkGzswchPvqw6gNvuiU= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-626-kRo0eReMMROZVka9N9pl2w-1; Wed, 02 Sep 2026 10:46:53 -0400 X-MC-Unique: kRo0eReMMROZVka9N9pl2w-1 X-Mimecast-MFC-AGG-ID: kRo0eReMMROZVka9N9pl2w_1788360408 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7D6671953976; Wed, 2 Sep 2026 14:46:47 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B08421800642; Wed, 2 Sep 2026 14:46:35 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 12/13] um: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:45 -0300 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/um/kernel/ptrace.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/um/kernel/ptrace.c b/arch/um/kernel/ptrace.c index 7da0a5223aa6..bdc1b18bb342 100644 --- a/arch/um/kernel/ptrace.c +++ b/arch/um/kernel/ptrace.c @@ -123,11 +123,7 @@ static void send_sigtrap(struct uml_pt_regs *regs, int error_code) */ int syscall_trace_enter(struct pt_regs *regs) { - audit_syscall_entry(UPT_SYSCALL_NR(®s->regs), - UPT_SYSCALL_ARG1(®s->regs), - UPT_SYSCALL_ARG2(®s->regs), - UPT_SYSCALL_ARG3(®s->regs), - UPT_SYSCALL_ARG4(®s->regs)); + audit_syscall_entry(UPT_SYSCALL_NR(®s->regs), regs); if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, UPT_SYSCALL_NR(®s->regs)); From patchwork Wed Sep 2 14:43:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2296768 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hAifUhAQ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=l2mo=g2=vger.kernel.org=sparclinux+bounces-7436-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmG80QFRz1xwZ for ; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmG73mxrz4w2D for ; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmG73jlbz4wGB; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c04:e001:36c::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361439; cv=pass; b=sS/SdHcmEAnF3Yr4dMRZrRHvuDfY4MoZHWUWf2hN9Li2LZYtfqOHdVHN/FyOE/i4AVh3UjFQ2BIV7zVj77GqDlysibDSzqyXLD6WnFJZVYwZxEbO5xXkbB12dr693BgBc24m3sYusCRepKeTR7DhdiHyQ3BHZw4Rs5qOTJ0kT9k9e4Ape8BdqnoDzYJFz7/p55RZprMHQscQYSLpFRG0MTalJjWTZGdyW8hZWyjoNqtZwMKplZ2qqv4RoetR9C3gwsOA6cPbU11l/j1OKBzmr75sCsB1pMRRssIjvvjLH2EsCQjBu/OFHigc0WGYuprG4uBMJGyfBb0gOxS4QgMTzg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361439; c=relaxed/relaxed; bh=nZoYau2WBD6IZMmGu3u7wBhLPz0DgKCouySyNxSkIQc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y30P26wfLDSLy7Uql/QKpB7nsvoy3oi8BX/rYgIVLojP3PW4LLPOXF7KPU+J1Ow1mUG1AgDsFbPv45etLhMe61gl0j4Y63fVTCyTz6hi8UYu01EDUA/YJI77B8coevyE32g0DiFYPpCHwcFiJWuC+fhDfoaONIX+PZR9gRM1K1YkKdlQ+/t6+kcES4CXjlWdMO0EzKNwLyVJosFQcArqWmPYbP/geYIsS4Q3seRp9VL+tLDZ8NAFFh9N5n8u3f8oxBnzvIvPUWfiC7uDJsAmcBW0nTwpJi0m83yUzOLY5NNNAKHoA3Ex9GcQBT4cOFLumqz3fJuYLzp6pZuw5UuuwQ== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hAifUhAQ; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7436-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hAifUhAQ; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7436-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [IPv6:2600:3c04:e001:36c::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmG404pdz4w2D for ; Thu, 03 Sep 2026 01:03:56 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id E08AC81E87 for ; Wed, 2 Sep 2026 14:47:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8D9C4A499A; Wed, 2 Sep 2026 14:47:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hAifUhAQ" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 317074A3F2C for ; Wed, 2 Sep 2026 14:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360433; cv=none; b=P3wmWR8oog4AqoM52Rlby+g4opfJusLoJ2ElBf6xET+6VcyuSpWkOKn8nCenO942Af0LVK2SmwuLftkmMnFMRALemZcMdseaxoNedidimEf9/4RN3jY1LE3RVRbe4Rm487RQYs6w+u4t3LDoZ8WM82uDCCG/2hcZPwyQu5lqMQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360433; c=relaxed/simple; bh=kfiDLo+BxdeMyd7DwCKHFv96MicNeVsjL5sGevnIHXM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UhT68EPmTLVg/T0vfjGECYJPnixMKH0EBNWFCF1/g4pmOD1ZMrXSZwXKFiXFwe5GhJaPr21BMXbJZGFsDyeQaKSwPt/27Fj7F1clgdUfFojiGtvYSbqaHWa4iimSwrK+omqxJdvmgF0PlaWRhBi39Hyi48FgS/itq0nfCnY7CXk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hAifUhAQ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nZoYau2WBD6IZMmGu3u7wBhLPz0DgKCouySyNxSkIQc=; b=hAifUhAQkhHvX5UPzdg+WHXMardvsaZTwR+xKJ722053L9Ic6YiFSnbQP7oVUwT02iwW2v KTuR3OEto5vKqVAkvL+o5q3iByxUj5ruLKQV88hiBrFPHMIoGhh9fGRijdvF3JjsUkWMdn QaSQmOeFo01VjauZjpDtHZRgtcZPI8o= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-501-6y8aj7x6Pwq6ejExRIcZDg-1; Wed, 02 Sep 2026 10:47:04 -0400 X-MC-Unique: 6y8aj7x6Pwq6ejExRIcZDg-1 X-Mimecast-MFC-AGG-ID: 6y8aj7x6Pwq6ejExRIcZDg_1788360419 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6C6DE19539B7; Wed, 2 Sep 2026 14:46:59 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F080B1800643; Wed, 2 Sep 2026 14:46:47 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, bpf@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, sgrubb@redhat.com, oleg@redhat.com, richard.henderson@linaro.org, mattst88@gmail.com, linmag7@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, guoren@kernel.org, monstr@monstr.eu, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, davem@davemloft.net, andreas@gaisler.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, tglx@kernel.org, peterz@infradead.org, luto@kernel.org, Ricardo Robaina Subject: [PATCH v2 13/13] xtensa: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:46 -0300 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina --- arch/xtensa/kernel/ptrace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c index 364e4fdabb00..327e00c2ebde 100644 --- a/arch/xtensa/kernel/ptrace.c +++ b/arch/xtensa/kernel/ptrace.c @@ -561,9 +561,7 @@ int do_syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, syscall_get_nr(current, regs)); - audit_syscall_entry(regs->syscall, regs->areg[6], - regs->areg[3], regs->areg[4], - regs->areg[5]); + audit_syscall_entry(regs->syscall, regs); return 1; }