Re: [PATCH net] fib_trie: correct /proc/net/route for large read buffer

2016-11-04 Thread Alexander Duyck
On Fri, Nov 4, 2016 at 12:07 PM, Jason Baron wrote: > > > On 11/04/2016 02:43 PM, Alexander Duyck wrote: >> >> On Fri, Nov 4, 2016 at 7:45 AM, Jason Baron wrote: >>> >>> From: Jason Baron >>> >>> When read() is called on /proc/net/route requesting a size that is one >>> entry size (128 bytes) le

Re: [PATCH net] fib_trie: correct /proc/net/route for large read buffer

2016-11-04 Thread Jason Baron
On 11/04/2016 02:43 PM, Alexander Duyck wrote: On Fri, Nov 4, 2016 at 7:45 AM, Jason Baron wrote: From: Jason Baron When read() is called on /proc/net/route requesting a size that is one entry size (128 bytes) less than m->size or greater, the resulting output has missing and/or duplicate e

Re: [PATCH net] fib_trie: correct /proc/net/route for large read buffer

2016-11-04 Thread Alexander Duyck
On Fri, Nov 4, 2016 at 7:45 AM, Jason Baron wrote: > From: Jason Baron > > When read() is called on /proc/net/route requesting a size that is one > entry size (128 bytes) less than m->size or greater, the resulting output > has missing and/or duplicate entries. Since m->size is typically PAGE_SIZ

[PATCH net] fib_trie: correct /proc/net/route for large read buffer

2016-11-04 Thread Jason Baron
From: Jason Baron When read() is called on /proc/net/route requesting a size that is one entry size (128 bytes) less than m->size or greater, the resulting output has missing and/or duplicate entries. Since m->size is typically PAGE_SIZE, for a PAGE_SIZE of 4,096 this means that reads requesting