OSDN Git Service

smb3: allow skipping signature verification for perf sensitive configurations
authorSteve French <stfrench@microsoft.com>
Wed, 4 Sep 2019 02:18:49 +0000 (21:18 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:38 +0000 (11:43 -0500)
commit4f5c10f1ad45ae453822113dd0fe39ed757037fb
treefd8938313cc6abd264afeb09e599e565945e9dab
parentf90f979726bc37275995035dbbd55ce8f9b0acde
smb3: allow skipping signature verification for perf sensitive configurations

Add new mount option "signloosely" which enables signing but skips the
sometimes expensive signing checks in the responses (signatures are
calculated and sent correctly in the SMB2/SMB3 requests even with this
mount option but skipped in the responses).  Although weaker for security
(and also data integrity in case a packet were corrupted), this can provide
enough of a performance benefit (calculating the signature to verify a
packet can be expensive especially for large packets) to be useful in
some cases.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/smb2transport.c