Re: [PATCH] nfs: Fix security label length not being reset

2020-09-15 Thread J. Bruce Fields
On Mon, Sep 14, 2020 at 10:49:57AM -0500, Jeffrey Mitchell wrote: > nfs_readdir_page_filler() iterates over entries in a directory, reusing > the same security label buffer, but does not reset the buffer's length. > This causes decode_attr_security_label() to return -ERANGE if an entry's >

[PATCH] nfs: Fix security label length not being reset

2020-09-14 Thread Jeffrey Mitchell
nfs_readdir_page_filler() iterates over entries in a directory, reusing the same security label buffer, but does not reset the buffer's length. This causes decode_attr_security_label() to return -ERANGE if an entry's security label is longer than the previous one's. This error, in

[PATCH] nfs: Fix security label length not being reset

2020-09-14 Thread Jeffrey Mitchell
In nfs_readdir_page_filler(), reset security label buffer length before every reuse Signed-off-by: Jeffrey Mitchell --- fs/nfs/dir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index a12f42e7d8c7..5ff6af4478a5 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c