| Message ID | 83d9a03e1fa526aef9f2ecac704c118a156401d7.1788351089.git.rrobaina@redhat.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=hbGG=G2=vger.kernel.org=sparclinux+bounces-7432-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=ZJDYzkz8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=hbgg=g2=vger.kernel.org=sparclinux+bounces-7432-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmRF1fMYz1xvf for <incoming@patchwork.ozlabs.org>; Thu, 03 Sep 2026 01:11:53 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmRF0PRsz4wCM for <incoming@patchwork.ozlabs.org>; Thu, 03 Sep 2026 01:11:53 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmRF0JlCz4w2D; Thu, 03 Sep 2026 01:11:53 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=172.234.253.10 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361913; cv=pass; b=BuUs59jEicm33hkbTIa2RL9q0fGFSE8XpqXy/BYgnPEYcoYIJUBgY2PYAOb1C+pseZ56BDVhq4o1zF3PYLzjuIj/MdqnD2bRCUbsPqLx1q/OtydKy4qzvTvenakD3mfvfNNwpzHcqHmK3jVTN6AEaJNburL5mBGKwk2LriV7YA5lauFInp6LonMX0AWRJfAodMDuPBfl3Ll9xs8Xgp0pzWmS0eE92RwgVyhWYu/YUlKJfHuq61IIR/yCy4uG2+tffirVoxoHh7cZmRWCEb0maeT+vWOkAVNvOE7gsDOMHKkLFqKw4ZBxzsqBf1ul8gtwiuMuAJm5kreCSYowXYNq3g== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361913; c=relaxed/relaxed; bh=w7y9W91HQGBu0H2CHYYe7IynyY+rFM6Tt6aZ3QhTjIQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IyJw7EQM/+sZ2xc16baIkgYeKoIAotjC98hJAXqdYqRoEYCWrLvIcAKSRZzJa2K7ERKUx54mJdaWKs39TV6aaJAr9uDp3jxDfHFem9qli1CdBEaBP5VEI+0NBAVTVSd4xAaELFk+o5ZXoSZO6RMKgLq3YvaWbto0yU/59wBI/3RoOu+xKZ8YQLepdLCsETId34L2F8bDZxbiZ99YDaXlqMESMNtb+rSTL7JhCMa2LnVrmFhWwZBhGygkgHRkcKY5GuM42Fyw8cd+15P+br5byZrv8NNcyllXDP8NetEAcQEkJ/ZIR4RegX5AnMEV2zEXNdjR4MQa4cEO6fyKqMwX5Q== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJDYzkz8; dkim-atps=neutral; spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7432-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJDYzkz8; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7432-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmR84HZNz4wGB for <patchwork-incoming@ozlabs.org>; Thu, 03 Sep 2026 01:11:48 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 713C63D55B for <patchwork-incoming@ozlabs.org>; Wed, 2 Sep 2026 14:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1154A49A3; Wed, 2 Sep 2026 14:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJDYzkz8" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C464A4A3F09 for <sparclinux@vger.kernel.org>; Wed, 2 Sep 2026 14:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360385; cv=none; b=PviDONsn0gsjnwFgKLK9GJj7Kk7N/d247KJghFNKJ2LoZCRnpoHl1tUoFjb7PRRCo83ZGWyVH/6Rtiycg9E90z7OlB4RzJr08pO2qTnlBXWt2AHyPnSgzhFkW2+SquhMalBeMQXsbaYXq48KiX503V7EbFRgFUZB3zagOwX5MDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360385; c=relaxed/simple; bh=4IaYU5F5ZUse8/txNRWQkXrU6IWQl/7zD1+mzEskZsQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h7hhzaZQJrMG7o8dw9Si85KGTBNTAcIaZZTczEHWa2o35rKZZaD+6/wau2Q3quznerRu4L0ukujiv7zDV/pxtE+ocpk9hHlmXMrY2+HYervI+wIY6dS/T2hsSPsOKFp6fRn2SSbrW2U8jkRjb55UAFbYnjWSEBGG0cCOmdfjXF0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZJDYzkz8; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w7y9W91HQGBu0H2CHYYe7IynyY+rFM6Tt6aZ3QhTjIQ=; b=ZJDYzkz82IKHld9P6uBZPzyYzu0hvREP7kDKrl9jzQkK246JcLUgKyShsvZWqfD9DbX7/d 3nKYVFgR1qmiCDbI0hyAaYGDDRMKz/1/NpFqsgZ+DGgdtbjQWpudmMVB6RDb9rHZYVwBqv LfUO5icyZIrHvvEtEvlDlzphNzwQQ2k= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-dCVeTZG2PKK-c4lSlVKL2A-1; Wed, 02 Sep 2026 10:46:16 -0400 X-MC-Unique: dCVeTZG2PKK-c4lSlVKL2A-1 X-Mimecast-MFC-AGG-ID: dCVeTZG2PKK-c4lSlVKL2A_1788360371 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 52069180133D; Wed, 2 Sep 2026 14:46:11 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5965E1800643; Wed, 2 Sep 2026 14:45:58 +0000 (UTC) From: Ricardo Robaina <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 09/13] parisc: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:42 -0300 Message-ID: <83d9a03e1fa526aef9f2ecac704c118a156401d7.1788351089.git.rrobaina@redhat.com> In-Reply-To: <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=-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 |
| Series |
audit: log all six syscall arguments in the SYSCALL record
|
expand
|
diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 1d9e210702e1..948e0cf29ba4 100644 --- a/arch/parisc/kernel/ptrace.c +++ b/arch/parisc/kernel/ptrace.c @@ -359,15 +359,10 @@ long do_syscall_trace_enter(struct pt_regs *regs) #ifdef CONFIG_64BIT if (!is_compat_task()) - audit_syscall_entry(regs->gr[20], regs->gr[26], regs->gr[25], - regs->gr[24], regs->gr[23]); + audit_syscall_entry(regs->gr[20], regs); else #endif - audit_syscall_entry(regs->gr[20] & 0xffffffff, - regs->gr[26] & 0xffffffff, - regs->gr[25] & 0xffffffff, - regs->gr[24] & 0xffffffff, - regs->gr[23] & 0xffffffff); + audit_syscall_entry(regs->gr[20] & 0xffffffff, regs); /* * Sign extend the syscall number to 64bit since it may have been
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/parisc/kernel/ptrace.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)