Skip to content

uaccess: Provide and use scopes for user access

Thomas Gleixner linux-arm-kernel linux-fsdevel linux-riscv linux-s390 linuxppc-dev lkml 5 versions – Applied

Status from this message: Applied to tip/core/rseq along with the first set of rseq patches. The

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest12 patches 27 repliesApplied 10/12
  2. v412 patches 8 repliesSuperseded
  3. v312 patches 27 repliesSuperseded 1 of 12 applied
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches23 repliesApplied
v14 patches19 repliesSuperseded

Changes in v5 from the cover letter

- Rename get/put_user_masked() to get/put_user_inline()

- Remove the futex helpers. Keep the inline get/put for now as it needs more testing whether they are really valuable.

- Picked up tags

Patches in v5 Applied · 10/12

#Subject and filesSizeRepliesApplied
1/12ARM: uaccess: Implement missing __get_user_asm_dword()arch/arm/include/asm/uaccess.h+25 -11 replyApplied
2/12uaccess: Provide ASM GOTO safe wrappers for unsafe_*_user()include/linux/uaccess.h+68 -46 replies
3/12x86/uaccess: Use unsafe wrappers for ASM GOTOarch/x86/include/asm/uaccess.h+6 -61 replyApplied
4/12powerpc/uaccess: Use unsafe wrappers for ASM GOTOarch/powerpc/include/asm/uaccess.h+4 -42 repliesApplied
5/12riscv/uaccess: Use unsafe wrappers for ASM GOTOarch/riscv/include/asm/uaccess.h+4 -41 replyApplied
6/12s390/uaccess: Use unsafe wrappers for ASM GOTOarch/s390/include/asm/uaccess.h+2 -21 replyApplied
7/12uaccess: Provide scoped user access regionsinclude/linux/uaccess.h+192 -03 repliesApplied
8/12uaccess: Provide put/get_user_inline()include/linux/uaccess.h+50 -02 repliesApplied
9/12coccinelle: misc: Add scoped_masked_$MODE_access() checker scriptscripts/coccinelle/misc/scoped_uaccess.cocci+108 -00 replies
10/12futex: Convert to get/put_user_inline()kernel/futex/core.c kernel/futex/futex.h+5 -575 repliesApplied
11/12x86/futex: Convert to scoped user accessarch/x86/include/asm/futex.h+33 -420 repliesApplied
12/12select: Convert to scoped user accessfs/select.c+4 -82 repliesApplied

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by.

PatchHeiko CarstensThomas GleixnerMathieu DesnoyersChristophe Leroy
1/12R-b
2/12R-b R-b
3/12R-b
4/12R-b R-b
5/12R-b
6/12A-b R-b
7/12R-b
8/12R-b R-b
9/12Not-Yet-Signed-off-by
10/12R-b
11/12
12/12R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [patch V5 00/12] uaccess: Provide and use scopes for user access

This is a follow up on the V4 feedback:

https://lore.kernel.org/[email protected]

Changes vs. V4:

- Rename get/put_user_masked() to get/put_user_inline()

- Remove the futex helpers. Keep the inline get/put for now as it needs more testing whether they are really valuable.

- Picked up tags

The series is based on v6.18-rc1 and also available from git:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git uaccess/scoped

Thanks,

tglx
---
Thomas Gleixner (12):
ARM: uaccess: Implement missing __get_user_asm_dword()
uaccess: Provide ASM GOTO safe wrappers for unsafe_*_user() x86/uaccess: Use unsafe wrappers for ASM GOTO powerpc/uaccess: Use unsafe wrappers for ASM GOTO riscv/uaccess: Use unsafe wrappers for ASM GOTO s390/uaccess: Use unsafe wrappers for ASM GOTO
uaccess: Provide scoped user access regions
uaccess: Provide put/get_user_inline()
coccinelle: misc: Add scoped_masked_$MODE_access() checker script
futex: Convert to get/put_user_inline()
x86/futex: Convert to scoped user access
select: Convert to scoped user access

 arch/arm/include/asm/uaccess.h               |   26 ++
 arch/powerpc/include/asm/uaccess.h           |    8 
 arch/riscv/include/asm/uaccess.h             |    8 
 arch/s390/include/asm/uaccess.h              |    4 
 arch/x86/include/asm/futex.h                 |   75 ++----
 arch/x86/include/asm/uaccess.h               |   12 -
 fs/select.c                                  |   12 -
 include/linux/uaccess.h                      |  314 ++++++++++++++++++++++++++-
 kernel/futex/core.c                          |    4 
 kernel/futex/futex.h                         |   58 ----
 scripts/coccinelle/misc/scoped_uaccess.cocci |  108 +++++++++
 11 files changed, 501 insertions(+), 128 deletions(-)