Skip to content
Commit b9dc6f65 authored by Al Viro's avatar Al Viro
Browse files

fix a fencepost error in pipe_advance()



The logics in pipe_advance() used to release all buffers past the new
position failed in cases when the number of buffers to release was equal
to pipe->buffers.  If that happened, none of them had been released,
leaving pipe full.  Worse, it was trivial to trigger and we end up with
pipe full of uninitialized pages.  IOW, it's an infoleak.

Cc: stable@vger.kernel.org # v4.9
Reported-by: default avatar"Alan J. Wylie" <alan@wylie.me.uk>
Tested-by: default avatar"Alan J. Wylie" <alan@wylie.me.uk>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4d22c75d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment