On Thu, May 21, 2026 at 05:46:31PM +0100, David Laight wrote: > On Thu, 21 May 2026 06:33:14 -0700 > Kees Cook <[email protected]> wrote: > > Collect each element into a temporary PAGE_SIZE buffer first and then > > copy only the remaining space into the caller's page buffer. > > Should this be using a 4k buffer on all architectures? > Initially perhaps just using a different name for the constant until > all the associated PAGE_SIZE limits have been removed.
If we're acually going to think about this, even 4KiB is too big. An 80x25 terminal is 2000 bytes (assuming no utf8), so 4KiB is two entire screenfuls. Limiting to 2048 would seem reasonable to me.
