Thread (11 messages) flat view 11 messages, 5 authors, 2021-03-27

Re: [PATCH 3/4] exec: simplify the compat syscall handling

From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-03-26 15:03:22
Also in: linux-arm-kernel, linux-fsdevel, linux-mips, linux-s390, linuxppc-dev, lkml, sparclinux

On Fri, Mar 26, 2021 at 3:38 PM Christoph Hellwig [off-list ref] wrote:
The only differenence betweeen the compat exec* syscalls and their
native versions is the compat_ptr sign extension, and the fact that
the pointer arithmetics for the two dimensional arrays needs to use
the compat pointer size.  Instead of the compat wrappers and the
struct user_arg_ptr machinery just use in_compat_syscall() to do the
right thing for the compat case deep inside get_user_arg_ptr().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Nice cleanup!

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help