summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-08-07 12:41:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-22 07:48:35 +0200
commit813fb06fe60d0a56a5481fb81793142fc00bf4bd (patch)
tree7f36db7fda6670d11e46c4f0d940b287370831fe /tools/perf/scripts/python
parent4aef9b0fffd2295b1c523ebf43ca6b46e9cc8ffa (diff)
llc: use refcount_inc_not_zero() for llc_sap_find()
[ Upstream commit 0dcb82254d65f72333aa50ad626d1e9665ad093b ] llc_sap_put() decreases the refcnt before deleting sap from the global list. Therefore, there is a chance llc_sap_find() could find a sap with zero refcnt in this global list. Close this race condition by checking if refcnt is zero or not in llc_sap_find(), if it is zero then it is being removed so we can just treat it as gone. Reported-by: <syzbot+278893f3f7803871f7ce@syzkaller.appspotmail.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions