summaryrefslogtreecommitdiff
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorFan Wu <fanwu01@zju.edu.cn>2026-09-22 08:10:52 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-25 22:03:17 +0200
commitf58dacfbadb7be7c7dbb2b95e9341ad56710849e (patch)
treec7ffc905a709d5249c08feeed813bc9adfd935c5 /kernel/panic.c
parent93f51579e7df248780214094418f205253383cc5 (diff)
PM: EM: Fix use-after-free of perf domain in netlink doit handlers
The doit handlers dropped em_pd_list_mutex before dereferencing the perf domain, so a concurrent device unregister could free it while the reply was being built. Encode the reply from em_perf_domain_for_id() callbacks, which run under the mutex, and allocate the skb outside of it, like the dumpit path already does. This issue was found by an in-house static analysis tool. Fixes: 380ff27af25e ("PM: EM: Add dump to get-perf-domains in the EM YNL spec") Fixes: f2d2946eaa5c ("PM: EM: Implement em_nl_get_pd_table_doit()") Cc: All applicable <stable@vger.kernel.org> Co-developed-by: Song Li <songl@zju.edu.cn> Signed-off-by: Song Li <songl@zju.edu.cn> Signed-off-by: Fan Wu <fanwu01@zju.edu.cn> Link: https://patch.msgid.link/20260922081052.321581-1-fanwu01@zju.edu.cn Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/panic.c')
0 files changed, 0 insertions, 0 deletions