2022-05-04 8:13 GMT+09:00, Marios Makassikis <mmakassikis@xxxxxxxxxx>: > The SMB2 Write packet contains data that is to be written > to a file or to a pipe. Depending on the client, there may > be padding between the header and the data field. > Currently, the length is validated only in the case padding > is present. > > Since the DataOffset field always points to the beginning > of the data, there is no need to have a special case for > padding. By removing this, the length is validated in both > cases. > > Signed-off-by: Marios Makassikis <mmakassikis@xxxxxxxxxx> Acked-by: Namjae Jeon <linkinjeon@xxxxxxxxxx> > --- > smb2pdu.c | 49 +++++++++++++++++++------------------------------ > 1 file changed, 19 insertions(+), 30 deletions(-) > > diff --git a/smb2pdu.c b/smb2pdu.c Can you resend the patch after making it on linux kernel source ? Thanks!