summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-09-04 17:44:49 +0100
committerSteven Rostedt <rostedt@goodmis.org>2026-09-04 16:19:14 -0400
commitf2b2b645595c82b4e824880f6cb987e077a8da19 (patch)
tree49c3c94e632c658469ffc752adef41012237a105 /scripts
parentdae8dda341d2d9034a90d59e8a7d502e1263813f (diff)
downloadlinux-f2b2b645595c82b4e824880f6cb987e077a8da19.tar.gz
linux-f2b2b645595c82b4e824880f6cb987e077a8da19.zip
ring-buffer: Cap static ring buffer nr_pages
Static ring buffers (i.e. persistent, user-mapped and remote) rely on the bpage::id field. The number of pages for those ring buffers must fit into that variable. Enforce this limit on ring buffer creation or user-mapping. While at it, prevent nr_pages underflow when allocating a persistent buffer. Link: https://patch.msgid.link/20260904164450.1345852-4-vdonnefort@google.com Fixes: be68d63a139b ("ring-buffer: Add ring_buffer_alloc_range()") Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions