Skip to content

ucounts: misc fixes

Eric W. Biederman linux-mm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am 871r4itfjw.fsf_-_@disp2133

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ucounts: Pair inc_rlimit_ucounts with dec_rlimit_ucoutns in commit_credskernel/cred.c+1 -10 replies
2/3ucounts: Proper error handling in set_cred_ucountskernel/cred.c+3 -20 replies
3/3ucounts: Move get_ucounts from cred_alloc_blank to key_change_session_keyringkernel/cred.c security/keys/process_keys.c+8 -21 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchYu Zhao
SeriesT-b T-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] ucounts: misc fixes

While digging into the previous ucount kernel crashes I found some minor bugs in the ucount code. When hit these bugs all result in a ucount either being counted in the wrong location or leak of a struct ucounts.

Nothing particularly serious but certainly things that should be fixed.

Eric W. Biederman (3):
ucounts: Pair inc_rlimit_ucounts with dec_rlimit_ucoutns in commit_creds
ucounts: Proper error handling in set_cred_ucounts
ucounts: Move get_ucounts from cred_alloc_blank to key_change_session_keyring

 kernel/cred.c                | 9 ++++-----
 security/keys/process_keys.c | 8 ++++++++
 2 files changed, 12 insertions(+), 5 deletions(-)

Eric