qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 1/4] linux-user: Protect more syscalls


From: Laurent Vivier
Subject: Re: [PATCH v6 1/4] linux-user: Protect more syscalls
Date: Fri, 6 Mar 2020 21:56:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Le 06/03/2020 à 19:24, Alistair Francis a écrit :
> New y2038 safe 32-bit architectures (like RISC-V) don't support old
> syscalls with a 32-bit time_t. The kernel defines new *_time64 versions
> of these syscalls. Add some more #ifdefs to syscall.c in linux-user to
> allow us to compile without these old syscalls.
> 
> Signed-off-by: Alistair Francis <address@hidden>
> ---
>  linux-user/strace.c  |  2 ++
>  linux-user/syscall.c | 68 +++++++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 69 insertions(+), 1 deletion(-)
> 
...
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 8d27d10807..1a7df23440 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
...
>  #if defined(TARGET_NR_mq_open) && defined(__NR_mq_open)

You can remove this line ^^ as you check individually for each syscall
below.

With that fixed:

Reviewed-by: Laurent Vivier <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]