[PATCH 0/2] isofs: tie the name conversion buffer to its bound

From: Matthias Goergens

Date: Tue Sep 22 2026 - 12:06:23 EST


Two cleanups around the scratch buffer isofs_readdir() and
isofs_lookup() hand to the name converters. No functional change; the
first patch's assertions hold on the current code.

Found while looking at something else: get_joliet_filename() has been
passing PAGE_SIZE as its output bound since b2eb2e288604 shrank the
buffer to 1024, which is safe only because de->name_len is a single
byte. That seemed worth writing down in a form the compiler checks.

Matthias Goergens (2):
isofs: size the name conversion buffer from a named constant
isofs: bound the Joliet iocharset conversion by the output buffer

fs/isofs/dir.c | 9 ++++++++-
fs/isofs/isofs.h | 9 +++++++++
fs/isofs/joliet.c | 25 ++++++++++++++++++++-----
fs/isofs/namei.c | 2 +-
fs/isofs/rock.c | 3 +++
5 files changed, 41 insertions(+), 7 deletions(-)


base-commit: 40288c9206c17eb66a603262e06a58d300d0f279
--
2.55.0