linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ring-buffer: Fix a race between readers and resize checks
@ 2024-05-17 13:40 Petr Pavlu
  2024-05-17 13:40 ` [PATCH 1/2] ring-buffer: Correct stale comments related to non-consuming readers Petr Pavlu
  2024-05-17 13:40 ` [PATCH 2/2] ring-buffer: Fix a race between readers and resize checks Petr Pavlu
  0 siblings, 2 replies; 8+ messages in thread
From: Petr Pavlu @ 2024-05-17 13:40 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers
  Cc: linux-trace-kernel, linux-kernel, Petr Pavlu

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-10 15:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17 13:40 [PATCH 0/2] ring-buffer: Fix a race between readers and resize checks Petr Pavlu
2024-05-17 13:40 ` [PATCH 1/2] ring-buffer: Correct stale comments related to non-consuming readers Petr Pavlu
2024-05-17 13:40 ` [PATCH 2/2] ring-buffer: Fix a race between readers and resize checks Petr Pavlu
2024-05-20 13:50   ` Steven Rostedt
2024-05-27  9:36     ` Petr Pavlu
2024-05-27 23:43       ` Steven Rostedt
2024-06-07  8:29         ` Petr Pavlu
2024-06-10 15:56           ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).