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

2020-01-22 Thread Christian Schoenebeck
On Mittwoch, 22. Januar 2020 15:11:07 CET Greg Kurz wrote: > On Tue, 21 Jan 2020 00:50:33 +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

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

2020-01-22 Thread Greg Kurz
On Tue, 21 Jan 2020 00:50:33 +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 v4 03/11] 9pfs: validate count sent by client with T_readdir

2020-01-20 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" transport error message by bad