Whamcloud - gitweb
LU-15508 gss: protect from arbitrary write to init channel
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 4 Feb 2022 14:53:35 +0000 (15:53 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 22 Jun 2022 00:14:12 +0000 (00:14 +0000)
commit6de051aaa1ae73832bc0e5eda53616644474986b
tree0beddd35c1de32f1ca19a8232341e78676dd356d
parentb8461456767d0030d702c614c15df8b3110c19b5
LU-15508 gss: protect from arbitrary write to init channel

In case some arbitrary data was written to the gss init channel,
directly return -EINVAL. This protects against unsolicited
authentication requests, and avoids having a dandling entry
in the auth init cache.

Lustre-change: https://review.whamcloud.com/46461
Lustre-commit: f06807d409c82dd85c208c79c8072402e77f9bac

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Iadde630012e4ded83f9609fbb3e10b2e092deb57
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Jeremy Filizetti <jeremy.filizetti@gmail.com>
Reviewed-on: https://review.whamcloud.com/47669
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ptlrpc/gss/gss_svc_upcall.c