Re: UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29

2016-05-19 Thread Meelis Roos
> I think UBSAN has correctly identified a bug. I looked at the code in > v4.6. In file arch/x86/events/core.c, in the function > filter_events(), there is a loop starting at line 1554 that should go > over 10 event counters. But in file arch/x86/events/intel/p6.c, only > 8 event counters have

Re: UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29

2016-05-19 Thread Meelis Roos
> I think UBSAN has correctly identified a bug. I looked at the code in > v4.6. In file arch/x86/events/core.c, in the function > filter_events(), there is a loop starting at line 1554 that should go > over 10 event counters. But in file arch/x86/events/intel/p6.c, only > 8 event counters have

Re: UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29

2016-05-18 Thread Nilay Vaish
0.150000] UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29 > [0.15] index 8 is out of range for type 'u64 [8]' > [0.15] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0 #21 > [0.15] Hardware name: Dell Computer Corporation PowerEdge 1550/933 &

Re: UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29

2016-05-18 Thread Nilay Vaish
rom UBSAN but I do not have any > amd machines from that time frame online for now, so p6 only. > > [0.15] Performance Events: p6 PMU driver. > [0.15] > ==== > [0.150000] UBSAN: Undef

UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29

2016-05-16 Thread Meelis Roos
online for now, so p6 only. [0.15] Performance Events: p6 PMU driver. [0.15] [0.15] UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29 [0.15] index 8 is out of range for type

UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29

2016-05-16 Thread Meelis Roos
online for now, so p6 only. [0.15] Performance Events: p6 PMU driver. [0.15] [0.15] UBSAN: Undefined behaviour in arch/x86/events/intel/p6.c:115:29 [0.15] index 8 is out of range for type