Re: KASAN: slab-out-of-bounds Write in pipe_write

From: David Howells
Date: Thu Dec 05 2019 - 11:34:08 EST


Eric Biggers <ebiggers@xxxxxxxxxx> wrote:

> It looks like the 'mask' variable in pipe_write() is not being updated after
> the pipe mutex was dropped in pipe_wait(), to take into account the pipe
> size possibly having been changed in the mean time.

There's that, but not only that. Weirdness ensues if the ring size is 1 -
this may have to do with the mask then being 0.

David