Thread (33 messages) 33 messages, 11 authors, 8d ago

Re: [PATCH 01/11] params: bound array element output to the caller's page buffer

From: Matthew Wilcox <willy@infradead.org>
Date: 2026-06-01 20:24:21
Also in: dmaengine, dri-devel, intel-gfx, kvm, linux-acpi, linux-arch, linux-fsdevel, linux-hardening, linux-media, linux-mm, linux-modules, linux-pci, linux-pm, linux-rdma, linux-scsi, linux-security-module, linux-serial, linux-um, linux-usb, lkml, netdev, qemu-devel, stable, virtualization

On Thu, May 21, 2026 at 05:46:31PM +0100, David Laight wrote:
On Thu, 21 May 2026 06:33:14 -0700
Kees Cook [off-list ref] wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help