From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: vc,fbcon,fonts: Proper handling of font data
Date: Tue, 03 Mar 2026 13:19:13 +1000 [thread overview]
Message-ID: <review-overall-20260302141255.518657-1-tzimmermann@suse.de> (raw)
In-Reply-To: <20260302141255.518657-1-tzimmermann@suse.de>
Overall Series Review
Subject: vc,fbcon,fonts: Proper handling of font data
Author: Thomas Zimmermann <tzimmermann@suse.de>
Patches: 14
Reviewed: 2026-03-03T13:19:13.472651
---
This is a well-structured 13-patch series by Thomas Zimmermann that introduces proper abstractions for console font data handling across VT, fbcon, newport_con, and the lib/fonts infrastructure. The series replaces open-coded font data manipulation (raw pointer arithmetic with hidden headers) with typed helpers (`font_data_t`, `font_data_get/put`, `font_data_import/export`, etc.), introduces `struct vc_font` to replace the UAPI `struct console_font` in kernel internals, and cleans up reference counting by removing the `userfont` flag from fbcon.
The overall direction is sound and the incremental patch ordering makes the series reviewable. However, there are several issues ranging from minor typos to a potentially problematic functional change in font export and some missing overflow/underflow protections in the new centralized helpers.
**Key concerns:**
- `font_data_export()` has a potential underflow if `vpitch < font->height` (caller-validated but not self-protecting)
- The removal of the width 17-24 special-case export path is a behavioral change that needs careful validation
- `font_data_import()` doesn't overflow-check the source-side index `i * vpitch * pitch`
- Several typos in documentation comments across multiple patches
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-03 3:19 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 14:08 [PATCH v2 00/13] vc,fbcon,fonts: Proper handling of font data Thomas Zimmermann
2026-03-02 14:08 ` [PATCH v2 01/13] fbdev: Declare src parameter of fb_pad_ helpers as constant Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 02/13] vt: Remove trailing whitespaces Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 03/13] vt: Store font in struct vc_font Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 04/13] vt: Calculate font-buffer size with vc_font_size() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 05/13] lib/fonts: Remove trailing whitespaces Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 06/13] lib/fonts: Remove FNTCHARCNT() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 07/13] lib/fonts: Store font data as font_data_t; update consoles Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 08/13] lib/fonts: Read font size with font_data_size() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 09/13] lib/fonts: Compare font data for equality with font_data_is_equal() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 10/13] lib/fonts: Manage font-data lifetime with font_data_get/_put() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 11/13] lib/fonts: Create font_data_t from struct console_font with font_data_import() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 12/13] lib/fonts: Store font data for user space with font_data_export() Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-02 14:08 ` [PATCH v2 13/13] lib/fonts: Remove internal symbols and macros from public header file Thomas Zimmermann
2026-03-03 3:19 ` Claude review: " Claude Code Review Bot
2026-03-03 3:19 ` Claude Code Review Bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-09 14:14 [PATCH v3 00/13] vc,fbcon,fonts: Proper handling of font data Thomas Zimmermann
2026-03-10 2:19 ` Claude review: " Claude Code Review Bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260302141255.518657-1-tzimmermann@suse.de \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox