summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-12-08 22:59:57 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-12-14 07:30:30 +0300
commit532adda9f405d69ef1837f59e60512313fdf0f63 (patch)
treeab597bc2b6d924f5dc7b674bfc7a84f68f4fdefe /tools/perf/scripts/python/event_analyzing_sample.py
parent4437503bfbec2f02b41b2492520fe627715889a7 (diff)
downloadlinux-532adda9f405d69ef1837f59e60512313fdf0f63.tar.xz
scsi: lpfc: Use struct_group() to initialize struct lpfc_cgn_info
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring fields. Add struct_group() to mark "stat" region of struct lpfc_cgn_info that should be initialized to zero, and refactor the "data" region memset() to wipe everything up to the cgn_stats region. Link: https://lore.kernel.org/r/20211208195957.1603092-1-keescook@chromium.org Reviewed-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions