Skip to content

ucounts: Fix rlimit max values check

Alexey Gladkov containers lkml oe-kbuild oe-kbuild-all oe-lkp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Fix a bug that was found by the lkp project.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ucounts: Fix rlimit max values checkkernel/ucount.c+9 -60 replies
2/2ucounts: Move rlimit max values from ucounts maxinclude/linux/user_namespace.h kernel/fork.c kernel/ucount.c +1 more+25 -223 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] ucounts: Fix rlimit max values check

Checking the rlimit value specified in init_user_ns from the created userns does not work properly. The issue is that the maximum value is taken by the same rules as for ucounts. Because of this, we check the current rlimit counter value with RLIM_INFINITY in init_user_ns.

v2:
- Fix a bug that was found by the lkp project.

--

Alexey Gladkov (2):
ucounts: Fix rlimit max values check
ucounts: Move rlimit max values from ucounts max

 include/linux/user_namespace.h | 17 ++++++++++++-----
 kernel/fork.c                  | 10 +++++-----
 kernel/ucount.c                | 19 +++++++++----------
 kernel/user_namespace.c        | 10 +++++-----
 4 files changed, 31 insertions(+), 25 deletions(-)
Signature · 1 line
2.33.0