diff options
author | Alexey Gladkov <legion@kernel.org> | 2022-05-18 20:17:30 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2022-05-19 02:24:57 +0300 |
commit | de399236e240743ad2dd10d719c37b97ddf31996 (patch) | |
tree | d30c255670e8a29f49c2e26b6c543527ff03fbac /kernel/exit.c | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-de399236e240743ad2dd10d719c37b97ddf31996.tar.xz |
ucounts: Split rlimit and ucount values and max values
Since the semantics of maximum rlimit values are different, it would be
better not to mix ucount and rlimit values. This will prevent the error
of using inc_count/dec_ucount for rlimit parameters.
This patch also renames the functions to emphasize the lack of
connection between rlimit and ucount.
v3:
- Fix BUG:KASAN:use-after-free_in_dec_ucount.
v2:
- Fix the array-index-out-of-bounds that was found by the lkp project.
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Link: https://lkml.kernel.org/r/20220518171730.l65lmnnjtnxnftpq@example.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions