From: Ralph Boehme <slow@samba.org>
To: Namjae Jeon <linkinjeon@kernel.org>, linux-cifs@vger.kernel.org
Cc: Tom Talpey <tom@talpey.com>,
Ronnie Sahlberg <ronniesahlberg@gmail.com>,
Steve French <smfrench@gmail.com>
Subject: Re: [PATCH v3] ksmbd: add request buffer validation in smb2_set_info
Date: Wed, 22 Sep 2021 15:39:18 +0200 [thread overview]
Message-ID: <aec0390e-fca6-bb2b-f8e5-3b2336042e48@samba.org> (raw)
In-Reply-To: <20210922041932.663796-1-linkinjeon@kernel.org>
[-- Attachment #1.1: Type: text/plain, Size: 869 bytes --]
Hi Namjae,
patch looks great. One nitpick.
Am 22.09.21 um 06:19 schrieb Namjae Jeon:
> Add buffer validation in smb2_set_info, and remove unused variable
> in set_file_basic_info. and smb2_set_info infolevel functions take
> structure pointer argument.
> ...
> +struct smb2_file_basic_info { /* data block encoding of response to level 18 */
> + __le64 CreationTime; /* Beginning of FILE_BASIC_INFO equivalent */
> + __le64 LastAccessTime;
> + __le64 LastWriteTime;
> + __le64 ChangeTime;
> + __le32 Attributes;
> + __u32 Pad1; /* End of FILE_BASIC_INFO_INFO equivalent */
> +} __packed;
> +
adding struct smb2_file_basic_info and the fix in the handler should be
done in a preceeding commit.
Thanks!
-slow
--
Ralph Boehme, Samba Team https://samba.org/
SerNet Samba Team Lead https://sernet.de/en/team-samba
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2021-09-22 13:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 4:19 [PATCH v3] ksmbd: add request buffer validation in smb2_set_info Namjae Jeon
2021-09-22 13:39 ` Ralph Boehme [this message]
2021-09-22 13:51 ` Namjae Jeon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aec0390e-fca6-bb2b-f8e5-3b2336042e48@samba.org \
--to=slow@samba.org \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=ronniesahlberg@gmail.com \
--cc=smfrench@gmail.com \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.