diff options
| author | Eric W. Biederman <[email protected]> | 2022-02-10 00:09:41 +0000 |
|---|---|---|
| committer | Eric W. Biederman <[email protected]> | 2022-02-17 15:11:57 +0000 |
| commit | 0cbae9e24fa7d6c6e9f828562f084da82217a0c5 (patch) | |
| tree | d00fdbcb46cfce60dfe064db7b6a8dc2568da262 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | ucounts: Move RLIMIT_NPROC handling after set_user (diff) | |
| download | kernel-0cbae9e24fa7d6c6e9f828562f084da82217a0c5.tar.gz kernel-0cbae9e24fa7d6c6e9f828562f084da82217a0c5.zip | |
ucounts: Handle wrapping in is_ucounts_overlimit
While examining is_ucounts_overlimit and reading the various messages
I realized that is_ucounts_overlimit fails to deal with counts that
may have wrapped.
Being wrapped should be a transitory state for counts and they should
never be wrapped for long, but it can happen so handle it.
Cc: [email protected]
Fixes: 21d1c5e386bc ("Reimplement RLIMIT_NPROC on top of ucounts")
Link: https://lkml.kernel.org/r/[email protected]
Reviewed-by: Shuah Khan <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
