| Message ID | be964ca4e6854db2a66cbba4af1ff2fdd769e752.1786626275.git.rrobaina@redhat.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=xZ9l=GG=vger.kernel.org=sparclinux+bounces-7237-patchwork-incoming=ozlabs.org@ozlabs.org> 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 <incoming@patchwork.ozlabs.org>; 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 <incoming@patchwork.ozlabs.org>; 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 <patchwork-incoming@ozlabs.org>; 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 <patchwork-incoming@ozlabs.org>; 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 <sparclinux@vger.kernel.org>; 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 <rrobaina@redhat.com> 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 <rrobaina@redhat.com> 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: <be964ca4e6854db2a66cbba4af1ff2fdd769e752.1786626275.git.rrobaina@redhat.com> In-Reply-To: <cover.1786626275.git.rrobaina@redhat.com> References: <cover.1786626275.git.rrobaina@redhat.com> Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: <sparclinux.vger.kernel.org> List-Subscribe: <mailto:sparclinux+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:sparclinux+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 |
| Series |
audit: log all six syscall arguments in the SYSCALL record
|
expand
|
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; }
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 <rrobaina@redhat.com> --- arch/sh/kernel/ptrace_32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)