Whamcloud - gitweb
LU-17161 build: Avoid fortify_memset in OBD_FREE_PTR 59/52559/5
authorShaun Tancheff <shaun.tancheff@hpe.com>
Wed, 18 Oct 2023 07:17:29 +0000 (02:17 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Feb 2024 07:11:45 +0000 (07:11 +0000)
commit58cc8cf98e37e9d8149d5f605a75d56f2cd4eb70
tree1a58f268b74e7af5970dd69be4642581e92e115f
parent93af01f966a1222cf9bdbd32823b68e0a1d241bd
LU-17161 build: Avoid fortify_memset in OBD_FREE_PTR

OBD_FREE_PTR will optionally clear the about to be free()d
memory.

Unfortunately fortify_memset_chk() hits some false positives.

We can use __underlying_memset() if it is defined, to avoid
the fortify_memset_chk.

Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Iced53f22b97ed90e0970625c4fcbaa404054c54a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52559
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h