• Linus Torvalds's avatar
    Merge branch 'uaccess' (batched user access infrastructure) · 404a4741
    Linus Torvalds authored
    Expose an interface to allow users to mark several accesses together as
    being user space accesses, allowing batching of the surrounding user
    space access markers (SMAP on x86, PAN on arm64, domain register
    switching on arm).
    
    This is currently only used for the user string lenth and copying
    functions, where the SMAP overhead on x86 drowned the actual user
    accesses (only noticeable on newer microarchitectures that support SMAP
    in the first place, of course).
    
    * user access batching branch:
      Use the new batched user accesses in generic user string handling
      Add 'unsafe' user access functions for batched accesses
      x86: reorganize SMAP handling in user space accesses
    404a4741
uaccess.h 23.6 KB