]> git.itanic.dy.fi Git - linux-stable/commit
writeback, cgroup: remove extra percpu_ref_exit()
authorGreg Thelen <gthelen@google.com>
Sat, 20 May 2023 19:46:24 +0000 (12:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:57:56 +0000 (12:57 +0100)
commit047f618d198e4bc7c9ad3844064a15dc90a82094
treea3fb0b96b804bf9409d05d9561407443155d9c9d
parent84fbe6ad0fa3c42925fbf6849d3f2129b4362c5e
writeback, cgroup: remove extra percpu_ref_exit()

5.10 stable commit 2b00b2a0e642 ("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: 2b00b2a0e642 ("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>
mm/backing-dev.c