[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>
- [PATCH v6 0/4] linux-user: generate syscall_nr.sh for RISC-V, Alistair Francis, 2020/03/06
- [PATCH v6 2/4] linux-user/syscall: Add support for clock_gettime64/clock_settime64, Alistair Francis, 2020/03/06
- [PATCH v6 3/4] linux-user: Support futex_time64, Alistair Francis, 2020/03/06
- [PATCH v6 1/4] linux-user: Protect more syscalls, Alistair Francis, 2020/03/06
- Re: [PATCH v6 1/4] linux-user: Protect more syscalls,
Laurent Vivier <=
- [PATCH v6 4/4] linux-user/riscv: Update the syscall_nr's to the 5.5 kernel, Alistair Francis, 2020/03/06
- Re: [PATCH v6 0/4] linux-user: generate syscall_nr.sh for RISC-V, no-reply, 2020/03/06