Skip to content

RFC prctl: set-mm -- Rework interface

Cyrill Gorcunov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2prctl: PR_SET_MM -- Factor out mmap_sem when update mm::exe_filekernel/sys.c+11 -100 replies
2/2prctl: PR_SET_MM -- Introduce PR_SET_MM_MAP operationinclude/uapi/linux/prctl.h kernel/sys.c+206 -116 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] prctl: set-mm -- Rework interface

Hi!

While been implementing c/r for user-namespaces we found that having CAP_SYS_RESOURCE requirement in prctl set-mm opcode is somewhat inconvenient and doesn't allow us to proceed restore of user-ns since we loose CAP_SYS_RESOURCE upon new user-ns creation.

So it looks better to provide new interface and deprecate old one leaving cap-sys-resource behind.

I would highly appreciate any comments on validate_prctl_map_locked() helper in second patch which tests for new struct mm_struct values being sane. I hope I didn't miss something obvious but as fas as I see even using some "bad" values can't affect the kernel since members are used mostly for statistics purpose.

Please take a look once time permit, any comments are highly appreciated.

Cyrill