lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161023131436.2823-1-kuleshovmail@gmail.com>
Date:   Sun, 23 Oct 2016 19:14:36 +0600
From:   Alexander Kuleshov <kuleshovmail@...il.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     Ingo Molnar <mingo@...hat.com>, "H . Peter Anvin" <hpa@...or.com>,
        Andy Lutomirski <luto@...nel.org>,
        Borislav Petkov <bp@...en8.de>,
        Paolo Bonzini <pbonzini@...hat.com>,
        linux-kernel@...r.kernel.org,
        Alexander Kuleshov <kuleshovmail@...il.com>
Subject: [PATCH v2] x86/entry64: remove unused audit related macros

These macro ocured in the 86a1c34a929f commit (x86_64 syscall audit
fast-path by Roland McGrath <roland@...hat.com>).

These defines were used in two-phase sycalls entry tracing, but
this functionality was moved to the syscall_trace_enter() from
arch/x86/entry/common.c in the 1f484aa69 commit (x86/entry: Move
C entry and exit code to arch/x86/entry/common.c by Andy Lutomirski
<luto@...nel.org>).

The syscall_trace_enter() now uses same defines from <linux/audit.h>,
so these defines are no longer used anywhere in entry_64.S and we may
remove them.

Signed-off-by: Alexander Kuleshov <kuleshovmail@...il.com>
---
ChangeLog:

v1 -> v2:
- Added more details in the commit message.

 arch/x86/entry/entry_64.S | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index ef766a3..4362f1c 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -38,12 +38,6 @@
 #include <asm/export.h>
 #include <linux/err.h>
 
-/* Avoid __ASSEMBLER__'ifying <linux/audit.h> just for this.  */
-#include <linux/elf-em.h>
-#define AUDIT_ARCH_X86_64			(EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
-#define __AUDIT_ARCH_64BIT			0x80000000
-#define __AUDIT_ARCH_LE				0x40000000
-
 .code64
 .section .entry.text, "ax"
 
-- 
2.8.0.rc3.1353.gea9bdc0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ