Re: [PATCH v3 03/11] 9pfs: validate count sent by client with T_readdir

2020-01-17 Thread Greg Kurz
On Thu, 16 Jan 2020 17:51:10 +0100 Christian Schoenebeck wrote: > On Donnerstag, 16. Januar 2020 14:33:42 CET Greg Kurz wrote: > > On Mon, 13 Jan 2020 23:22:08 +0100 > > > > Christian Schoenebeck wrote: > > > A good 9p client sends T_readdir with "count" parameter that's > > > sufficiently smal

Re: [PATCH v3 03/11] 9pfs: validate count sent by client with T_readdir

2020-01-16 Thread Christian Schoenebeck
On Donnerstag, 16. Januar 2020 14:33:42 CET Greg Kurz wrote: > On Mon, 13 Jan 2020 23:22:08 +0100 > > Christian Schoenebeck wrote: > > A good 9p client sends T_readdir with "count" parameter that's > > sufficiently smaller than client's initially negotiated msize > > (maximum message size). We pe

Re: [PATCH v3 03/11] 9pfs: validate count sent by client with T_readdir

2020-01-16 Thread Greg Kurz
On Mon, 13 Jan 2020 23:22:08 +0100 Christian Schoenebeck wrote: > A good 9p client sends T_readdir with "count" parameter that's > sufficiently smaller than client's initially negotiated msize > (maximum message size). We perform a check for that though to > avoid the server to be interrupted wit

[PATCH v3 03/11] 9pfs: validate count sent by client with T_readdir

2020-01-13 Thread Christian Schoenebeck
A good 9p client sends T_readdir with "count" parameter that's sufficiently smaller than client's initially negotiated msize (maximum message size). We perform a check for that though to avoid the server to be interrupted with a "Failed to encode VirtFS reply type 41" error message by bad clients.