Few of the notable Kernel improvements will be landing/visible in next release i.e., 7.2
\+- strscpy() when the destination must be NUL-terminated.
\+- strscpy_pad() when the destination must be NUL-terminated and
\+ zero-padded (e.g., structs crossing privilege boundaries).
\+- memtostr() for NUL-terminated destinations from non-NUL-terminated
\+ fixed-width sources (with the `__nonstring` attribute on the source).
\+- memtostr_pad() for the same, but with zero-padding.
\+- strtomem() for non-NUL-terminated fixed-width destinations, with
\+ the `__nonstring` attribute on the destination.
\+- strtomem_pad() for non-NUL-terminated destinations that also need
\+ zero-padding.
\+- memcpy_and_pad() for bounded copies from potentially unterminated
\+ sources where the destination size is a runtime value.
https://redd.it/1uaqnu3
@r_linux
Post #42378
54