Skip to content
  • Peter Zijlstra's avatar
    perf: Fix u16 overflows · a723968c
    Peter Zijlstra authored
    
    
    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: default avatarVince Weaver <vincent.weaver@maine.edu>
    Signed-off-by: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    a723968c