diff options
author | Zheng Wang <zyytlz.wz@163.com> | 2023-04-27 11:08:41 +0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-05-11 22:58:59 +0200 |
commit | c75f5a55061091030a13fef71b9995b89bc86213 (patch) | |
tree | 7a8abedd4254f120f6d2b1178d8c96e01bb6f3e4 /tools/perf/scripts/python/stackcollapse.py | |
parent | 6208890495ded5429424b0335c7fd2d47fdffb83 (diff) |
fbdev: imsttfb: Fix use after free bug in imsttfb_probe
A use-after-free bug may occur if init_imstt invokes framebuffer_release
and free the info ptr. The caller, imsttfb_probe didn't notice that and
still keep the ptr as private data in pdev.
If we remove the driver which will call imsttfb_remove to make cleanup,
UAF happens.
Fix it by return error code if bad case happens in init_imstt.
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions