| Message ID | c484b749374ae3768e57f4e7148324c4a730bef2.1788351089.git.rrobaina@redhat.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=l2mo=G2=vger.kernel.org=sparclinux+bounces-7436-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=hAifUhAQ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=l2mo=g2=vger.kernel.org=sparclinux+bounces-7436-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hZmG80QFRz1xwZ for <incoming@patchwork.ozlabs.org>; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hZmG73mxrz4w2D for <incoming@patchwork.ozlabs.org>; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hZmG73jlbz4wGB; Thu, 03 Sep 2026 01:03:59 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c04:e001:36c::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361439; cv=pass; b=sS/SdHcmEAnF3Yr4dMRZrRHvuDfY4MoZHWUWf2hN9Li2LZYtfqOHdVHN/FyOE/i4AVh3UjFQ2BIV7zVj77GqDlysibDSzqyXLD6WnFJZVYwZxEbO5xXkbB12dr693BgBc24m3sYusCRepKeTR7DhdiHyQ3BHZw4Rs5qOTJ0kT9k9e4Ape8BdqnoDzYJFz7/p55RZprMHQscQYSLpFRG0MTalJjWTZGdyW8hZWyjoNqtZwMKplZ2qqv4RoetR9C3gwsOA6cPbU11l/j1OKBzmr75sCsB1pMRRssIjvvjLH2EsCQjBu/OFHigc0WGYuprG4uBMJGyfBb0gOxS4QgMTzg== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1788361439; c=relaxed/relaxed; bh=nZoYau2WBD6IZMmGu3u7wBhLPz0DgKCouySyNxSkIQc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y30P26wfLDSLy7Uql/QKpB7nsvoy3oi8BX/rYgIVLojP3PW4LLPOXF7KPU+J1Ow1mUG1AgDsFbPv45etLhMe61gl0j4Y63fVTCyTz6hi8UYu01EDUA/YJI77B8coevyE32g0DiFYPpCHwcFiJWuC+fhDfoaONIX+PZR9gRM1K1YkKdlQ+/t6+kcES4CXjlWdMO0EzKNwLyVJosFQcArqWmPYbP/geYIsS4Q3seRp9VL+tLDZ8NAFFh9N5n8u3f8oxBnzvIvPUWfiC7uDJsAmcBW0nTwpJi0m83yUzOLY5NNNAKHoA3Ex9GcQBT4cOFLumqz3fJuYLzp6pZuw5UuuwQ== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hAifUhAQ; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7436-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hAifUhAQ; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-7436-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [IPv6:2600:3c04:e001:36c::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hZmG404pdz4w2D for <patchwork-incoming@ozlabs.org>; Thu, 03 Sep 2026 01:03:56 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id E08AC81E87 for <patchwork-incoming@ozlabs.org>; Wed, 2 Sep 2026 14:47:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8D9C4A499A; Wed, 2 Sep 2026 14:47:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hAifUhAQ" X-Original-To: sparclinux@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 317074A3F2C for <sparclinux@vger.kernel.org>; Wed, 2 Sep 2026 14:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360433; cv=none; b=P3wmWR8oog4AqoM52Rlby+g4opfJusLoJ2ElBf6xET+6VcyuSpWkOKn8nCenO942Af0LVK2SmwuLftkmMnFMRALemZcMdseaxoNedidimEf9/4RN3jY1LE3RVRbe4Rm487RQYs6w+u4t3LDoZ8WM82uDCCG/2hcZPwyQu5lqMQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788360433; c=relaxed/simple; bh=kfiDLo+BxdeMyd7DwCKHFv96MicNeVsjL5sGevnIHXM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UhT68EPmTLVg/T0vfjGECYJPnixMKH0EBNWFCF1/g4pmOD1ZMrXSZwXKFiXFwe5GhJaPr21BMXbJZGFsDyeQaKSwPt/27Fj7F1clgdUfFojiGtvYSbqaHWa4iimSwrK+omqxJdvmgF0PlaWRhBi39Hyi48FgS/itq0nfCnY7CXk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hAifUhAQ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788360431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nZoYau2WBD6IZMmGu3u7wBhLPz0DgKCouySyNxSkIQc=; b=hAifUhAQkhHvX5UPzdg+WHXMardvsaZTwR+xKJ722053L9Ic6YiFSnbQP7oVUwT02iwW2v KTuR3OEto5vKqVAkvL+o5q3iByxUj5ruLKQV88hiBrFPHMIoGhh9fGRijdvF3JjsUkWMdn QaSQmOeFo01VjauZjpDtHZRgtcZPI8o= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-501-6y8aj7x6Pwq6ejExRIcZDg-1; Wed, 02 Sep 2026 10:47:04 -0400 X-MC-Unique: 6y8aj7x6Pwq6ejExRIcZDg-1 X-Mimecast-MFC-AGG-ID: 6y8aj7x6Pwq6ejExRIcZDg_1788360419 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6C6DE19539B7; Wed, 2 Sep 2026 14:46:59 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.11]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F080B1800643; Wed, 2 Sep 2026 14:46:47 +0000 (UTC) From: Ricardo Robaina <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 13/13] xtensa: pass pt_regs to audit_syscall_entry() Date: Wed, 2 Sep 2026 11:43:46 -0300 Message-ID: <c484b749374ae3768e57f4e7148324c4a730bef2.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/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c index 364e4fdabb00..327e00c2ebde 100644 --- a/arch/xtensa/kernel/ptrace.c +++ b/arch/xtensa/kernel/ptrace.c @@ -561,9 +561,7 @@ int do_syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, syscall_get_nr(current, regs)); - audit_syscall_entry(regs->syscall, regs->areg[6], - regs->areg[3], regs->areg[4], - regs->areg[5]); + audit_syscall_entry(regs->syscall, regs); return 1; }
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/xtensa/kernel/ptrace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)