Re: [PATCH] lockdep: avoid signed overflow

2017-03-15 Thread Ingo Molnar
* Mark Rutland wrote: > The counters in struct lockdep_stats are all (signed) ints. For some > counters (e.g. hardirqs_on_events, hardirqs_off_events), it's easy to > trigger an overflow in a short period of time, rendering the information > exposed under /proc/lockdep_stats erroneous, and causi

[PATCH] lockdep: avoid signed overflow

2017-03-15 Thread Mark Rutland
The counters in struct lockdep_stats are all (signed) ints. For some counters (e.g. hardirqs_on_events, hardirqs_off_events), it's easy to trigger an overflow in a short period of time, rendering the information exposed under /proc/lockdep_stats erroneous, and causing UBSAN to scream. Since all co