Re: perf/ring-buffer: Undefined behaviour in kernel/events/ring_buffer.c:685:22
From: Peter Zijlstra
Date: Tue Jan 19 2016 - 09:31:31 EST
On Sun, Jan 10, 2016 at 03:55:13PM -0500, Sasha Levin wrote:
> Hi all,
>
> While fuzzing with trinity inside a KVM tools guest, running the latest -next
> kernel, I've hit the following warning:
>
> [ 3494.030114] UBSAN: Undefined behaviour in kernel/events/ring_buffer.c:685:22
> [ 3494.030647] shift exponent -1 is negative
That's rb->page_order == -1, which should 'never' happen, curious!
Funny though that rb::page_order is the exact field _after_ rb::work, ho
humm.