public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] perf: Fix AUX software double buffering
@ 2019-05-03  8:55 Alexander Shishkin
  2019-05-03  8:55 ` [PATCH 1/2] " Alexander Shishkin
  2019-05-03  8:55 ` [PATCH 2/2] perf, pt: Remove software double buffering PMU capability Alexander Shishkin
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Shishkin @ 2019-05-03  8:55 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Arnaldo Carvalho de Melo, Ingo Molnar, linux-kernel, jolsa,
	adrian.hunter, Alexander Shishkin

Hi Peter,

There was a problem with 04fe30a61514 ("perf/ring_buffer: Use high order
allocations for AUX buffers optimistically") that made buffers that were
previously scattered across multiple pages into one large buffer, breaking
double buffering. In practice, this manifests easily for non-privileged
users, whose buffers are generally smaller than MAX_ORDER and would fit
into one high-order allocation. Root's default AUX buffer size is larger
and would get split, so they are less affected. The fix is trivial and
we also get rid of one PMU capability as a bonus.

Alexander Shishkin (2):
  perf: Fix AUX software double buffering
  perf, pt: Remove software double buffering PMU capability

 arch/x86/events/intel/pt.c  | 3 +--
 include/linux/perf_event.h  | 1 -
 kernel/events/ring_buffer.c | 3 +--
 3 files changed, 2 insertions(+), 5 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-05-03 10:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-03  8:55 [PATCH 0/2] perf: Fix AUX software double buffering Alexander Shishkin
2019-05-03  8:55 ` [PATCH 1/2] " Alexander Shishkin
2019-05-03 10:49   ` [tip:perf/urgent] perf/ring_buffer: " tip-bot for Alexander Shishkin
2019-05-03  8:55 ` [PATCH 2/2] perf, pt: Remove software double buffering PMU capability Alexander Shishkin
2019-05-03 10:50   ` [tip:perf/urgent] perf/x86/intel/pt: " tip-bot for Alexander Shishkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox