writeback, cgroup: remove extra percpu_ref_exit()
5.10 stable commit2b00b2a0e6
("writeback, cgroup: fix null-ptr-deref write in bdi_split_work_to_wbs") is a backport of upstream 6.3 commit 1ba1199ec574. In the 5.10 stable commit backport percpu_ref_exit() is called twice: first in cgwb_release_workfn() and then in cgwb_free_rcu(). The 2nd call is benign as percpu_ref_exit() internally detects there's nothing to do. This fixes an non-upstream issue that only applies to 5.10.y. Fixes:2b00b2a0e6
("writeback, cgroup: fix null-ptr-deref write in bdi_split_work_to_wbs") Signed-off-by: Greg Thelen <gthelen@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
84fbe6ad0f
commit
047f618d19
@ -404,7 +404,6 @@ static void cgwb_release_workfn(struct work_struct *work)
|
|||||||
blkcg_unpin_online(blkcg);
|
blkcg_unpin_online(blkcg);
|
||||||
|
|
||||||
fprop_local_destroy_percpu(&wb->memcg_completions);
|
fprop_local_destroy_percpu(&wb->memcg_completions);
|
||||||
percpu_ref_exit(&wb->refcnt);
|
|
||||||
wb_exit(wb);
|
wb_exit(wb);
|
||||||
call_rcu(&wb->rcu, cgwb_free_rcu);
|
call_rcu(&wb->rcu, cgwb_free_rcu);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user