]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit843e1bc080345e12bc4c2b73fcbdee16c2ddd7a3
treefd8938313cc6abd264afeb09e599e565945e9dab
parentb6a06d59cb8faa700a68f6d6f93bd013939398d8
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