Details
-
Bug
-
Resolution: Fixed
-
Trivial
-
Lustre 2.9.0
-
None
-
4
-
9223372036854775807
Description
lgss_sk.c uses strncpy() to modify names of strings for both fsname and nodemap fields. If the replacement string is smaller than the original string, it will not be zero terminated properly. For example, replacing a nodemap name of "default" with "c0" with the lgss_sk utility can result in invalid names such as:
Nodemap name: c0fault
I will submit a small patch to switch this to snprintf(), although being a little more verbose, will be safe to use on a parameter of variable length.
Attachments
Issue Links
- is related to
-
LU-8602 Support GSS crypto code with linux 4.6 kernels
- Resolved