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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1544556407-19897-1-git-send-email-Dave.Martin@arm.com>
Date:   Tue, 11 Dec 2018 19:26:44 +0000
From:   Dave Martin <Dave.Martin@....com>
To:     linux-arm-kernel@...ts.infradead.org
Cc:     linux-kernel@...r.kernel.org, Will Deacon <will.deacon@....com>,
        Alan Hayward <alan.hayward@....com>,
        Szabolcs Nagy <szabolcs.nagy@....com>
Subject: [PATCH 0/3] arm64/sve: UAPI: Disentangle ptrace.h from sigcontext.h

This patch refactors the UAPI header definitions for the Arm SVE
extension to avoid multiple-definition problems when userspace mixes its
own sigcontext.h definitions with the kernel's ptrace.h (which is
apparently routine).

A common backend header is created to hold common definitions, suitably
namespaced, and with an appropriate header guard.

See the commit message in patch 3 for further explanation of why this
is needed.

Because of the non-trivial header guard in the new sve_context.h, patch
1 adds support to headers_install.sh to munge #if defined(_UAPI_FOO) in
a similar way to the current handling of #ifndef _UAPI_FOO.

Dave Martin (3):
  kbuild: install_headers.sh: Strip _UAPI from #if-defined() guards
  arm64/sve: ptrace: Fix SVE_PT_REGS_OFFSET definition
  arm64/sve: Disentangle <uapi/asm/ptrace.h> from
    <uapi/asm/sigcontext.h>

 arch/arm64/include/uapi/asm/ptrace.h      | 39 ++++++++++-----------
 arch/arm64/include/uapi/asm/sigcontext.h  | 56 +++++++++++++++----------------
 arch/arm64/include/uapi/asm/sve_context.h | 50 +++++++++++++++++++++++++++
 scripts/headers_install.sh                |  1 +
 4 files changed, 97 insertions(+), 49 deletions(-)
 create mode 100644 arch/arm64/include/uapi/asm/sve_context.h

-- 
2.1.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ