diff options
| author | Zhangfei Gao <[email protected]> | 2023-05-11 17:59:20 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-05-31 19:00:26 +0100 |
| commit | df1b056d489d98c7c45fa89627102dd34b44496f (patch) | |
| tree | bf3562a5bff1da63e8e5c9b3479c47cc0bef37b3 /tools/perf/scripts/python/libxed.py | |
| parent | 24ee010bdabb15c601ab6ce2007ad32f4ef4a880 (diff) | |
uacce: use q->mapping to replace inode->i_mapping
The inode can be different in a container, for example, a docker and host
both open the same uacce parent device, which uses the same uacce struct
but different inode, so uacce->inode is not enough.
What's worse, when docker stops, the inode will be destroyed as well,
causing use-after-free in uacce_remove.
So use q->mapping to replace uacce->inode->i_mapping.
Signed-off-by: Weili Qian <[email protected]>
Signed-off-by: Zhangfei Gao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions