Skip to content

CNB95: string: Allow 2-argument strscpy() and strscpy_pad()

Ivan Vecera requested to merge ivecera/centos-stream-9:RHEL-40250 into main

JIRA: https://issues.redhat.com/browse/RHEL-40250
Tested: Just built

Omitted-fix: 62776e4378ae9 ("mips: boot/compressed: use __NO_FORTIFY")

  • No need to include this as MIPS arch is not supported in RHEL

Commits:

54d9469bc515 ("fortify: Add run-time WARN for cross-field memcpy()")
311fb40aa056 ("fortify: Use SIZE_MAX instead of (size_t)-1")
fa35198f3957 ("fortify: Explicitly check bounds are compile-time constants")
9f7d69c5cd23 ("fortify: Convert to struct vs member helpers")
03699f271de1 ("string: Rewrite and add more kern-doc for the str*() functions")
62e1cbfc5d79 ("fortify: Short-circuit known-safe calls to strscpy()")
439a1bcac648 ("fortify: Use __builtin_dynamic_object_size() when available")
26dd68d293fd ("overflow: add DEFINE_FLEX() for on-stack allocs")
21a2c74b0a2a ("fortify: Use const variables for __member_size tracking")
ead62aa370a8 ("fortify: strscpy: Fix flipped q and p docstring typo")
f0a6b5831cfb ("uml: Replace strlcpy with strscpy")
b229baa374db ("kernel.h: split out COUNT_ARGS() and CONCATENATE() to args.h")
e6584c3964f2 ("string: Allow 2-argument strscpy()")
f478898e0aa7 ("string: Redefine strscpy_pad() as a macro")
8366d124ec93 ("string: Allow 2-argument strscpy_pad()")
0d043351e5ba ("ext4: fix fortify warning in fs/ext4/fast_commit.c:1551")
b2ba00c2a517 ("rxrpc: replace zero-lenth array with DECLARE_FLEX_ARRAY() helper")

Signed-off-by: Ivan Vecera ivecera@redhat.com

Edited by Ivan Vecera

Merge request reports