mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] isofs: tie the name conversion buffer to its bound
@ 2026-09-22 15:55 Matthias Goergens
  2026-09-22 15:55 ` [PATCH 1/2] isofs: size the name conversion buffer from a named constant Matthias Goergens
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matthias Goergens @ 2026-09-22 15:55 UTC (permalink / raw)
  To: Jan Kara; +Cc: Christian Brauner, linux-fsdevel, linux-kernel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-24 12:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 15:55 [PATCH 0/2] isofs: tie the name conversion buffer to its bound Matthias Goergens
2026-09-22 15:55 ` [PATCH 1/2] isofs: size the name conversion buffer from a named constant Matthias Goergens
2026-09-24 12:35   ` Jan Kara
2026-09-22 15:55 ` [PATCH 2/2] isofs: bound the Joliet iocharset conversion by the output buffer Matthias Goergens
2026-09-24 12:40   ` Jan Kara
2026-09-24 10:02 ` [PATCH 0/2] isofs: tie the name conversion buffer to its bound Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®