Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 29 Apr 2018 22:09:44 -0400
From: Rich Felker <dalias@...c.org>
To: patrick.oppenlander@...il.com
Cc: musl@...ts.openwall.com
Subject: Re: [PATCH] arm asm for vfork

On Mon, Apr 30, 2018 at 11:36:22AM +1000, patrick.oppenlander@...il.com wrote:
> From: Patrick Oppenlander <patrick.oppenlander@...il.com>
> 
> ---
>  src/process/arm/vfork.s | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 src/process/arm/vfork.s
> 
> diff --git a/src/process/arm/vfork.s b/src/process/arm/vfork.s
> new file mode 100644
> index 00000000..f01fe1d0
> --- /dev/null
> +++ b/src/process/arm/vfork.s
> @@ -0,0 +1,12 @@
> +.syntax unified
> +.global __vfork
> +.weak vfork
> +.type __vfork,%function
> +.type vfork,%function
> +__vfork:
> +vfork:
> +	mov ip, r7
> +	mov r7, 190
> +	swi 0
> +	mov r7, ip
> +	b __syscall_ret
> -- 
> 2.17.0

Thanks. We'll need this for nommu users; right now that's not so
practical but it will be once we get fdpic added.

I haven't tested, but the patch looks right. Elsewhere we use svc
instead of swi; not sure if that matters.

Rich

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.