Commit ce61b60
ksmbd: the buffer of smb2 query dir response has at least 1 byte
When STATUS_NO_MORE_FILES status is set to smb2 query dir response,
->StructureSize is set to 9, which mean buffer has 1 byte.
This issue occurs because ->Buffer[1] in smb2_query_directory_rsp to
flex-array.
Fixes: eb3e28c ("smb3: Replace smb2pdu 1-element arrays with flex-arrays")
Cc: stable@vger.kernel.org # v6.1+
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent b311c1b commit ce61b60
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4409 | 4409 | | |
4410 | 4410 | | |
4411 | 4411 | | |
4412 | | - | |
| 4412 | + | |
| 4413 | + | |
4413 | 4414 | | |
4414 | 4415 | | |
4415 | 4416 | | |
| |||
0 commit comments