summaryrefslogtreecommitdiff
path: root/fs/ext4/mballoc.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2017-11-15 13:34:58 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-01-20 10:31:15 +0300
commitcf5eebae2cd28d37581507668605f4d23cd7218d (patch)
tree4eb7d05f8d94adf671ba5f8aa736b9f502e37d21 /fs/ext4/mballoc.h
parentba87977a49913129962af8ac35b0e13e0fa4382d (diff)
downloadlinux-cf5eebae2cd28d37581507668605f4d23cd7218d.tar.xz
seq_file: fix incomplete reset on read from zero offset
When resetting iterator on a zero offset we need to discard any data already in the buffer (count), and private state of the iterator (version). For example this bug results in first line being repeated in /proc/mounts if doing a zero size read before a non-zero size read. Reported-by: Rich Felker <dalias@libc.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Fixes: e522751d605d ("seq_file: reset iterator to first record for zero offset") Cc: <stable@vger.kernel.org> # v4.10 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4/mballoc.h')
0 files changed, 0 insertions, 0 deletions