From patchwork Thu Aug 13 17:02:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285437 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=cByGZY5s; 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=zjsw=gg=vger.kernel.org=sparclinux+bounces-7229-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 4hLWt91jW9z1xtr for ; Fri, 14 Aug 2026 03:04:17 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLWt86hWkz4wHs for ; Fri, 14 Aug 2026 03:04:16 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWt86bMdz4wJ6; Fri, 14 Aug 2026 03:04:16 +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=1786640656; cv=pass; b=Yb5CMxda+acOKHF0lIOcMsOuiuLW/2t5mnyBqwDBQ+z2ksCXRizsQEFSIkfHio2bOLQqkN0aX8rzjRM6FGz21BqH7W0fIgGW9JOVJ1pjvcolWySS8iGxIUGe8lr8eoUexm2Pazh72UvTGHmERYDNgDo0+OuqaUMkku+8dOrITjaZu+Jp8sj1xRXy8eguJykrfeUXURE9FBkMBxaUTlQ0cIbg9U3g15uILlGybO/QNvTj4zefJtYM4i4UqufOOKXQLWCn3G3I73OHlzc07BVWxSnmwt+03Gb6r7lIsRd5Efek+T5ng0ApU/uNTfpXOY+RT2FD9eqGa0AwmdJM2ZlveQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640656; c=relaxed/relaxed; bh=hcj1jFC26/Dufc2/bYrj4t3DzvO2jGBOUyeCAQas2/U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DDWlpPIVAiyZZowVgwFW5Ks+phuLlWxHej51IfiHRbWugSIB3cI8gmPlvDgG2gJRDkFbXLaghV9J/qasN9MetoSxwvr6V2FXd+9y96RUnSkI58QmuR3y13/zl9LUWQdwrLOM5s3u2ky/nQaDe5FxZV/i0CUZUX7QxRWhUjCuYuLYGFclwP9+PTQJHWNuLi9bcXMcviRacveqPxTxnqjxvW+/rLfJqmCGonweBwNtCkmC5gngDYQPPYDZF/RZxC6XSX5lwo0JeJ/fBb7sl6uzkUMRtnMEzZGDjIBncD2BtC7BH9TK1ydHUuLJfZFLfa0AFiF8YWVqx9qeT4NcM1SCMw== 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=cByGZY5s; dkim-atps=neutral; spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7229-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=cByGZY5s; 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-7229-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLWt50Kv1z4wHs for ; Fri, 14 Aug 2026 03:04:12 +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 0F13E3015855 for ; Thu, 13 Aug 2026 17:04:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2FBB499F16; Thu, 13 Aug 2026 17:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cByGZY5s" 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 5697A4908C0 for ; Thu, 13 Aug 2026 17:04:05 +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=1786640647; cv=none; b=ZklDviM8z+l0YtsPf0nJjwtQN+iqzxk9dI9N6kr37z144JsDFwnH6QgitGyX1uyK87HR5RyzVQC6RPYDicf44c1rmeGMAThM6dH7pbwZS8O6IyLgoULfP1jbUMmCVUg/10lXYhFKYePRRjWNEnoBmx+MOBeQqLgAuEIHtsKIIcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640647; c=relaxed/simple; bh=2dYxDdYBYptEeVdS3EGZmjtxZPQ6vwqrh2eIQ6PP7v8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HlbR20FqjRvpLfhF4/+VyMDH/Jz7EU83nNAq1MamsPi8w391SoHh1Gj6qgeDR+IJvK5vbODZvwMnLVrJxM2VELktEPteooll4jP2YyPObwhh6Nu6p11oUWROrUAvWrxoGXOAnQOsjUbd9LrbeIjX3Pmnmy00CtOtIgEuqN3Tmgg= 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=cByGZY5s; 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=1786640644; 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=hcj1jFC26/Dufc2/bYrj4t3DzvO2jGBOUyeCAQas2/U=; b=cByGZY5sD1wY5w8JzdMHaJ5ncB7aen11j75JX9Lf3tIi0FMYRBUpMtrVQhCC2IZoO13jNB C6POj6gHN1y5OPd6+2B3+oerx/SojqKAtbhM+uF3C2j2Z5Uf5h6CEVBdLP3r0NtIIVVs9g Qp04geI852X94VidkyPT4dJcC78miyg= 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-482-LYHm2ovYMG-hpFzaOlC5Pw-1; Thu, 13 Aug 2026 13:04:00 -0400 X-MC-Unique: LYHm2ovYMG-hpFzaOlC5Pw-1 X-Mimecast-MFC-AGG-ID: LYHm2ovYMG-hpFzaOlC5Pw_1786640635 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 72D121955F7A; Thu, 13 Aug 2026 17:03:51 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D6B8A195DF9A; Thu, 13 Aug 2026 17:03:36 +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 01/13] audit: log all six syscall arguments in the SYSCALL record Date: Thu, 13 Aug 2026 14:02:51 -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.0 on 10.30.177.12 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 argument respectively) inline within the existing record. Additionally, add the two new args to audit rules switch case, so audit rules can filter on them. Lastly, as a minor cleanup, rename params from (a1-a4) to (a0-a5) in __audit_syscall_entry(), for consistency. type=SYSCALL ... syscall=openat ... a3=0x0 a4=0 a5=0 ... type=SYSCALL ... syscall=sendto ... a3=0x0 a4=7fff68843bcc a5=c ... Link: https://lore.kernel.org/audit/CAHC9VhSjEt_-Bsra4AEqWv+Daw5Ff=gqy7dX4Ah11RVhdyCBUQ@mail.gmail.com/T/#t Signed-off-by: Ricardo Robaina --- include/linux/audit.h | 11 +++++++---- include/linux/entry-common.h | 3 ++- include/uapi/linux/audit.h | 2 ++ kernel/audit.h | 2 +- kernel/auditfilter.c | 2 ++ kernel/auditsc.c | 31 ++++++++++++++++++++----------- 6 files changed, 34 insertions(+), 17 deletions(-) diff --git a/include/linux/audit.h b/include/linux/audit.h index 45abb3722d30..7306d7861159 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -324,7 +324,8 @@ 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); + unsigned long a2, unsigned long a3, + unsigned long a4, unsigned long a5); 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, @@ -375,10 +376,11 @@ 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) + unsigned long a3, unsigned long a4, + unsigned long a5) { if (unlikely(audit_context())) - __audit_syscall_entry(major, a0, a1, a2, a3); + __audit_syscall_entry(major, a0, a1, a2, a3, a4, a5); } static inline void audit_syscall_exit(void *pt_regs) { @@ -613,7 +615,8 @@ 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) + unsigned long a3, unsigned long a4, + unsigned long a5) { } static inline void audit_syscall_exit(void *pt_regs) { } diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h index 416a3352261f..cf2d9989e3fe 100644 --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -65,7 +65,8 @@ static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) 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, args[0], args[1], args[2], args[3], + args[4], args[5]); } } 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 7f791afe5791..4bf539d6937d 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 6610e667c728..7a9d65a6b1cc 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,12 @@ 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 + * @a0: additional syscall register 1 + * @a1: additional syscall register 2 + * @a2: additional syscall register 3 + * @a3: additional syscall register 4 + * @a4: additional syscall register 5 + * @a5: additional syscall register 6 * * 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 +1989,9 @@ 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, unsigned long a0, unsigned long a1, + unsigned long a2, unsigned long a3, + unsigned long a4, unsigned long a5) { struct audit_context *context = audit_context(); enum audit_state state; @@ -2012,10 +2019,12 @@ 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; + context->argv[0] = a0; + context->argv[1] = a1; + context->argv[2] = a2; + context->argv[3] = a3; + context->argv[4] = a4; + context->argv[5] = a5; context->context = AUDIT_CTX_SYSCALL; context->current_state = state; ktime_get_coarse_real_ts64(&context->stamp.ctime); From patchwork Thu Aug 13 17:02:52 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285459 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=a8MbVzOd; 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=kqop=gg=vger.kernel.org=sparclinux+bounces-7230-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 4hLWyd1GKSz1xtl for ; Fri, 14 Aug 2026 03:08: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 4hLWyc6kzdz4w9h for ; Fri, 14 Aug 2026 03:08:08 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWyc6gZtz4wJK; Fri, 14 Aug 2026 03:08:08 +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=1786640888; cv=pass; b=J4Y4ETHJqsDOkcy8wDJFhFNbIlz0qjnRw+lqahNZlC9uCeRuMjGtjoE/2rlKVejRgC8tzIind0cI8j55FEniP9KXS0oXs4qCKPodBqXBKYr5N2xOUVMaDKqMe+grUB+BFzwQ7YOBrOeQ9KbjoOXsEp2w0f7GKEP+tVWmYiYlUoW8mw8fQF+c4UghIf8+GXuZZoc68bfbWJQeUttkulStM+O7zUvIyy5F9sNoMk6HN4Y15Yw47DrAKDzETg017OsyYgiSFdWbIa2vLTksejrCDWbYezW/v04iAhAgskEIBM5nmp95bShsojwgrB7R6zfbHw0mm0vsTDCP8JasVQp5WQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640888; c=relaxed/relaxed; bh=GgHNIRpaiGrsleuWQ8qibHY2uklIV42xG6wSQPY4e1M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gxfaWa96Lysn4vnsIobMJBXSTwWl1+VBUQpVtP2G1AKirfq5DmLHB3oMr5ezi9pscU+Cxp4mACZRtWkSKRIrB1/HISyvQhJmS522jwuvhc2TEs7Tl2HRpdQMx7doq3XUtu2zeF5IIkxhD8DO4T8mRFqPB4Lg9hdPIirwJDBpWnDYYjiJvAjILCNfUVEQ45l1vqGuhaQ7PcUMwjTVrrzwQGrnuuKUK5XyQIX4wlHjszzB7dhI89XAQAx1ed+eE4hjOVWxBpyhJHAs5lxJfSgM25sGiUexo0tORcgAlGsQqELYqnuhAnKNoMdBjPqYmo1LWNc6EWiRXC6GJltiQlmdvA== 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=a8MbVzOd; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7230-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=a8MbVzOd; 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-7230-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLWyY3xvLz4w9h for ; Fri, 14 Aug 2026 03:08:05 +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 D1BE33014D89 for ; Thu, 13 Aug 2026 17:04:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4C104968FE; Thu, 13 Aug 2026 17:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a8MbVzOd" 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 399F8495539 for ; Thu, 13 Aug 2026 17:04:17 +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=1786640658; cv=none; b=cie2XK0q+m1HgriQfqRt5TdGvMH6iu2hcem8xCgX3YQ+oFje/uNX1w//NVanqP/jgWYDK/HN5p5m3sIuWz7dRvyuR3i3UNUZWTh1ok6okbdglTsinMzRMDkYBiBSzayg08V87x9tb6B4LmRqrJCr52ElHDC+A/Bv7projhi5QMA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640658; c=relaxed/simple; bh=9XBV5I17RwFW6E8XHjBQf72B0dwOKDgYR3HERS1dxTU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o5ZMGrxU1AUfMqfSsUZwKOfe98Agap3HdImFKJL927YL6BMnh/wTxZjnkp7IA6zmKzAgbq3weq7/kKNdjnABR9eJH65qGZMEE5bmbPzt1WxYbFkzxesT51awTLPeQlIBiXm1F1wMLqI6I2HOsJ/rjOaVQIN/rgjIjje86/gu4zc= 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=a8MbVzOd; 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=1786640656; 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=GgHNIRpaiGrsleuWQ8qibHY2uklIV42xG6wSQPY4e1M=; b=a8MbVzOddJtMbQDzuoggedxCNquTA39z409pWel284svj07pjCOfjoCn2JQf1s9vEN16Oi GAQEgTxkG4M5dTwsIux/NygW5P84O6b4A1+2ZS92u0Fej7cnBD5eREwhlmiaEbJVdSuVb4 LUZcHWnfxaqkNEWFEVht1K84S+xBZnQ= 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-350-v7F3cTZiOfi696D6EVHhdQ-1; Thu, 13 Aug 2026 13:04:13 -0400 X-MC-Unique: v7F3cTZiOfi696D6EVHhdQ-1 X-Mimecast-MFC-AGG-ID: v7F3cTZiOfi696D6EVHhdQ_1786640647 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 5FFB5180066A; Thu, 13 Aug 2026 17:04:06 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 07750195608A; Thu, 13 Aug 2026 17:03:51 +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 02/13] alpha: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:52 -0300 Message-ID: <7dec380a50e3db536bdec61a33b8f3b2e2e7ec65.1786626275.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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (r20, r21) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/alpha/kernel/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/alpha/kernel/ptrace.c b/arch/alpha/kernel/ptrace.c index 0687760ea466..d90e2194b528 100644 --- a/arch/alpha/kernel/ptrace.c +++ b/arch/alpha/kernel/ptrace.c @@ -396,7 +396,8 @@ 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); + regs->r16, regs->r17, regs->r18, regs->r19, + regs->r20, regs->r21); #endif return syscall_get_nr(current, regs); } From patchwork Thu Aug 13 17:02:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285444 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=cyTtQZEP; 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=ehps=gg=vger.kernel.org=sparclinux+bounces-7231-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 4hLWvG6CZ9z1xtl for ; Fri, 14 Aug 2026 03:05: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 4hLWvF2SFwz4w9h for ; Fri, 14 Aug 2026 03:05:13 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWvF2NRjz4wJK; Fri, 14 Aug 2026 03:05:13 +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=1786640713; cv=pass; b=Y4sSUIfyF00VcH/JZvzj01Eq5+8Of9f95F4MoYiNQz36/Nkk0/BYq+kjkJHaps9k2HjXFb32C/li9qIWfUhmjxa2Tk5FtCiafCTGw8KPQJewX0YVDsyD4rZ57vT8+IlFNtiLQfVx6yodGfCL7mvitGuiq5GEPTxshTpmMo1GCVa1RI5rcb8CZCG+zQYGnGtwU52g9fO2btq20DiZitB9CNx1u5yiFAv8U4YDQqcaKZcGZyWy4vIgnF0zvETFEcHicLKhM/akKOvCUqy0CERXOSXWfYFYo6qimaHeS/ssyuipF+YiyMa5d1KPQs747/BVxXHSAqA5KRNWRlerQKuenw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640713; c=relaxed/relaxed; bh=n7xFlZn2dL19In3v56MGA4NWAnpSd0AP0zpWmikwEks=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IHEUNe0yQu8hDIdCiXILQjq7nUmCL0eguUJpf+Awcf2oalE0FHSDiZWWm5fXenNkTc3ctud+zzAeq7P+eBai4xMwtHLyUYRXFFoHQDAmElgAKaVE1YBzhqAsn9fidbfSFZC8qdEYipuS5JQveG3VNGLCvADGlpjjiCwcDMpmHh58RUKfJXHpnosThjnGdD57wgNQHyjUQi5UFwyyPA6vqUYPGo5fDIHMp614Y/s+ruC+TUeQ8Wb5yOIf6cnprDFwA8WVpD5vU3IV26exGmBuBCgj4ykXGHDv9kbKXBo43TIbQvtcBPmDFNjq/cHoh7HWd7n67n6qV2GBw2UDbptMBQ== 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=cyTtQZEP; dkim-atps=neutral; spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7231-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=cyTtQZEP; 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-7231-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLWv95XCXz4w9h for ; Fri, 14 Aug 2026 03:05:09 +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 6D1FB3018C18 for ; Thu, 13 Aug 2026 17:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E424B376A00; Thu, 13 Aug 2026 17:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cyTtQZEP" 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 84FB5495539 for ; Thu, 13 Aug 2026 17:04:41 +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=1786640682; cv=none; b=o6iwWT3zQBuulDs+eSBVPAA1HaXlWvE2kKD78DnjDcX2gFx1V81bIxiPJexxT27U+qS/fteOoh5SoiVcz50kzna+aYqr4DettMwralnTimxvIAlYisnofuTSKXynxJSK8GBoF/kt8ph6ytX6fsd3/HPxzRArlz16z6L4beeJLjo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640682; c=relaxed/simple; bh=CNJuBEFpfNHhwlYW7A4OqSS81mlR/xDc5WSiAgnzZ/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kdEPIptCj0dbgbkDAyg0QbNlZMJuhL+/DKmgPoeuoqKqqXz0VVEifQGEO7R9pTu7sksHKLYLdIWDevvJNZcGGwdcLy4pWK5+8hCGxvI253Fy9VACbVYRjwb2/T56UIm0lJggjQn5fZi5I5lg+81xz/cKK8MKh/HdJZ4F2GaFYY8= 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=cyTtQZEP; 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=1786640680; 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=n7xFlZn2dL19In3v56MGA4NWAnpSd0AP0zpWmikwEks=; b=cyTtQZEP3PmTma989N8HLhnftkxmWOnueidAwHaDz7CA3IUj3qZTpqFztR33qvu6T44jk8 Cw8MFX7AGkjmKCk3S7v+lYnZKfrNSUIol/KMspI2yi10uelzjz7C/gX7xnxpXiHYkdp25Q 40d8nnvCLBAbzwjbS4ETvss+uW6dVgg= 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-18-F1ZGOoBaOWWr19b0IGlNbA-1; Thu, 13 Aug 2026 13:04:34 -0400 X-MC-Unique: F1ZGOoBaOWWr19b0IGlNbA-1 X-Mimecast-MFC-AGG-ID: F1ZGOoBaOWWr19b0IGlNbA_1786640663 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 D1D601955E7A; Thu, 13 Aug 2026 17:04:21 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CEE67195DF98; Thu, 13 Aug 2026 17:04: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 03/13] arm: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:53 -0300 Message-ID: <4f787a0c2a27eb919c481875b61a7467ef8ce547.1786626275.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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (ARM_r4, ARM_r5) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/arm/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index 7951b2c06fec..ace74207738d 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -869,7 +869,7 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs) trace_sys_enter(regs, scno); audit_syscall_entry(scno, regs->ARM_r0, regs->ARM_r1, regs->ARM_r2, - regs->ARM_r3); + regs->ARM_r3, regs->ARM_r4, regs->ARM_r5); return scno; } From patchwork Thu Aug 13 17:02:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285461 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=Gfoa5qbR; 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=/gyu=gg=vger.kernel.org=sparclinux+bounces-7232-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 4hLX2d72bsz1xtr for ; Fri, 14 Aug 2026 03:11:37 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLX2d6GyGz4wJ2 for ; Fri, 14 Aug 2026 03:11:37 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLX2d6C7Tz4wHs; Fri, 14 Aug 2026 03:11:37 +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=1786641097; cv=pass; b=qMnl9h4gYDk6EeFyQrlh2eNh9178efDjE5aD5cf7DZxe3asCjvECfDZ2NuiXP9/ILFk5ZUi47WcfJOKC3hN5oCvQnVQd1p2zo9wSQN+bvBrqXQKfNVq345v7J8P4/dtaotGjoNcvofIabDmXhz5yHTyDwep2VrSqtQT/EYzSy30j1zkyxzp2y9cH+k136l2M8t5jSCppdLsL66Thz0i2kE55iU3LQMVaUxZKKN7UVDrP01hBcMoNbqAzbDSckUBj6R2clRc3q3rigahjrjjEKYltMXWwacv/uTG/mK0UtrMq1H3VPyTKewyHbJzK/4lEs1plK7MeVr5kDMdPR+edCw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786641097; c=relaxed/relaxed; bh=UIpmsX6WtXNHFCRHtGccortX+Ir4DIAT5TQlZZyNQeo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X96N4vfnrZ1rgB50svp//BdJ6pxaEpuiV4YpP4OKgDihKA59JdNXlvesokkhLFzig8y3vFCXRMI4Be6nIh/cu+9vOdgYb35/FDnGgcJFAIZ0KD84BWKlsG9tQoAIIEq7YzczYtPvqAYfGle0x//40NCjPbB+53IzgDupLrCVgRvExbpWkLuDrPEIqgMuSmCg5r7Mr2Im5WJialgEYAJ18p4eLt7onZqj0/afNIKptvDMollLD4UqC62kgbZJAOKmdTh7EOz8ZVsLpdthdDDsWereeRZMdUk6dfQ+NHj+SP17ihpgITLFqMjsc+tLsLop6O4NzX6hVCwOosA9Dr3bhA== 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=Gfoa5qbR; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7232-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=Gfoa5qbR; 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-7232-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLX2Z386tz4wJ2 for ; Fri, 14 Aug 2026 03:11:34 +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 E54E5303CE1D for ; Thu, 13 Aug 2026 17:04:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D895D36F428; Thu, 13 Aug 2026 17:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Gfoa5qbR" 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 6D5CA4968EB for ; Thu, 13 Aug 2026 17:04:48 +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=1786640689; cv=none; b=WlAAwirSBCKob/nVr9H3tG8gWfoa2RzPssPeRc3PHAoeF7k6TRQ5fkslzq267YvnpNPaErD3GePE5qtHqhXFXzvKrH8snC+uuOKPGKb3I3M2pr+3GlHdP4qmU7Dr/1cciS6acISEDmB61XbGPQWc18taA9NbE6dZ+tNYnhjarFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640689; c=relaxed/simple; bh=P4bEV+TSyucsB+oOwDWR+Lt2K4iI4VujhWz5lQywp/s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tF9eJmH5Wom3Pd3wh11eBZnRoYYLA3ES7Af6vLE133jigFk+OJfieAmEo0I08nG/ccx7JTNqkVKTcKhLIIdfGcevclDtCTR0D07dmv1xe9u/los2azKGAZpSaeUzZqi3SwjcdfW/Nl6fiLqYiaMAZDbR4intfHeD7lqCXPdGEUg= 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=Gfoa5qbR; 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=1786640687; 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=UIpmsX6WtXNHFCRHtGccortX+Ir4DIAT5TQlZZyNQeo=; b=Gfoa5qbRwbe/EOG/Ky/UTFJUVfZp/0/AW+CwIVC10HLlyHU8XklrW/3qr1cQkJ9TnEiL0s E8kDYowKGx05KwLNvlOjH7UV4ePokh2Ap8VdcOVD1cbovlhX+VHg0TcqXV6v+Dbh6Rj+Vm QgSj446wWymd7t/j1vaG74bjaClvLVY= 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-54-6MwurZx8OlqzEe_HJiXJUg-1; Thu, 13 Aug 2026 13:04:43 -0400 X-MC-Unique: 6MwurZx8OlqzEe_HJiXJUg-1 X-Mimecast-MFC-AGG-ID: 6MwurZx8OlqzEe_HJiXJUg_1786640677 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 B9356195609D; Thu, 13 Aug 2026 17:04:35 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5B0A8195DF9A; Thu, 13 Aug 2026 17:04:22 +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 04/13] arm64: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:54 -0300 Message-ID: <84e977166dfd72c8c5b53a54e86e149e7ed60672.1786626275.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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (regs[4], regs[5]) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/arm64/kernel/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c index 4d08598e2891..093c20bff38a 100644 --- a/arch/arm64/kernel/ptrace.c +++ b/arch/arm64/kernel/ptrace.c @@ -2427,7 +2427,8 @@ int syscall_trace_enter(struct pt_regs *regs) trace_sys_enter(regs, regs->syscallno); audit_syscall_entry(regs->syscallno, regs->orig_x0, regs->regs[1], - regs->regs[2], regs->regs[3]); + regs->regs[2], regs->regs[3], + regs->regs[4], regs->regs[5]); return regs->syscallno; } From patchwork Thu Aug 13 17:02:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285445 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=P4q7cZNP; 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=brui=gg=vger.kernel.org=sparclinux+bounces-7233-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 4hLWvH0w8nz1xts for ; Fri, 14 Aug 2026 03:05:15 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLWvH09Z3z4w1b for ; Fri, 14 Aug 2026 03:05:15 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWvH06jXz4w9h; Fri, 14 Aug 2026 03:05:15 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=172.232.135.74 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640715; cv=pass; b=goRDtQg8/yYK16r6gi07PIE1jbmW24g5lqwCoAscPJlAFsLqnqUGtLEc3XcrzDLdQIqf3uP1DSbqlXyNjLuIFyKrh553vlJBDZpt8wMstz5GNiFwEmjxksRYy0C3bxrZ9b0Ikx6GAU7HIZ9XCF1Me378me7rkPwnXo64iCB9iHOfD83U9yFLVwqMwqUjjhOVzZObZEmHUd5gceckXJT/0n6Ir5nzg/rnH7bOinuUhApTG05qwyRcPxbeWXsA14CGLXW107ekiNdL+CIaSjbgFFeUhKQ+BvYildueT+kiIhX1Xs/tid4aSOBSMbBWuo+MW/HATZntQUBKOY7jQYF6cA== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640715; c=relaxed/relaxed; bh=RoUr+H27+L/TVykPAPX1fThxJpoZ/Q7OPCOqzzA9raI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pc/Q0IRBPB28EmLPX4LEt49KrWjZb0cWvIEPzOjk6rIggH1AYQ636LO/0b7D7Y+b5M74SXDdCgYNqSYaR6j8fFWZZHbt8F1GY7R3rzO0y0m5y+knmFVZIWGHE//iFoC8w+MHS6oUfsIZXq7757yXvWOuMKjI0tVYftS5aOr6hZT+mKTS7kAA8oqFhr6YqA0K7ZPTFzKXyBRhFb3Mp7qK8w2Dzl44ioAhOIVHa3A1GcL7Mut0cjFT20eSSKNnyHHE8oxZwm1PPQrjjzcoYDTl5MkVNZ2cvmHEfebTp5bkaFYg8QFacTQ4mhr4AWZ6+ckPi44DzXWI6hzd438A+ieOrg== 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=P4q7cZNP; dkim-atps=neutral; spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=sparclinux+bounces-7233-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=P4q7cZNP; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=sparclinux+bounces-7233-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLWv84bWrz4w1b for ; Fri, 14 Aug 2026 03:05:08 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id BED9F300EE81 for ; Thu, 13 Aug 2026 17:05:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9E15439015; Thu, 13 Aug 2026 17:05:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="P4q7cZNP" 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 3FE25495539 for ; Thu, 13 Aug 2026 17:04:59 +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=1786640701; cv=none; b=JGs2Ag5lORu5aGUBHwYW8UYj6Eb7OEBbipJysvG8JfO7msbG69S0ZwpSK8+gF2JkSr5MNHADZ7Om2mqddHLNgg0wd00lL/43hm/9WLurCwe3+fppQzsoRVWfZBmf9+DE2GMcXqN3Abp6bbKnd6sWdG9jT1cbugT+lUQLJiPKSTg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640701; c=relaxed/simple; bh=ROVvxQd1RBUsp3BLfPbpP5zvkH7LlYcGT22RZlveHG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IdiRc7CZLXWVmuoZGrn6lHf3FG3l8UQwcW++JHwAnm/+5yNdalSD6jsZsCrXES3snH9H+WUwBAZS3YZBvjLJrmw6XYLw1DI3Fr7KOqblC9AZD0CVJQ6gKeVVuI94tDU9RaSxwfSrSj5aLy5cYpygxnFKXcK8TGo/s2pULUHAxaM= 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=P4q7cZNP; 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=1786640699; 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=RoUr+H27+L/TVykPAPX1fThxJpoZ/Q7OPCOqzzA9raI=; b=P4q7cZNPkWxQfZynvOkhOr0aeREEbDzwrDhDDpa075DkJX9yKgBaPYiBYyBoyOaeEOgS5R bWc+X407poPA+DFOdE0HHUlhk59Nr+/WFxZBZCse1+WJ0ziC5tDBcvME8m6rlFaoDgxBAC qXAUxFGiWIW3rc7giIOS/0cqnAd/2oM= 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-118-IN5bJnN_OxCEbFxwlktk6Q-1; Thu, 13 Aug 2026 13:04:55 -0400 X-MC-Unique: IN5bJnN_OxCEbFxwlktk6Q-1 X-Mimecast-MFC-AGG-ID: IN5bJnN_OxCEbFxwlktk6Q_1786640690 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 164D9195604C; Thu, 13 Aug 2026 17:04:49 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 31DA8195608A; Thu, 13 Aug 2026 17:04: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 05/13] csky: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:55 -0300 Message-ID: <0b18395deee1e30aaa53e4cc402f93e6e273a9ad.1786626275.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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (a4, a5) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/csky/kernel/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c index 6bb685a2646b..562eaf23be82 100644 --- a/arch/csky/kernel/ptrace.c +++ b/arch/csky/kernel/ptrace.c @@ -329,7 +329,8 @@ 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->a0, regs->a1, + regs->a2, regs->a3, regs->a4, regs->a5); return 0; } From patchwork Thu Aug 13 17:02:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285449 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=G/E/BnPY; 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=1wjv=gg=vger.kernel.org=sparclinux+bounces-7234-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 4hLWvj14Fkz1xtl for ; Fri, 14 Aug 2026 03:05:37 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLWvj0ZkDz4w1b for ; Fri, 14 Aug 2026 03:05:37 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWvj0WMWz4wJ6; Fri, 14 Aug 2026 03:05:37 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c09:e001:a7::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640737; cv=pass; b=KFxHOfLDpK6RRAJtNVQC61/QMpcDV5xLT1bOqnpwTW/qplbh+4fEHx2NkiBzfxRISzeEj2qW7WZDAARMNYR0rrPfy9TYzB8Rj9PkiTgRwVQkCEloNQwSJcEHrxA3U9WTpn1ZRH9B+gzDOfE6cLg43XDUYxF7E92eCxEmMaluIqPaK1Ixp0givcaabxzri7S7VFlYWBR/z1HgXUEuGpXu0l1eGRWHv41d+10YvuB/99pjgBovxPHElc1SseXSStmIe+29r1PGr6dXBPQpPqZ618IqgPwoh5CHxt9m5U2jWGpQ13njCaE8L639O8g3zjlf+ZJR6UcS9dd53rhC/dXa8g== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640737; c=relaxed/relaxed; bh=4hWmoGsUF+splwZL2Jc4XbPhM/cn3FE+Io5Xgg3E/U0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UMUN8zXbEoApqCvM15RGeScV9+mW6B73ww35AqdoXwzA4W1h4a8M7wxGkiUL96eYhcCja2BsUwbtY5AUP3pnd6hylJ4MwuPTjmh508TRoZhw39jHpSFXTWFJgAakDyCR1BbGfKlIlM7jEDDehxHaEcUZFRy7qkoNSf5uSaL/e80OyhkBWISh9t3b7qaR1fUMcvMN92zJbhmu8ryG2JwUuyGigqamisRy8eWu2NGKpuSHVAwEoxM8VWQQ+v2VRxsr9xWSRBnnWu1+B73vSlpT1ec/Z62EV/9MTy8Ln+XBRGJpe0qc8VUNEBF6aD0TRWicXIHHrS7irxUaGCWnkoGxCA== 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=G/E/BnPY; dkim-atps=neutral; spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org; envelope-from=sparclinux+bounces-7234-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=G/E/BnPY; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org; envelope-from=sparclinux+bounces-7234-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sto.lore.kernel.org (sto.lore.kernel.org [IPv6:2600:3c09:e001:a7::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 4hLWvd2R6Hz4w1b for ; Fri, 14 Aug 2026 03:05:33 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id AD85C301505D for ; Thu, 13 Aug 2026 17:05:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6E9D439015; Thu, 13 Aug 2026 17:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="G/E/BnPY" 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 6984B4963A7 for ; Thu, 13 Aug 2026 17:05:16 +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=1786640717; cv=none; b=RBefSXuhv45RD1aDeqFoMGrl0zFfsZHvozpeKhiX+0+f0YlHzjzSTyJvaIwuApVY6eMgqNWfVVNhwc9SP6tHXc+YK+oh3bVefdJwI6disnoin63lA6aCiAAFI2/LB13sLmF8qudaiv/4rpVKuruyVsyt47jojfwsTvLBwXi6BJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640717; c=relaxed/simple; bh=GbfZpaJBd81q0U+Y+6xRQMaEOr/17VF6ef/kRJ6DddU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=epIOi2vXGJJr195ilQq7psTvM9R72TTvSkk9QYELdWV22g5HDsqLFiiNKfKb0MqtBCRKF/YCi6t5yezMQxVSdAJ+7nEFTj2B5rCiXbvZ17p7ENVKew9B3klY29vbDOwlX21mJtE4QEbv24BvcwXAcCf95RzN4F9iQmC4fsCFxC0= 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=G/E/BnPY; 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=1786640715; 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=4hWmoGsUF+splwZL2Jc4XbPhM/cn3FE+Io5Xgg3E/U0=; b=G/E/BnPY5yEBFF6UoVlV2UoMVEhGIiMP2X0eB4TEBS2iNLo5l4DRju4VBeXiLy6CRbQoUS PSxCGlaTLvDVCOZ/aBK+jMZnWRChjWFkOOuVN9vDEYEJFRnyo1niVwE+tNxUOgzWVeBk1c fyst6/Nk88MRtfZvlsXpIzbt+eVAkdY= 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-541-gbL4XSmqN4CGUkdxqhGf9w-1; Thu, 13 Aug 2026 13:05:07 -0400 X-MC-Unique: gbL4XSmqN4CGUkdxqhGf9w-1 X-Mimecast-MFC-AGG-ID: gbL4XSmqN4CGUkdxqhGf9w_1786640703 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 80F231955E76; Thu, 13 Aug 2026 17:05:02 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 85526195DF98; Thu, 13 Aug 2026 17:04:49 +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 06/13] microblaze: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:56 -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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (r9, r10) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/microblaze/kernel/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c index 5234d0c1dcaa..21bcd8dfe42d 100644 --- a/arch/microblaze/kernel/ptrace.c +++ b/arch/microblaze/kernel/ptrace.c @@ -147,7 +147,8 @@ 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->r5, regs->r6, regs->r7, + regs->r8, regs->r9, regs->r10); return ret ?: regs->r12; } From patchwork Thu Aug 13 17:02:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285460 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=VtqoF6Ql; 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=jlew=gg=vger.kernel.org=sparclinux+bounces-7235-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 4hLWzP3kNBz1xtl for ; Fri, 14 Aug 2026 03:08:49 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLWzP2trSz4w1b for ; Fri, 14 Aug 2026 03:08:49 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWzP2lvxz4wJ6; Fri, 14 Aug 2026 03:08:49 +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=1786640929; cv=pass; b=hR48oLTNXxVb7lucm0yN3yWFpvU2UIc11sR1oT23AkxUa1JVaiyOBEF/4FVXKRHNb+e9L+biPmFPAjuKP4roVTE9dB9Q+pZghG6dEe/D0dnVbmREkUYtYIdTiSfqcD41lbNDWQPKIioZqB+00FckCgILluQAGz4Hxsv9cqPfZZDX1Q+jlHGrpt+GOHCHPvZcKT1CPuYY5pv94oSZYPlPCJ03AD6gcw5lFxFUgFehEeMP6r7ZynJEIgeUn21zZSoHUged9jnvTkYxjGgpNz+mTdo8vTDBBa/6vtB+ZpZVQD5gfOpmnCdcr73YZMskjISg9Dd4nkyPlMeLfN5ahwotcw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640929; c=relaxed/relaxed; bh=rmq0hRGs7XLSkpGEwHv2UKKAjTQAHgK3a7MrJIwRAjY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LM+D3qTjOo9R56i5JAaStXpo0GCQDPUA1ZYR4gpSebJL/ylM+lTdnrGf5i47GoxrmJ0g2z7CFjMK2JJkhzA57qmwLBYvJpKZxVLAJ1TTrd5yaPXpBqKojeQ2+jSQpMXVM6PAYRXEtAZA4fuRfuHX5FrzBRirBSqOHzonhxBAUfQUpmtVDHo5KXCugkE5KWbz11tf2QnvEr/36/BU3QUJjEyA6ejM7DcbiR+wtDCP5/MHBr3YmV1it7q9MpKV4rYsgcdSey2NNRFRxSXDAsBs2uTSR3vAMl0xGupi9wfgUSmfAxNYURLLJs/wc/s70oPJA9xgujFOe4ys/udyl0GiCw== 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=VtqoF6Ql; dkim-atps=neutral; spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7235-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=VtqoF6Ql; 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-7235-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLWzK6vfNz4w1b for ; Fri, 14 Aug 2026 03:08:45 +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 07670303EC88 for ; Thu, 13 Aug 2026 17:05:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A70A0499F1A; Thu, 13 Aug 2026 17:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VtqoF6Ql" 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 E4154499F22 for ; Thu, 13 Aug 2026 17:05:26 +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=1786640728; cv=none; b=ZwGgjHbSd+m0KKP2Ug+hu+ANnvuXcg2wigHRVoRpKDCGA/uQOR+xMlWBi75Z7qg+ujTpSDAT67mn1Nob4WwyiVbyMX/kiKTnpuSgAg15W641/DDohBKMsfMWv4b82rmeLuDLVLeE7DO8K1bMO9CoK4WiJBS4G39lAPqN+V0QwCY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640728; c=relaxed/simple; bh=IeB67JuyzakqY1S7Y0qG7Z83fsUgRUkVDzxqGH/T7BQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RetL85TGAv7CT607qquDwYVXK0+4ckFJ3bCkrV4IkemFpSSvzrtysPQl837VyuI9kJ8sFCDO7kPdjWTKELW7I9ZUw5ppdFiUOWIPypIxrWaJhjtXqtljGycUhu8/zeGuxJFY9GEo70IIMbGx+2Ek02nour8g/nGOnAcLvX6HQRM= 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=VtqoF6Ql; 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=1786640725; 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=rmq0hRGs7XLSkpGEwHv2UKKAjTQAHgK3a7MrJIwRAjY=; b=VtqoF6QlO8B1EoXF45pCp14RPkJ6rsMAirVd7NKTI/vMYCrlrdcXL7WGytTE6H9QhjwnaS eb+sZQagbOOI7lo3b+g3HbkGwhhWejkUOsEATpIe6stdV3NHHUc+zwZDffdBCQOdEm4JBI 8TOC3lzCe64Uk53R6L3K5Q9yMxE4gAw= 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-321-ArqhbR0JPReXkqbQc_9JUg-1; Thu, 13 Aug 2026 13:05:20 -0400 X-MC-Unique: ArqhbR0JPReXkqbQc_9JUg-1 X-Mimecast-MFC-AGG-ID: ArqhbR0JPReXkqbQc_9JUg_1786640715 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 E37A91800643; Thu, 13 Aug 2026 17:05:14 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DBDD3195608A; Thu, 13 Aug 2026 17:05:02 +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 07/13] mips: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:57 -0300 Message-ID: <212ca026f8a19f564f3b37b03d1d3e09e0de3e47.1786626275.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.0 on 10.30.177.12 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 Use syscall_get_arguments() to retrieve all six arguments portably. On 32-bit MIPS (O32 ABI), arguments 5 and 6 live on the user stack rather than in registers, so direct register access would be wrong. Signed-off-by: Ricardo Robaina --- arch/mips/kernel/ptrace.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index 3f4c94c88124..9e6f9accdb41 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c @@ -1334,9 +1334,14 @@ 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]); + { + unsigned long args[6]; + + syscall_get_arguments(current, regs, args); + audit_syscall_entry(current_thread_info()->syscall, + args[0], args[1], args[2], args[3], + args[4], args[5]); + } /* * Negative syscall numbers are mistaken for rejected syscalls, but From patchwork Thu Aug 13 17:02:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285466 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=O3xZjOuv; 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=apnx=gg=vger.kernel.org=sparclinux+bounces-7236-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 4hLX4T28CXz1xtr for ; Fri, 14 Aug 2026 03:13: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 4hLX4T1QSWz4wJ2 for ; Fri, 14 Aug 2026 03:13:13 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLX4T1MsYz4wHs; Fri, 14 Aug 2026 03:13:13 +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=1786641193; cv=pass; b=siphg6HJbY/gYiCdlgGLH0YrAfNQ8elnUcUEmRen7+doPN/zvsk5qC/6C0e3iGCW+dFSlsnwUrHuKS87ZpdRG4p4E+lAoBzzNC4mDL+6uftaXdaNszQMh6FT8a6zaedt/iefK0M1/pMLzGhXzmM0z7fwGE/N4fdMypL+50gQ7Abvitplh9p0LNRRNL5ij3iS2wQ1EKxxaFtNBaRNhOYBaR5bfUZQblpyLvpB3sepIKtnEnxfuIr+zFzuBDPIn20NadiBd9CaGTEbW/Y2YzedTHeUZXMNIL+8dNx8+kUpYj+JmqbvTWkRRsNw/oRWNdTCD4c1ITOYkIw2SVhP/JGGow== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786641193; c=relaxed/relaxed; bh=m7DByCcmMjMcU6fVtAV0LTF+gTPKITg6ZRJZBP5hclI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IRS7uMTvNhcU8k5yBfGHsyw3CHsCrZQ6mvWCIB1FYQyWC9OsxZaMkaq7mkZq6NH4jhfPlb1V1CRW4staCWEEDuSHcO9safYhQbrfyvDMK2TB96yWIdqnwHorClQEeVg+GyT6FIlwMRhKiYdCcqTNDfMxgCLtVa9lwOp5Yjj7Kn3l8IqMdeTB6fb0gxafVs9XF4ZmsWxCfV/evMs9uf+SvMDXJzI2wT5IrPoufh/LYpFsQEGZ0qR+KADdftAolEUZB42C8m8D5LVMcrCVSgWRwkHanhzu2lxa+yjr+tJgW75O6RXdsJaSI2Y2Ge5rXB9nOj8fvhRlMq08D4cmCGvL1g== 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=O3xZjOuv; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7236-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=O3xZjOuv; 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-7236-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLX4P5DCdz4wJ2 for ; Fri, 14 Aug 2026 03:13:09 +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 3457C302A2EA for ; Thu, 13 Aug 2026 17:05:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 714F049690C; Thu, 13 Aug 2026 17:05:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="O3xZjOuv" 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 D7FAB495539 for ; Thu, 13 Aug 2026 17:05:41 +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=1786640743; cv=none; b=FdzyHdZQ04vrU2gL5uNYHxzMRb8wVPO5lnni2vca/MIQ3UWbRKihcRcq6htD0cbQ/7OsFJxz8pCWpYlKJMMNElQ3Whaydc+YLqwLGqMd7h8v+avQUZ/PzvETnL6LHdiYPyaVv0OvWJCaKWfMf5xqcT7EMmxYAi06WTtJYoVZM/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640743; c=relaxed/simple; bh=BF7Rk9ys0WDDHzHflGAuEI24btvVlm2FbGxQmoRlJhE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=su58ABAwnxbxpEK+08VADJngwdEHJ+KmOtBahv9UioPKANmPtScrXvf8PTaAeEOHFd4jvVInu3X4ol1VV+ju+svZO0MBTYyUKajnPU4AR3wOhR9R3s8ua/pB1RiBHF4psBB2XxPzwXhtSogBt/18TeDh76zitylh8PLcmYGS27M= 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=O3xZjOuv; 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=1786640740; 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=m7DByCcmMjMcU6fVtAV0LTF+gTPKITg6ZRJZBP5hclI=; b=O3xZjOuvmgIZTQ3imar8zUh3OWpSczKs0Ea+Ov2nRNhG6exfaV0xUBPG0l54GLgGQeegMk bgRnIu2stq4m6t5870RYA/wzUAt4uBP4sqkJFFXXUiYkaJzsH0P1Adg+L05ygWQgslYUIP D1Aq+6cUiOuxoeFEMoqlzZfxKwlX1q8= 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-483-dZ4Wkn9xN22gyZ5-MF-yqw-1; Thu, 13 Aug 2026 13:05:34 -0400 X-MC-Unique: dZ4Wkn9xN22gyZ5-MF-yqw-1 X-Mimecast-MFC-AGG-ID: dZ4Wkn9xN22gyZ5-MF-yqw_1786640728 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 A2B841956071; Thu, 13 Aug 2026 17:05:27 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 76CC6195DF98; Thu, 13 Aug 2026 17:05:15 +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 08/13] openrisc: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:58 -0300 Message-ID: <1616198d0cfa9434b36fc1ac6055064ae8c08057.1786626275.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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (gpr[7], gpr[8]) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/openrisc/kernel/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kernel/ptrace.c index 552489b24855..197a616d6c65 100644 --- a/arch/openrisc/kernel/ptrace.c +++ b/arch/openrisc/kernel/ptrace.c @@ -302,7 +302,8 @@ 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]); + regs->gpr[5], regs->gpr[6], + regs->gpr[7], regs->gpr[8]); return ret ? : regs->gpr[11]; } From patchwork Thu Aug 13 17:02:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285458 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=FUUpLXff; 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=n/ba=gg=vger.kernel.org=sparclinux+bounces-7238-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 4hLWxX4101z1xtl for ; Fri, 14 Aug 2026 03:07:12 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLWxX3Gzzz4wJ6 for ; Fri, 14 Aug 2026 03:07:12 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLWxX3CNnz4w1b; Fri, 14 Aug 2026 03:07:12 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c09:e001:a7::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640832; cv=pass; b=v5HNOHn+0xiygVg0HeHeVZfkWcpfqd3ura9TJjSZ/XGHY9Qi1wYkIVnfUDLn7/dvm1cRKoR04G6Q2Y3oBGXvz1jnG056tlneB72MHvDDbtKluDrOPi3BBWDD2SmHLtqaz7oZdNxGnn3+/BqzC/RR5ZkIJz8GB4qgAZ0bv4UcRyrq2nWjOXA3qQC9Hg9LCi3Q5hTqr+AU0aiLyyny8egzzk0z75TAvUxUih7oT+YrqsmX9q/vbIjNWbxoJRzwi+rZZ+vAuMPYiSg7DUSmurXL0H3baTu4P+GnhJArX4UfMiqZU9v4qie7wFIMcsG5zynItkUx19ElSgtXi+dTnkY1QA== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786640832; c=relaxed/relaxed; bh=5/fapztvh+JYJWSbiim6bS/NIIaWMImlcOIjrLe7Emw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cEv0j5nVhAgScVppDudvj7soyvKrJ0rqHT1AyAvXPwMVHjsY1HNN/gcqpkHOzDNP5sZEOLESiw7iOMgymCFtJrQqeeeEiC88Cry7JG2HtVU3eOMQrAAzCKoF2KRXfNbASQg8vKiwEERpmIA0TMpdM6byIote6+Oq40sMjAMrIeqVUDMpO7N+dMpCYQv+mjwHr1/Zagh09gASxHdzNs9IM9kmSVrYC9cZ/pVSNTM/yUt4v6fo7OdWjzTeLDEYaJj4K/cNIMUZyrgrZ4YfiDcxYfms3GENwdtS6l/S2F3Nh6zbVWCvlqWjEbLqHVaxoo5RHY8j2+kVCVEk04EbrVVgzA== 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=FUUpLXff; dkim-atps=neutral; spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org; envelope-from=sparclinux+bounces-7238-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=FUUpLXff; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org; envelope-from=sparclinux+bounces-7238-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sto.lore.kernel.org (sto.lore.kernel.org [IPv6:2600:3c09:e001:a7::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 4hLWxS68SXz4wJ6 for ; Fri, 14 Aug 2026 03:07:08 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 43520301FF38 for ; Thu, 13 Aug 2026 17:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59C844A13BF; Thu, 13 Aug 2026 17:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FUUpLXff" 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 9A0A7499F20 for ; Thu, 13 Aug 2026 17:06: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=1786640765; cv=none; b=ICAkCIOPGz7CubVfEbuy1SuM5silG4b5uJTsnxV/NJ8VBXZU9IEMu1aVlJW+ZZLUlenmVyfm9huc47c63Qiuc9QyaZwEtMlri2PMcFBLXM1qS5lNWB64oD2uJAmQZNYcExZMhtir1E5bt3mDSuObedAn8MM8xo1H5oTpkz07l1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640765; c=relaxed/simple; bh=fWWVqwOTWCCSPtiWZgdZQXWWck9/HAOBYmYhJBJ4P7M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s6NQ85W5vVN1nN6gCXHpcDJNWqHknEe4WYKSKtQGrLgzx7byxcat8Hc7Pi+0Ql0SVhCBnUloz0YMaU+vkW3xR2ckUwa00tVUSpL2F00xKj0YqscSDEern4Iw0ZS6HtAfu3OnCLq77cIUL6lXQ+qvGqu76Q+Tk7i6iVeunu+gcyM= 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=FUUpLXff; 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=1786640762; 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=5/fapztvh+JYJWSbiim6bS/NIIaWMImlcOIjrLe7Emw=; b=FUUpLXffMeeqflmXxott/1tKl804OB+VnWppe9TWqaQE0M7XasknkN7nSNQOaKxZlJq+1f ngH/g8hsU9cEh+W6b5pWbqQH4Z3DIunkiw/fGgOr62P6fY4ZEswN7hiuie1qF8rSINQ0kQ l09ZZpXIXd+zeUCUZ23OU6vIeF457n0= 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-478-zTkj5BKiPqGG_JDe6Pk0tQ-1; Thu, 13 Aug 2026 13:05:46 -0400 X-MC-Unique: zTkj5BKiPqGG_JDe6Pk0tQ-1 X-Mimecast-MFC-AGG-ID: zTkj5BKiPqGG_JDe6Pk0tQ_1786640741 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 B3E701955F1B; Thu, 13 Aug 2026 17:05:40 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1BBA5195608A; Thu, 13 Aug 2026 17:05:27 +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 09/13] parisc: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:02:59 -0300 Message-ID: <90512a215fb9bdd39471c241057c097ed8b93186.1786626275.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.0 on 10.30.177.12 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 Update both the native and compat audit_syscall_entry() calls to forward the 5th and 6th syscall arguments (gr[22], gr[21]) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/parisc/kernel/ptrace.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 8a17ab7e6e0b..75e74d214a3b 100644 --- a/arch/parisc/kernel/ptrace.c +++ b/arch/parisc/kernel/ptrace.c @@ -362,14 +362,17 @@ 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]); + regs->gr[24], regs->gr[23], + regs->gr[22], regs->gr[21]); 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); + regs->gr[23] & 0xffffffff, + regs->gr[22] & 0xffffffff, + regs->gr[21] & 0xffffffff); /* * Sign extend the syscall number to 64bit since it may have been From patchwork Thu Aug 13 17:03:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285467 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=aXtO8MXC; 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=xz9l=gg=vger.kernel.org=sparclinux+bounces-7237-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 4hLX6x6JtFz1xts for ; Fri, 14 Aug 2026 03:15:21 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLX6x5Qzrz4w1b for ; Fri, 14 Aug 2026 03:15:21 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLX6x5LY7z4wJ6; Fri, 14 Aug 2026 03:15:21 +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=1786641321; cv=pass; b=spvQBtbGW9t18WNqTpOea9HHpUZo0b6gu0jJGcSHdx5uY629KtKNwM0F+wRf8PK5rDCCSM++9q15tvYGH+WXI/8g0EcmeBfhuh+e+npOpUkZVprZ4YqLI70a05Fw+nKtgBdzUcK+RpMRVlFdzZRRZKyZILMVWKjGThLC3lYFvORRxoiB9Uk1FQ/Z4sZl7AqgNQb6Nbry3rQyXQ7RLpSwI25p7U0Rk2GW5pVEpWfYzQhpvdFF8Bdi6iE+1PqED8LBXHhp80kZfVguxLU4rUNuf+eB1W6NhMkQzdlSGaeUPdwAM9LIJRrKPthI2FstjF7mSf0JRC+kTryIi7yVXAyDUQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786641321; c=relaxed/relaxed; bh=PT2ri8aRhgjrTVSTpNbQtsdRkL9ZTdzAq1eD0J7E/1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aBUlTzElXzS0hT4XE1jX03gx3I0j551LjRz0/+wiG6boPW0zC3ovyvXOcGOOGEw30Go1A5a+PpDECFKepP1V3M6zsPEuFxghuZMYdb4MIoYtmrKSlCNIZfm2rO7bcSoGyvZuU6V6ikMAGW97ptu9nyMazQnaGC0IKJhDckCU5xFzUhr+pAv0x/9MvDI+2622/qiHgKub5eh1ZChHdG+qDEsYHtprftA4TAney7llcpQaBGAKu2EpCwvFiOa5NQWyo9lrhKedB4m65KsA0IXTfGI5XAeOdJu7T73bM3SXAANhRqpdkiYUQuFGr1dnjEotPPFXKFFhfPenakDQ0EFumg== 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=aXtO8MXC; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7237-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=aXtO8MXC; 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-7237-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLX6t1QMCz4w1b for ; Fri, 14 Aug 2026 03:15:18 +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 21415302D084 for ; Thu, 13 Aug 2026 17:06:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5873499F2E; Thu, 13 Aug 2026 17:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aXtO8MXC" 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 1661C499F25 for ; Thu, 13 Aug 2026 17:06: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=1786640764; cv=none; b=WtyzhWG1aZq/1pXY2SzZMkmc6rP8eRMfrnLf+zA45aD0g2//2VSDy9vnSdtuc9vJBTPmv31YND21kS5/U4C0dCAxFY9Sfb7YyqaYkxkmm4xJV0Wl1XZR2JiJU+63XyrvQG+rJz0OJ47dNnYqohSx9rxtitw3Zat6ZTOR1aTvTc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640764; c=relaxed/simple; bh=GQUGo/K0SSZv8gZ1d5IhkMoOWnLCmA4LLvNgg0xtwHQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nWRWbSJWrOGW6SqJxDZ5TPZnBbn3Qk/ArhRaTB7Z/VQE5KppLRCZq+XI3+yHkAg3wMp5B/QUUoH0qbk2RFjsNXDU0Hovz/hR2/CF+c12ZvYiUG+i5EK1CcVHT8+ir7FwpR5ZM/FTbCc4oyp3MDnP0Yg5ioZCRwjJSX9nNJUTYWM= 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=aXtO8MXC; 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=1786640762; 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=PT2ri8aRhgjrTVSTpNbQtsdRkL9ZTdzAq1eD0J7E/1k=; b=aXtO8MXCG2wcq1iEgYrktlt4Y7+3Dl9r7uo/+90Iyhj9O/ClRKU0g6jbrW/M7HSpZBa0Tq xHHK27DkZz/sfe1osicsvKD847Cpx92gWFKVPi1EsQEKgXJGaSSmvlmPDOxKX2PMapiD4F oqIUQt7ssUo1px1MNH7aH6b9SPXrI+Q= 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-670-wSnG0OpgNy-hiywKDHrLxQ-1; Thu, 13 Aug 2026 13:05:58 -0400 X-MC-Unique: wSnG0OpgNy-hiywKDHrLxQ-1 X-Mimecast-MFC-AGG-ID: wSnG0OpgNy-hiywKDHrLxQ_1786640753 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 BD6931955DC9; Thu, 13 Aug 2026 17:05:53 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 2F3A4195608A; Thu, 13 Aug 2026 17:05:40 +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 10/13] sh: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:03:00 -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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (regs[0], regs[1]) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/sh/kernel/ptrace_32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c index 06f765d71a29..3efefd67b457 100644 --- a/arch/sh/kernel/ptrace_32.c +++ b/arch/sh/kernel/ptrace_32.c @@ -467,7 +467,8 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) 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]); + regs->regs[6], regs->regs[7], + regs->regs[0], regs->regs[1]); return 0; } From patchwork Thu Aug 13 17:03:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285469 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=Jdnwu0SZ; 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=a8rx=gg=vger.kernel.org=sparclinux+bounces-7241-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 4hLX8C1FtBz1xwH for ; Fri, 14 Aug 2026 03:16:26 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLX8B5X2Xz4w0H for ; Fri, 14 Aug 2026 03:16:26 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLX8B5SMVz4w1Z; Fri, 14 Aug 2026 03:16:26 +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=1786641386; cv=pass; b=OwwNHU818oL+M6GS4MJlRje8va6v50j2rtkSt0zL35NBxjWzyPMX7Vp5u+0Cvw2Jq6MPrCYp/opwiM2vxZKujXFZSj+oIWFOGCCKAfsCs0nDp/GfNRDlMrXgtskmKVUkYU+EatZZ/ZvT5+zuZ0gADJ5D9oYglF56WqDE3kobKMS8c6cv6nhr0lKam8SbjEMeahJxffm53UAYMpPEdNN4vYKY37ZAYZuFDQf32lKmASNwvBK0v5zfMaDI0gZfTxKO1+dEYGH3TrTlEFVJWI0oWgQAnTME8N2+9dRZDbsjISr2XF/Pb7JqjvohFUo0dJSsEH/yV7pbJ2+1X7tM4ffcUg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786641386; c=relaxed/relaxed; bh=jpaakGs2Tf7xeoHHoL80KxzX2+hb3XlzydpXYC2fGY4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ocytXm/ivNJp3UV2aldaw+xdp5A85gNkSAPP3b7r5I9c/SPOKYXNUnLH39U1f16y82dmHamerBCEwPeKFBZM/UTQf05E8vpCF2ycEdEoUdknnhw9X3V58euVPB/1UnkNl9HtbBUbjsr5FheQOOi9917zUIECUWu/6Wh/8UwlsYMhvRBDWDRDjfPjcuJnGGInYiPcjqq4aqHDfrFEc5gWPRNDBYgZRxOetyqdnu+SO8iPFCfN2ogTSIMnOAQJbVeLM0tXfyLTG6u+4E1s3gifLtYg3CkBLjWcQ24KHUuLvNUZgmooaRZT2zxTglzI3Oy+iVer1cXy4IMjGEgg7TX7FQ== 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=Jdnwu0SZ; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7241-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=Jdnwu0SZ; 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-7241-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLX870t9sz4w0H for ; Fri, 14 Aug 2026 03:16:23 +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 2176B303641E for ; Thu, 13 Aug 2026 17:07:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D3CF499F1F; Thu, 13 Aug 2026 17:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Jdnwu0SZ" 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 5AD6648CD5B for ; Thu, 13 Aug 2026 17:07:22 +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=1786640844; cv=none; b=ZOYZrcqpQsD3+BNj5Y03SGlHxe6Jv8N55MJmAJRUG/3fOLzqnePfVCC2C9tk5ESRBt1EZqDkZr0xitmCJrON80/vApp4lH/Xnvn9szMz074/pOqsAIQCjBbrMUa33AX3Vc4hEl/hI695EUyT8a9MsXl5MP926c4XByg/+Ha8LyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640844; c=relaxed/simple; bh=w0jbd1lgYBWjloNI+GXG0PPjt/OCDX0+pwpLokZvL6I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hqBT7tg2j0VP+9MlQDK5ax0VpxtpliPPqGXf5a/RVl/42bgvN3V4bNJ9V/cwqsuXwgETik3Jp63lDu//EO6SzdOUAKWOmpdt1o/ifuH9SQnfZJffuyqEdE3AOmjWW5ztGJ4fMWsNiua9YT46P94Ohr0BUKrKYE40mBDbg9ksGuY= 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=Jdnwu0SZ; 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=1786640841; 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=jpaakGs2Tf7xeoHHoL80KxzX2+hb3XlzydpXYC2fGY4=; b=Jdnwu0SZDNt1sqVnI84vSj4mqVHF/0nH7n8R6V0x+KLaWvpLlsvlDBch8AqeNR9tAarzky pk8Fg2evAOroAU5SKmX8Mp9TG/Tsh6duEK3WB5ISN6gnmzvwikEhfu9xds5THqxqxlzJlS r9kbHY585Wzk9/b35heWmOB+sSW4Xhg= 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-689-wBrpiqygOMm-ilyseSAiJg-1; Thu, 13 Aug 2026 13:06:10 -0400 X-MC-Unique: wBrpiqygOMm-ilyseSAiJg-1 X-Mimecast-MFC-AGG-ID: wBrpiqygOMm-ilyseSAiJg_1786640766 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 EA6521955F3F; Thu, 13 Aug 2026 17:06:05 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 375D4195608A; Thu, 13 Aug 2026 17:05: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 11/13] sparc64: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:03:01 -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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (UREG_I4, UREG_I5) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/sparc/kernel/ptrace_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sparc/kernel/ptrace_64.c b/arch/sparc/kernel/ptrace_64.c index 9fc67fa9336f..d0ad3200d789 100644 --- a/arch/sparc/kernel/ptrace_64.c +++ b/arch/sparc/kernel/ptrace_64.c @@ -1100,7 +1100,8 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs) 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]); + regs->u_regs[UREG_I3], regs->u_regs[UREG_I4], + regs->u_regs[UREG_I5]); return ret; } From patchwork Thu Aug 13 17:03:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285465 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=Fo5lpGq1; 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=+/zn=gg=vger.kernel.org=sparclinux+bounces-7239-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 4hLX4R6gFZz1xtr for ; Fri, 14 Aug 2026 03:13:11 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLX4R5nc5z4wHs for ; Fri, 14 Aug 2026 03:13:11 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLX4R5j83z4wJ6; Fri, 14 Aug 2026 03:13:11 +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=1786641191; cv=pass; b=oFhhTX3WXBxhNPJw6IT4qhPsrW1XkuW+6g5qqxqSvw/M9HA+dLCvOf58f/cxNH0b4mlY+mAXh+ZpUD1iPpvYIhIiuQQKIF4S4ilyIWcIJ+AHH+eV6UNfDog4uo6AuBp9NbEALTRx8POZNMrQ5TK//pPgVotlAXzygUM6nEP1Bdrbj6SRzPejF7c+06afj6A/dpA7qo6ysHfCK2CI3JryT6oQ1A63CppjYS+Kzf2NEaNeOHM07djv6/GMyQsgx1k4DTaNYkPfm1pwMn6wp30ooFJVs+HN5QEOTOODEbUYI3006AydYS9wsF7QnXrh4YDtwTP4F5pg2vAgxBrJ6FI1tg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786641191; c=relaxed/relaxed; bh=0X07In1qldTGybmdx53x+y5tR/aR+S5pQLXMdfQFUQ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hJN8frMAxsHil7knXFJOZKHK8h/3eoJqppghEK/Zyf+pkLItVx8gc8T0gvhIsKFCz1/2pAeNLjTTXjXSv43bzdpYOk4/wLJ/ujk+F3DQ/IC8/Uz9VgdfM7MpKp9aegrnD5yPPNL7Wiwtjjzs9JwbUFD5ymlofiNwvnFgJVoCijZGlceZz/tReusdbinKK71LxrMkxfFpu0zizP+kLBwxr98okk7/3zWcZ+uvAsytXUqzSJoAdVam+sDdiiPp8cOuX5H9ujMSCoUl5TDwO3TeoOKmJldPjRf81KofqoVj68nVNJZhpUZKj0L1NT73vrGj3lNXUyuz45SIsAO5n3SD4w== 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=Fo5lpGq1; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7239-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=Fo5lpGq1; 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-7239-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLX4N1rzJz4wHs for ; Fri, 14 Aug 2026 03:13: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 DF2193018405 for ; Thu, 13 Aug 2026 17:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 756814A13AD; Thu, 13 Aug 2026 17:06:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Fo5lpGq1" 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 DF683499F3A for ; Thu, 13 Aug 2026 17:06: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=1786640791; cv=none; b=cDrJnCLjkTSqfLLWQhQe66mKkDZsfJrcxyd+Bf72Qg3zhOBEkEJpOiGtCB+bBDRYYDu3H6+af2sVy1dLLGAZ61WNU0O+hOOGNi+W6i6p7Ii8d3X+2EveF+edyPmTyjOhRIMnFoxrxGjqJMI17Ajdyx1Xpj8sVg+R4eZQce3GIpE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640791; c=relaxed/simple; bh=NpNfO1oxWkx5Q2CNwypUnwKHU6qaSbdW69UUIfjLVL4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l25DQ687TJGPaK24as3BVxEwKHnc4wxLOLudOEEoQPkq1V/yt0lladtQvPSJxGhysxPewOOANNLfdtV6kJyead6ov+Z62n2YhOQNp07ZITMKGX7Nk9Gl8N+KaeeSk/bVrEo9/S6iPjawCv1O3tjDt55VCUDW6xYLjRFRLtm9mJE= 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=Fo5lpGq1; 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=1786640788; 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=0X07In1qldTGybmdx53x+y5tR/aR+S5pQLXMdfQFUQ4=; b=Fo5lpGq1Z2/nanr08V/STbg7HjMCnGqnrjRU7PVif5jrfTp+1uDomGV9o/ETEmdvHfy9Zk MSra1q01SdBTAPzHbBAFI6aD6mp0APQaaFY/wWvMMOer1DnI8ZG7n28wI58UsD3luFDU3s bg+H0T6Ke7ldaj4PuSs8Qb/iitSf7n8= 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-537-HbeFCVHqOGGW_1hh13qClQ-1; Thu, 13 Aug 2026 13:06:23 -0400 X-MC-Unique: HbeFCVHqOGGW_1hh13qClQ-1 X-Mimecast-MFC-AGG-ID: HbeFCVHqOGGW_1hh13qClQ_1786640778 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 B963618001E6; Thu, 13 Aug 2026 17:06:18 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7586A195608A; Thu, 13 Aug 2026 17:06: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 12/13] um: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:03:02 -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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (UPT_SYSCALL_ARG5, UPT_SYSCALL_ARG6) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/um/kernel/ptrace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/um/kernel/ptrace.c b/arch/um/kernel/ptrace.c index fdbb37b5c399..c597a368592d 100644 --- a/arch/um/kernel/ptrace.c +++ b/arch/um/kernel/ptrace.c @@ -127,7 +127,9 @@ int syscall_trace_enter(struct pt_regs *regs) UPT_SYSCALL_ARG1(®s->regs), UPT_SYSCALL_ARG2(®s->regs), UPT_SYSCALL_ARG3(®s->regs), - UPT_SYSCALL_ARG4(®s->regs)); + UPT_SYSCALL_ARG4(®s->regs), + UPT_SYSCALL_ARG5(®s->regs), + UPT_SYSCALL_ARG6(®s->regs)); if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, UPT_SYSCALL_NR(®s->regs)); From patchwork Thu Aug 13 17:03:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Robaina X-Patchwork-Id: 2285468 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=A1YOC/mu; 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=/+ie=gg=vger.kernel.org=sparclinux+bounces-7240-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 4hLX7Z2rlTz1xts for ; Fri, 14 Aug 2026 03:15:54 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hLX7Z23JPz4w1b for ; Fri, 14 Aug 2026 03:15:54 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hLX7Z1ytyz4w1l; Fri, 14 Aug 2026 03:15:54 +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=1786641354; cv=pass; b=YrP5dX5FPMTEQFQchRL4XOFtQ0D+OcB/68uZj3ca/cBd8DoNjkwLtzyYxqdW9zaFiQxpPwHwAM4hTxLklTLLR491m6Rp0w7WzoyhqfHju7Ovgc8o4wicWR7RRRMZcewkw6x+HbmS3PK/J5P8Ve1qAoPYu6N9LBhrVscv4MI15toAFk6tb2DqZk9/i+2uiyYhG3DQsLD+IojG5xmOPs39/6XTuWZ4LBPyybsGezmx2zqzx3h374j29ukZmhcGcR68Sgp8EJ5WjvIjkdLXUjtDxlKUZzv9q5o2vWYbE263cQ2rcMLJwvueFCEwGFboRi7LwnJ1LXagC8E7U8JfEuMWlg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1786641354; c=relaxed/relaxed; bh=9TxFFtT5q6hhEXv1kvzuRF0i2wkqVQa93JW+RoA9mS8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H79JSLqOkIPEOoCSHYN76l/XSL51nTa+3r72zkL9edTG59SIEn3PMdZMDD5E8rKZJebWEkEiYva4F2pxnHBWbcoy9Vyhq7sxRVnPgqfgtvmmsheDG488KW15h2KxG4GqqoK1M8RqXG2MFG7NUz2Zc+vzr2NKO8V75Imnb5BAeZpnWFSV2m1QY3ossm+623uVGWZF/o5618FmJYGGS6YHdmCjZH91iGWSIdX3UZ/95aJCiOudGTpqp0SgUPSWR5h6kSQjuhh5UsWvpvSroSumIb2oLwNpE90amU4mXfHKXKsfe3NyfJFD4CgoJ4JiHfK5ANQZOFul4twkROJkgV4Mzw== 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=A1YOC/mu; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7240-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=A1YOC/mu; 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-7240-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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hLX7V67VSz4w1b for ; Fri, 14 Aug 2026 03:15:50 +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 056473033A87 for ; Thu, 13 Aug 2026 17:06:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF6FE489876; Thu, 13 Aug 2026 17:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="A1YOC/mu" 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 737A64968E2 for ; Thu, 13 Aug 2026 17:06:42 +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=1786640803; cv=none; b=b3j7+oF1REMFJyIqzqHGR+sRmPf8MKduP52hQcf5vrYeqHZ6REwTUD51p4NXS6MGpunDc5mCLLQhxYf8/iChkyDRq0O7b/DFbhuznrXCn1xQCsGm5BBONBWXwvnWAYC7CoY7bZjFILuiePImf6F9cnrkUoEBoAqU5jqklaJWfIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786640803; c=relaxed/simple; bh=lR8qSzQmvWmaB4RQMK4RGGNQKS1QaeJDt2mblFTguaY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HrCuMq5Jt4xbxBf9Xk17zsJci7xye7/A0DOYeAYfg1nvcHiWDSoFC1YA9GUceQHI3RhSf59txrOYwliPtMeaL4NA4prxFgAckePU0yRDuDpaPYYRw/GruJGPCj6yue3fJcAJyknSzXC4FucPVYFqr8fw+X4Rzo7oXKjResF4lCQ= 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=A1YOC/mu; 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=1786640801; 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=9TxFFtT5q6hhEXv1kvzuRF0i2wkqVQa93JW+RoA9mS8=; b=A1YOC/mubLHc7EpEhKSEebKujiZj9uDDFgfILN7llzP0we7fOnx0H8UV3Bc+dVl/2ICCU3 l9Gye94uA8Bz0hPxp48nAqON6uy0rVg5WPAEwkTsEty23A39/4GrenidDtumjpsjH61Y5E UVbFox6+AwsqvOXUksUUNJeDXiXf9EI= 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-448-kZvjQ2dNO5aDefn4CIGjPA-1; Thu, 13 Aug 2026 13:06:37 -0400 X-MC-Unique: kZvjQ2dNO5aDefn4CIGjPA-1 X-Mimecast-MFC-AGG-ID: kZvjQ2dNO5aDefn4CIGjPA_1786640791 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 0777C18002C4; Thu, 13 Aug 2026 17:06:31 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.24]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3411D195608A; Thu, 13 Aug 2026 17:06:18 +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 13/13] xtensa: pass all six syscall args to audit_syscall_entry() Date: Thu, 13 Aug 2026 14:03:03 -0300 Message-ID: <0c7aa94c05b08d959d885b3b0434646a6b2fcfd0.1786626275.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.0 on 10.30.177.12 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 Update the audit_syscall_entry() call to forward the 5th and 6th syscall arguments (areg[8], areg[9]) now that the audit core logs all six. Signed-off-by: Ricardo Robaina --- arch/xtensa/kernel/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c index b80d54b2ea34..122a6ffc0757 100644 --- a/arch/xtensa/kernel/ptrace.c +++ b/arch/xtensa/kernel/ptrace.c @@ -564,7 +564,8 @@ int do_syscall_trace_enter(struct pt_regs *regs) audit_syscall_entry(regs->syscall, regs->areg[6], regs->areg[3], regs->areg[4], - regs->areg[5]); + regs->areg[5], regs->areg[8], + regs->areg[9]); return 1; }