diff options
| author | Andrei Vagin <[email protected]> | 2024-11-01 19:19:40 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-07 22:14:59 +0000 |
| commit | 432dc0654c612457285a5dcf9bb13968ac6f0804 (patch) | |
| tree | 07d5af14fd2c83cb37f1b05378b1076332f74474 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | selftests: hugetlb_dio: check for initial conditions to skip in the start (diff) | |
| download | kernel-432dc0654c612457285a5dcf9bb13968ac6f0804.tar.gz kernel-432dc0654c612457285a5dcf9bb13968ac6f0804.zip | |
ucounts: fix counter leak in inc_rlimit_get_ucounts()
The inc_rlimit_get_ucounts() increments the specified rlimit counter and
then checks its limit. If the value exceeds the limit, the function
returns an error without decrementing the counter.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 15bc01effefe ("ucounts: Fix signal ucount refcounting")
Signed-off-by: Andrei Vagin <[email protected]>
Co-developed-by: Roman Gushchin <[email protected]>
Signed-off-by: Roman Gushchin <[email protected]>
Tested-by: Roman Gushchin <[email protected]>
Acked-by: Alexey Gladkov <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Andrei Vagin <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Alexey Gladkov <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
