[PATCH 0/2] ocfs2: Replace strlcpy with strscpy

From: Azeem Shaikh
Date: Wed Aug 30 2023 - 17:56:23 EST


Hi,

The main patch this series is targeting is [PATCH 2] which replaces
strlcpy() call with strscpy(). However, while I was tinkering through
the code I noticed that `module_param_call` is marked obsolete and
`module_param_cb` is preferred instead. So I have included [PATCH 1]
which does that.

A crucial thing in [PATCH 2] I would like to bring to reviewer's
attention is that it changes behavior for the case where
sizeof(@buffer) < DLMFS_CAPABILITIES. Currently, this is silently ignored
but with the current change it returns -errno.

Thanks,
Azeem

Azeem Shaikh (2):
Replace module_param_call with module_param_cb
Replace strlcpy with strscpy

fs/ocfs2/dlmfs/dlmfs.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

--
2.42.0.283.g2d96d420d3-goog