Commit 65ca7a3
ksmbd: handle smb2 query dir request for OutputBufferLength that is too small
We found the issue that ksmbd return STATUS_NO_MORE_FILES response
even though there are still dentries that needs to be read while
file read/write test using framtest utils.
windows client send smb2 query dir request included
OutputBufferLength(128) that is too small to contain even one entry.
This patch make ksmbd immediately returns OutputBufferLength of response
as zero to client.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent ee1b055 commit 65ca7a3
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3938 | 3938 | | |
3939 | 3939 | | |
3940 | 3940 | | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
3941 | 3947 | | |
3942 | 3948 | | |
3943 | 3949 | | |
| |||
3964 | 3970 | | |
3965 | 3971 | | |
3966 | 3972 | | |
| 3973 | + | |
3967 | 3974 | | |
3968 | 3975 | | |
3969 | 3976 | | |
3970 | | - | |
| 3977 | + | |
| 3978 | + | |
3971 | 3979 | | |
3972 | 3980 | | |
3973 | 3981 | | |
| |||
0 commit comments