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, 4 Oct 2022 16:02:11 +0200
From:   Lukas Bulwahn <lukas.bulwahn@...il.com>
To:     "Jason A. Donenfeld" <Jason@...c4.com>
Cc:     linux-alpha@...r.kernel.org, linux-kernel@...r.kernel.org,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        Kees Cook <keescook@...omium.org>,
        "Eric W . Biederman" <ebiederm@...ssion.com>,
        Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] alpha: remove osf_{readv,writev}

On Tue, Oct 4, 2022 at 3:53 PM Jason A. Donenfeld <Jason@...c4.com> wrote:
>
> As of 987f20a9dcce ("a.out: Remove the a.out implementation"),
> sys_osf_{readv,writev} is now the same as sys_{readv,writev}. So remove
> the osf indirection, and point the syscall table directly at the generic
> functions, as is done on other platforms.
>
> Reported-by: Linus Torvalds <torvalds@...ux-foundation.org>
> Cc: Kees Cook <keescook@...omium.org>
> Cc: Eric W. Biederman <ebiederm@...ssion.com>
> Cc: Arnd Bergmann <arnd@...db.de>
> Cc: Lukas Bulwahn <lukas.bulwahn@...il.com>
> Signed-off-by: Jason A. Donenfeld <Jason@...c4.com>
> ---
> Only compiled and QEMU-booted with no userspace, but seems simple
> enough?
>

This patch looks exactly the same as the patch I sent a few hours ago:

https://lore.kernel.org/lkml/20221004071302.11471-1-lukas.bulwahn@gmail.com/

My patch was completely untested; good that this one is at least
compile tested and went through basic boot tests.

Any of the two patches, the one above or this one, can be picked.

Reviewed-by: Lukas Bulwahn <lukas.bulwahn@...il.com>



Lukas

>  arch/alpha/kernel/osf_sys.c            | 12 ------------
>  arch/alpha/kernel/syscalls/syscall.tbl |  4 ++--
>  2 files changed, 2 insertions(+), 14 deletions(-)
>
> diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
> index b3ad8c44c971..6c6c4337e201 100644
> --- a/arch/alpha/kernel/osf_sys.c
> +++ b/arch/alpha/kernel/osf_sys.c
> @@ -1278,18 +1278,6 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
>         return addr;
>  }
>
> -SYSCALL_DEFINE3(osf_readv, unsigned long, fd,
> -               const struct iovec __user *, vector, unsigned long, count)
> -{
> -       return sys_readv(fd, vector, count);
> -}
> -
> -SYSCALL_DEFINE3(osf_writev, unsigned long, fd,
> -               const struct iovec __user *, vector, unsigned long, count)
> -{
> -       return sys_writev(fd, vector, count);
> -}
> -
>  SYSCALL_DEFINE2(osf_getpriority, int, which, int, who)
>  {
>         int prio = sys_getpriority(which, who);
> diff --git a/arch/alpha/kernel/syscalls/syscall.tbl b/arch/alpha/kernel/syscalls/syscall.tbl
> index 3515bc4f16a4..8ebacf37a8cf 100644
> --- a/arch/alpha/kernel/syscalls/syscall.tbl
> +++ b/arch/alpha/kernel/syscalls/syscall.tbl
> @@ -125,8 +125,8 @@
>  116    common  osf_gettimeofday                sys_osf_gettimeofday
>  117    common  osf_getrusage                   sys_osf_getrusage
>  118    common  getsockopt                      sys_getsockopt
> -120    common  readv                           sys_osf_readv
> -121    common  writev                          sys_osf_writev
> +120    common  readv                           sys_readv
> +121    common  writev                          sys_writev
>  122    common  osf_settimeofday                sys_osf_settimeofday
>  123    common  fchown                          sys_fchown
>  124    common  fchmod                          sys_fchmod
> --
> 2.37.3
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ