Skip to content
Snippets Groups Projects
Commit 7ea6bf2e authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

percpu_ref: don't refer to ref->data if it isn't allocated


We can't check ref->data->confirm_switch directly in __percpu_ref_exit(), since
ref->data may not be allocated in one not-initialized refcount.

Fixes: 2b0d3d3e ("percpu_ref: reduce memory footprint of percpu_ref in fast path")
Reported-by: default avatar <syzbot+fd15ff734dace9e16437@syzkaller.appspotmail.com>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f4ac712e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment