Commit 1b5a425
committed
NFSv4.1/pnfs: fix NFS with TLS in pnfs
jira LE-2015
Rebuild_History Non-Buildable kernel-5.14.0-427.42.1.el9_4
commit-author Olga Kornievskaia <kolga@netapp.com>
commit a35518c
Currently, even though xprtsec=tls is specified and used for operations
to MDS, any operations that go to DS travel over unencrypted connection.
Or additionally, if more than 1 DS can serve the data, then trunked
connections are also done unencrypted.
IN GETDEVINCEINFO, we get an entry for the DS which carries a protocol
type (which is TCP), then nfs4_set_ds_client() gets called with TCP
instead of TCP with TLS.
Currently, each trunked connection is created and uses clp->cl_hostname
value which if TLS is used would get passed up in the handshake upcall,
but instead we need to pass in the appropriate trunked address value.
Fixes: c8407f2 ("NFS: Add an "xprtsec=" NFS mount option")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
(cherry picked from commit a35518c)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 1a55c4d commit 1b5a425
1 file changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
| 922 | + | |
| 923 | + | |
922 | 924 | | |
923 | 925 | | |
924 | 926 | | |
| |||
929 | 931 | | |
930 | 932 | | |
931 | 933 | | |
| 934 | + | |
932 | 935 | | |
933 | 936 | | |
934 | 937 | | |
| |||
938 | 941 | | |
939 | 942 | | |
940 | 943 | | |
941 | | - | |
| 944 | + | |
| 945 | + | |
942 | 946 | | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
943 | 980 | | |
944 | 981 | | |
| 982 | + | |
945 | 983 | | |
946 | 984 | | |
947 | 985 | | |
| |||
953 | 991 | | |
954 | 992 | | |
955 | 993 | | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
956 | 998 | | |
957 | 999 | | |
958 | 1000 | | |
| |||
0 commit comments