mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 11:53:53 +00:00
Correct an issue with /proc/timer_list reported by Holger. When reading from the proc file with a sufficiently small buffer, 2k so not really that small, there was one could get hung trying to read the file a chunk at a time. The timer_list_start function failed to account for the possibility that the offset was adjusted outside the timer_list_next. Signed-off-by: Nathan Zimmer <[email protected]> Reported-by: Holger Hans Peter Freyther <[email protected]> Cc: John Stultz <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Berke Durak <[email protected]> Cc: Jeff Layton <[email protected]> Tested-by: Al Viro <[email protected]> Cc: <[email protected]> # 3.10.x Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>