diff options
author | Kent Overstreet <kmo@daterainc.com> | 2014-01-06 13:13:26 -0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-01-21 04:40:56 -0500 |
commit | 687b0ad2751ca8ea418396fa780e22571fba76a8 (patch) | |
tree | 5603037cfd39eef273ec61186e37f9df000fce6f /Documentation/SecurityBugs | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
download | linux-687b0ad2751ca8ea418396fa780e22571fba76a8.tar.bz2 |
percpu-refcount: Add a WARN() for ref going negative
AIO had a missing get, which led to an ioctx leak - after percpu_ref_kill() the
ref was 0 so percpu_ref_put() never saw it hit 0.
This wasn't noticed at the time because it all happened completely silently,
this adds a WARN() which would've caught the aio bug.
tj: Used WARN_ONCE() instead of WARN().
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/SecurityBugs')
0 files changed, 0 insertions, 0 deletions