Commit e2ca326d authored by Ziqin Liu's avatar Ziqin Liu
Browse files

x86/perf: fix use-after-free bug in uncore_pci_remove()

zhaoxin inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7066J


CVE: NA

Reference: N/A

----------------------------------------------------------------

since the dereferencing freed memory 'box' in uncore_pci_remove() will
trigger a use-after-free bug, use a variable 'name' to store the value of
box->pmu->type->name, so that the memory 'box' won't be dereferenced after
being released.

Signed-off-by: default avatarZiqin Liu <ziqin_l@hust.edu.cn>
parent 6bf61fdd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment