Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
K
kernel
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Commits
  • phytec
  • vm016-mx8m
  • kernel
  • Repository

Switch branch/tag
  • kernel
  • fs
  • seq_file.c
Find file
BlameHistoryPermalink
  • Miklos Szeredi's avatar
    seq_file: fix incomplete reset on read from zero offset · 29b4af70
    Miklos Szeredi authored Nov 15, 2017
    commit cf5eebae upstream.
    
    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: default avatarRich Felker <dalias@libc.org>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    Fixes: e522751d ("seq_file: reset iterator to first record for zero offset")
    Cc: <stable@vger.kernel.org> # v4.10
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    29b4af70
seq_file.c 22.8 KB
EditWeb IDE

Replace seq_file.c

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.