diff options
author | Peter Zijlstra <peterz@infradead.org> | 2015-09-09 19:06:33 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-09-18 09:20:25 +0200 |
commit | a723968c0ed36db676478c3d26078f13484fe01c (patch) | |
tree | 291202901e28ed77ac9226d6fb2d6b0178a8497c /kernel/user_namespace.c | |
parent | f55fc2a57cc9ca3b1bb4fb8eb25b6e1989e5b993 (diff) | |
download | linux-next-a723968c0ed36db676478c3d26078f13484fe01c.tar.gz |
perf: Fix u16 overflows
Vince reported that its possible to overflow the various size fields
and get weird stuff if you stick too many events in a group.
Put a lid on this by requiring the fixed record size not exceed 16k.
This is still a fair amount of events (silly amount really) and leaves
plenty room for callchains and stack dwarves while also avoiding
overflowing the u16 variables.
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/user_namespace.c')
0 files changed, 0 insertions, 0 deletions