diff options
| author | Linus Torvalds <[email protected]> | 2021-10-24 19:48:33 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-10-24 19:48:33 +0000 |
| commit | 87066fdd2e30fe9dd531125d95257c118a74617e (patch) | |
| tree | 889339bdce44c612c179d28ab9209978e85eef48 /net/lapb/lapb_timer.c | |
| parent | Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs (diff) | |
| download | kernel-87066fdd2e30fe9dd531125d95257c118a74617e.tar.gz kernel-87066fdd2e30fe9dd531125d95257c118a74617e.zip | |
Revert "mm/secretmem: use refcount_t instead of atomic_t"
This reverts commit 110860541f443f950c1274f217a1a3e298670a33.
Converting the "secretmem_users" counter to a refcount is incorrect,
because a refcount is special in zero and can't just be incremented (but
a count of users is not, and "no users" is actually perfectly valid and
not a sign of a free'd resource).
Reported-by: [email protected]
Cc: Jordy Zomer <[email protected]>
Cc: Kees Cook <[email protected]>,
Cc: Jordy Zomer <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
