Re: [PATCH v19 02/15] arm64: Introduce prctl() options to control the tagged user addresses ABI

2019-08-01 Thread Kevin Brodsky
On 31/07/2019 18:05, Dave Hansen wrote: On 7/23/19 10:58 AM, Andrey Konovalov wrote: +long set_tagged_addr_ctrl(unsigned long arg) +{ + if (!tagged_addr_prctl_allowed) + return -EINVAL; + if (is_compat_task()) + return -EINVAL; + if (arg &

Re: [PATCH v19 00/15] arm64: untag user pointers passed to the kernel

2019-08-01 Thread Kevin Brodsky
On 31/07/2019 17:50, Dave Hansen wrote: On 7/23/19 10:58 AM, Andrey Konovalov wrote: The mmap and mremap (only new_addr) syscalls do not currently accept tagged addresses. Architectures may interpret the tag as a background colour for the corresponding vma. What the heck is a "background

Re: [PATCH v13 09/20] net, arm64: untag user pointers in tcp_zerocopy_receive

2019-03-25 Thread Kevin Brodsky
On 22/03/2019 12:04, Catalin Marinas wrote: On Wed, Mar 20, 2019 at 03:51:23PM +0100, Andrey Konovalov wrote: This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments.

Re: [PATCH v13 17/20] media/v4l2-core, arm64: untag user pointers in videobuf_dma_contig_user_get

2019-03-25 Thread Kevin Brodsky
On 22/03/2019 16:07, Catalin Marinas wrote: On Wed, Mar 20, 2019 at 03:51:31PM +0100, Andrey Konovalov wrote: This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments.

Re: [PATCH v13 14/20] drm/amdgpu, arm64: untag user pointers in amdgpu_ttm_tt_get_user_pages

2019-03-25 Thread Kevin Brodsky
On 22/03/2019 15:59, Catalin Marinas wrote: On Wed, Mar 20, 2019 at 03:51:28PM +0100, Andrey Konovalov wrote: This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments.

Re: [PATCH v13 10/20] kernel, arm64: untag user pointers in prctl_set_mm*

2019-03-21 Thread Kevin Brodsky
On 20/03/2019 14:51, Andrey Konovalov wrote: This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. prctl_set_mm() and prctl_set_mm_map() use provided user pointers for