lkml.org 
[lkml]   [2019]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v12 01/13] uaccess: add untagged_addr definition for other arches
    From
    To allow arm64 syscalls to accept tagged pointers from userspace, we must
    untag them when they are passed to the kernel. Since untagging is done in
    generic parts of the kernel, the untagged_addr macro needs to be defined
    for all architectures.

    Define it as a noop for architectures other than arm64.

    Acked-by: Catalin Marinas <catalin.marinas@arm.com>
    Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
    ---
    include/linux/mm.h | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/include/linux/mm.h b/include/linux/mm.h
    index 76769749b5a5..4d674518d392 100644
    --- a/include/linux/mm.h
    +++ b/include/linux/mm.h
    @@ -99,6 +99,10 @@ extern int mmap_rnd_compat_bits __read_mostly;
    #include <asm/pgtable.h>
    #include <asm/processor.h>

    +#ifndef untagged_addr
    +#define untagged_addr(addr) (addr)
    +#endif
    +
    #ifndef __pa_symbol
    #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0))
    #endif
    --
    2.21.0.225.g810b269d1ac-goog
    \
     
     \ /
      Last update: 2019-03-18 18:20    [W:6.340 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site