| Message ID | 83f97472fb90a20f84892b6686c2158027c3e06c.1788351089.git.rrobaina@redhat.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=Ir+7=G2=vger.kernel.org=sparclinux+bounces-7428-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=UUGGt4ZK; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=ir+7=g2=vger.kernel.org=sparclinux+bounces-7428-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZnKk5S6Yz1xwg for <incoming@patchwork.ozlabs.org>; Thu, 03 Sep 2026 01:52:09 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZnKj18GHz4wCX for <incoming@patchwork.ozlabs.org>; Thu, 03 Sep 2026 01:52:09 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZnKj0qMYz4w1V; Thu, 03 Sep 2026 01:52:09 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c15:e001:75::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788364329; cv=pass; b=wGO1tdOqhy9RpUOTa5f4W5ycSw4Zh69n0cQ3LpAhOyWw/HPMACDXyCawyBpPZIlJuopj2aTh8OoGJKw256bseQs6EZ8tueu/2FhFTqqwtFjIwiaCjTjWvZ99ijz0y4xc9Em1LOtnap9X11vRuHK79/vyONJ20cx7PaMFZMrw+6wQC+FIAbSpdF/LMDx4kQQZgi3O0oZQGD1Dyfo+c8H07FckMb5F38SmGkVmK0Rl7CDluxyryvpOelWXqUV6ef3OngA/cS3WirD6dcnHHu6dfOzrLwQBdDerBGWP+5GYrPURtEOzXpwjnAaZxL7LJLDz/3zkkeqbVnKixygUJaMlNw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788364329; c=relaxed/relaxed; bh=iMrptk4mqYOQP3eWTGD3d/U/K/Lln3cM3PUoSH99Zx0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X5Gtp5FnO/+rBZLlgZkobZSfx4QIibvz4VjDLXBrl7wi8obsqetvr9v2twuZt1cmk7Ehmu0JaPeIw+0EgFElc08KFw80WOw6zMk3bqthQamzfyv/GnkEunaXtOz4h/0JeFwvdKbV3ok05JHTC+URYDZF4EUw/bxQlGXEKjx/ZBleURLyzmOHiYU3SlXTN1+cfbCo5UUq48Vcm5TGaa3wmzPHI2cCkahCk2kk87XkfwVenBEVcMv7YCVwZWmuVJB/tm1zE7e5gufYTq6SeKul6rSOg1KyF4oY6yV19R9t0UO8SzkQRVQVxGXQOCF6Cw36qO2cMoGp5p1P1iMsQkbszA== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UUGGt4ZK; dkim-atps=neutral; spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org; envelope-from=sparclinux+bounces-7428-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UUGGt4ZK; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org; envelope-from=sparclinux+bounces-7428-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sin.lore.kernel.org (sin.lore.kernel.org [IPv6:2600:3c15:e001:75::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZnKd52ZTz4wCX for <patchwork-incoming@ozlabs.org>; Thu, 03 Sep 2026 01:52:05 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id D6CF347CBE for <patchwork-incoming@ozlabs.org>; Wed, 2 Sep 2026 14:46:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE46E4A4820; Wed, 2 Sep 2026 14:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UUGGt4ZK" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 818234963A6 for <sparclinux@vger.kernel.org>; Wed, 2 Sep 2026 14:45:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360334; cv=none; b=TFmdU48zpDzRrM+bZDQ4FD5z4b/8sOc6Oqpu6Pzsl4ut/rNsTALHWFjE2wtQpHj6V19eQt/X14YH6p1bC2BD+Ilxo59xPcbUYpmyhE8MyfRgVWkb5FI0cWUIjXrM3FoBp7WaSaTA3Lu3tJAyCcBnZoxAI1IhEoZTtWSWnFMQsKk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360334; c=relaxed/simple; bh=jq17hbYLb63begqUlax0zfoLb1QS8lLPBPIiPSa6mk8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gm+fEna2QSiVseOd2WFyktSU2rRGFJjY69ZFk+NcJqaMOMCkuQGINA5d9M173tOtIbJtoMA5r4pUsaQjdjRj8WInaNm7l75hJdBfFL62Wm3yHtwKFBCgFSo5tRPc2tKEma9HWSEXK4zCVOOmFyclmaq+iHNawxLyJZ6BJOYREkc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=UUGGt4ZK; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iMrptk4mqYOQP3eWTGD3d/U/K/Lln3cM3PUoSH99Zx0=; b=UUGGt4ZKCdPEFC6ZwiyVCeLCYtXEfLmfchpxB18I+NiQKAjFFaTKH9fF1zJqF1+hiGCCio FyLLvWDJkvEckCzowx4VrqNf/BcZUHZ9irs4nPAcImFQ+ScL7pdNvAIIsNW+Ll2A2Al9ae QiX6qIxF0A82d4oSGiLnqq41VnFd6M4= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-199-U63W3z6YNve8UdxmLpajGg-1; Wed, 02 Sep 2026 10:45:24 -0400 X-MC-Unique: U63W3z6YNve8UdxmLpajGg-1 X-Mimecast-MFC-AGG-ID: U63W3z6YNve8UdxmLpajGg_1788360320 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9B785195D03D; Wed, 2 Sep 2026 14:45:19 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B17831800641; Wed, 2 Sep 2026 14:45:06 +0000 (UTC) From: Ricardo Robaina <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 v2 05/13] csky: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:38 -0300 Message-ID: <83f97472fb90a20f84892b6686c2158027c3e06c.1788351089.git.rrobaina@redhat.com> In-Reply-To: <cover.1788351089.git.rrobaina@redhat.com> References: <cover.1788351089.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.4.1 on 10.30.177.111 X-Spam-Status: No, score=2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
audit: log all six syscall arguments in the SYSCALL record
|
expand
|
diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c index ee2867a1576e..5c3051bcd78c 100644 --- a/arch/csky/kernel/ptrace.c +++ b/arch/csky/kernel/ptrace.c @@ -329,7 +329,7 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, syscall_get_nr(current, regs)); - audit_syscall_entry(regs_syscallid(regs), regs->a0, regs->a1, regs->a2, regs->a3); + audit_syscall_entry(regs_syscallid(regs), regs); return 0; }
audit_syscall_entry() now takes a pointer to pt_regs and extracts the syscall arguments itself via syscall_get_arguments(). Drop the individual argument registers from the call and pass regs instead. Signed-off-by: Ricardo Robaina <rrobaina@redhat.com> --- arch/csky/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)