diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-09-04 17:44:49 +0100 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-09-04 16:19:14 -0400 |
| commit | f2b2b645595c82b4e824880f6cb987e077a8da19 (patch) | |
| tree | 49c3c94e632c658469ffc752adef41012237a105 /scripts/Makefile.thinlto | |
| parent | dae8dda341d2d9034a90d59e8a7d502e1263813f (diff) | |
| download | linux-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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
