Messages in this thread | | | Subject | Re: [PATCH] net/core: Fix seeking in /proc/net/dev | From | Eric Dumazet <> | Date | Fri, 06 Apr 2012 19:41:19 +0200 |
| |
On Fri, 2012-04-06 at 20:14 +0300, Mihai Maruseac wrote: > On Fri, Apr 6, 2012 at 8:05 PM, John Keeping <john@keeping.me.uk> wrote: > > Commit f04565ddf52e4 (dev: use name hash for dev_seq_ops) introduced > > code that fails to check the requested position when getting an item for > > /proc/net/dev. This means that any code which seeks within this file is > > likely to receive corrupted data. > > > > A test case for this is to use the read builtin in bash: > > ... > Looks good to me. However, Eric just submitted a patch here with other > changes caused by a logic error in the original patch.
Hmm, I think my patch fixed this lseek issue as well.
| |