Fix a race between a reader swapping a new reader page into the ring-buffer from rb_get_reader_page() and the rb_check_pages() check invoked at the end of the resize operation in ring_buffer_resize().
Note that a similar problem with rb_check_pages() being executed with concurrent readers looks to exist for ring_buffer_subbuf_order_set() too. I plan to tackle it in a separate series. Petr Pavlu (2): ring-buffer: Correct stale comments related to non-consuming readers ring-buffer: Fix a race between readers and resize checks kernel/trace/ring_buffer.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) base-commit: ea5f6ad9ad9645733b72ab53a98e719b460d36a6 -- 2.35.3