diff options
| author | Bob Song <songxiebing@kylinos.cn> | 2026-07-17 10:49:48 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-21 13:24:15 +0200 |
| commit | df27e4dc80c4a30ad206432cb848aab00de22ca7 (patch) | |
| tree | 958c2bff6a63b3881a6f9130e3c5ea9be607b225 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 260fc7a0fe660fc5b3c44541757f2399c981986f (diff) | |
ALSA: hda: Check snd_hda_power_pm construct error before executing verb
When userspace writes 1 to /sys/bus/pci/devices/XX/remove to remove
HDA PCI device, the HDA hardware control path is shut down and devres
unmaps the BAR virtual address bus->remap_addr automatically during
driver removal.
If a delayed HDA verb command arrives after the MMIO region is
unmapped, the driver will access invalid virtual addresses and trigger
a page fault splat.
So add an error check right after constructing snd_hda_power_pm.
Signed-off-by: Bob Song <songxiebing@kylinos.cn>
Link: https://patch.msgid.link/20260717024948.506335-1-songxiebing@kylinos.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
