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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 30 Jun 2015 18:32:33 +0200
From:	Borislav Petkov <bp@...en8.de>
To:	Andy Lutomirski <luto@...nel.org>
Cc:	x86@...nel.org, linux-kernel@...r.kernel.org,
	Frédéric Weisbecker <fweisbec@...il.com>,
	Rik van Riel <riel@...hat.com>,
	Oleg Nesterov <oleg@...hat.com>,
	Denys Vlasenko <vda.linux@...glemail.com>,
	Kees Cook <keescook@...omium.org>,
	Brian Gerst <brgerst@...il.com>, paulmck@...ux.vnet.ibm.com
Subject: Re: [PATCH v4 06/17] x86: Move C entry and exit code to
 arch/x86/entry/common.c

On Mon, Jun 29, 2015 at 12:33:38PM -0700, Andy Lutomirski wrote:
> The entry and exit C helpers were confusingly scattered between
> ptrace.c and signal.c, even though they aren't specific to ptrace or
> signal handling.  Move them together in a new file.
> 
> This change just moves code around.  It doesn't change anything.
> 
> Signed-off-by: Andy Lutomirski <luto@...nel.org>
> ---
>  arch/x86/entry/Makefile       |   1 +
>  arch/x86/entry/common.c       | 253 ++++++++++++++++++++++++++++++++++++++++++
>  arch/x86/include/asm/signal.h |   1 +
>  arch/x86/kernel/ptrace.c      | 202 +--------------------------------
>  arch/x86/kernel/signal.c      |  28 +----
>  5 files changed, 257 insertions(+), 228 deletions(-)
>  create mode 100644 arch/x86/entry/common.c
> 
> diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
> index 7a144971db79..bd55dedd7614 100644
> --- a/arch/x86/entry/Makefile
> +++ b/arch/x86/entry/Makefile
> @@ -2,6 +2,7 @@
>  # Makefile for the x86 low level entry code
>  #
>  obj-y				:= entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
> +obj-y				+= common.o
>  
>  obj-y				+= vdso/
>  obj-y				+= vsyscall/
> diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c
> new file mode 100644
> index 000000000000..348465473e55
> --- /dev/null
> +++ b/arch/x86/entry/common.c
> @@ -0,0 +1,253 @@
> +/*
> + * entry.c - C code for kernel entry and exit

common.c

> + * Copyright (c) 2015 Andrew Lutomirski
> + * GPL v2
> + *
> + * Based on asm and ptrace code by many authors.  The code here originated
> + * in ptrace.c and signal.c.
> + */

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ