On Tue, Feb 25, 2020 at 09:26:08AM +0300, Vasily Averin wrote: > If .next function does not change position index, > following .show function will repeat output related > to current position index. > > In case of /sys/kernel/security/tpm0/ascii_bios_measurements > and binary_bios_measurements: > 1) read after lseek beyound end of file generates whole last line. > 2) read after lseek to middle of last line generates > expected end of last line and unexpected whole last line once again. > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code ...") > Link: https://bugzilla.kernel.org/show_bug.cgi?id=206283 > Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx> Thank alot! Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> /Jarkko