summaryrefslogtreecommitdiff
path: root/rust/kernel/iommu/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-04-07 11:23:12 +0200
committerHelge Deller <deller@gmx.de>2026-04-07 17:38:06 +0200
commite4ef723d8975a2694cc90733a6b888a5e2841842 (patch)
tree5c65a4b19d1bdc963a81e9e0fd0f52e64d3e0a4e /rust/kernel/iommu/git@git.tavy.me:linux.git
parenta9cdba5c35c5cca6bd0b922bc235b843a41b3a57 (diff)
fbcon: Avoid OOB font access if console rotation fails
Clear the font buffer if the reallocation during console rotation fails in fbcon_rotate_font(). The putcs implementations for the rotated buffer will return early in this case. See [1] for an example. Currently, fbcon_rotate_font() keeps the old buffer, which is too small for the rotated font. Printing to the rotated console with a high-enough character code will overflow the font buffer. v2: - fix typos in commit message Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Fixes: 6cc50e1c5b57 ("[PATCH] fbcon: Console Rotation - Add support to rotate font bitmap") Cc: stable@vger.kernel.org # v2.6.15+ Link: https://elixir.bootlin.com/linux/v6.19/source/drivers/video/fbdev/core/fbcon_ccw.c#L144 # [1] Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'rust/kernel/iommu/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions