Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jbd2_seq_info_next should increase position index
if seq_file .next fuction does not change position index, read after some lseek can generate unexpected output. Script below generates endless output $ q=;while read -r r;do echo "$((++q)) $r";done </proc/fs/jbd2/DEV/info https://bugzilla.kernel.org/show_bug.cgi?id=206283 Fixes: 1f4aace ("fs/seq_file.c: simplify seq_file iteration code and interface") Cc: [email protected] Signed-off-by: Vasily Averin <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
- Loading branch information