Files
linux-rockchip/lib
Al Viro d007f49ab7 percpu_ref_init(): clean ->percpu_count_ref on failure
[ Upstream commit a91714312e ]

That way percpu_ref_exit() is safe after failing percpu_ref_init().
At least one user (cgroup_create()) had a double-free that way;
there might be other similar bugs.  Easier to fix in percpu_ref_init(),
rather than playing whack-a-mole in sloppy users...

Usual symptoms look like a messed refcounting in one of subsystems
that use percpu allocations (might be percpu-refcount, might be
something else).  Having refcounts for two different objects share
memory is Not Nice(tm)...

Reported-by: syzbot+5b1e53987f858500ec00@syzkaller.appspotmail.com
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-06 08:42:40 +02:00
..
2022-05-18 10:23:44 +02:00
2020-10-16 11:11:19 -07:00
2020-10-13 18:38:32 -07:00
2020-12-11 14:02:14 -08:00
2021-09-03 10:09:21 +02:00
2020-09-26 10:33:57 -07:00