summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-09-04 17:44:50 +0100
committerSteven Rostedt <rostedt@goodmis.org>2026-09-04 16:19:15 -0400
commitc843fd3c73c94cb90b01c6bfe8d83796e652864d (patch)
treed6e609c55f1445fad5c06c4b1eed0c5ef44c407e /scripts/Makefile.thinlto
parentf2b2b645595c82b4e824880f6cb987e077a8da19 (diff)
downloadlinux-c843fd3c73c94cb90b01c6bfe8d83796e652864d.tar.gz
linux-c843fd3c73c94cb90b01c6bfe8d83796e652864d.zip
ring-buffer: Prevent truncation of nr_pages / nr_subbufs
Although ring_buffer_per_cpu::nr_pages is defined as unsigned long, it is capped to 32-bits in a few places, limiting the operations possible on a very large buffer. Use `unsigned long` where appropriate and prevent truncation of values using nr_pages (or nr_subbufs). While at it, subbuf_size must be at least `unsigned int`. Note that persistent, remote and user-mapped ring buffers are capping the number of pages to 30 bits already, making "int" safe in many places. Link: https://patch.msgid.link/20260904164450.1345852-5-vdonnefort@google.com Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions