diff options
author | Shigeru Yoshida <[email protected]> | 2022-08-19 03:13:36 +0900 |
---|---|---|
committer | Helge Deller <[email protected]> | 2022-08-26 19:56:18 +0200 |
commit | a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 (patch) | |
tree | 5b56c07571408ea9ec93feb3ce523e03ab9f5421 /tools/perf/util/trace-event-scripting.c | |
parent | 8d0268585b9c07dd01b77b63913a4f31ad99239b (diff) |
fbdev: fbcon: Properly revert changes when vc_resize() failed
fbcon_do_set_font() calls vc_resize() when font size is changed.
However, if if vc_resize() failed, current implementation doesn't
revert changes for font size, and this causes inconsistent state.
syzbot reported unable to handle page fault due to this issue [1].
syzbot's repro uses fault injection which cause failure for memory
allocation, so vc_resize() failed.
This patch fixes this issue by properly revert changes for font
related date when vc_resize() failed.
Link: https://syzkaller.appspot.com/bug?id=3443d3a1fa6d964dd7310a0cb1696d165a3e07c4 [1]
Reported-by: [email protected]
Signed-off-by: Shigeru Yoshida <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
CC: [email protected] # 5.15+
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions