block: blk-mq: fix ws_active refcount leak in blk_mq_mark_tag_wait()#885
block: blk-mq: fix ws_active refcount leak in blk_mq_mark_tag_wait()#885blktests-ci[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: eed108e |
de94ac7 to
86d8d37
Compare
|
Upstream branch: e8c2f9f |
38d9d03 to
bce11b3
Compare
86d8d37 to
9805659
Compare
|
Upstream branch: eb3f4b7 |
bce11b3 to
2570951
Compare
9805659 to
3f4a345
Compare
|
Upstream branch: 8fde5d1 |
2570951 to
a300154
Compare
3f4a345 to
c6dc343
Compare
|
Upstream branch: e43ffb6 |
a300154 to
fe088a8
Compare
c6dc343 to
fc36596
Compare
|
Upstream branch: ba3e43a |
1 similar comment
|
Upstream branch: ba3e43a |
fe088a8 to
72cc08a
Compare
fc36596 to
7bed9c3
Compare
|
Upstream branch: ddd664b |
72cc08a to
244d8bf
Compare
7bed9c3 to
a7bb5c5
Compare
|
Upstream branch: 979c294 |
244d8bf to
dbda4e2
Compare
a7bb5c5 to
5e41a3b
Compare
|
Upstream branch: acb7500 |
dbda4e2 to
7de30ea
Compare
5e41a3b to
c3a084b
Compare
|
Upstream branch: 9716c08 |
7de30ea to
3f065ad
Compare
c3a084b to
5f78e5d
Compare
|
Upstream branch: 2a2974b |
3f065ad to
a1a3364
Compare
5f78e5d to
e48f9db
Compare
|
Upstream branch: 062871f |
a1a3364 to
f7272cf
Compare
199644a to
e6d9eb8
Compare
|
Upstream branch: 66affa3 |
f7272cf to
c3ac579
Compare
e6d9eb8 to
7d8604f
Compare
blk_mq_mark_tag_wait() calls sbitmap_queue_get() which increments sbq->ws_active. On the error path where the waitqueue_active() check fails and the function returns early, sbq->ws_active is not decremented, leaking the reference. Fix this by calling sbitmap_queue_clear() to properly release the ws_active reference before returning on the error path. Fixes: c27d53f ("blk-mq: Reduce the number of if-statements in blk_mq_mark_tag_wait()") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
|
Upstream branch: bade58e |
c3ac579 to
4482771
Compare
Pull request for series with
subject: block: blk-mq: fix ws_active refcount leak in blk_mq_mark_tag_wait()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1100862