diff options
| author | Dan Williams <djbw@kernel.org> | 2026-05-20 01:12:04 +0300 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-06-04 18:44:00 +0300 |
| commit | 08326b92c7a414a73b5b308d1daf0e91e0134dfc (patch) | |
| tree | e64afb7172069f5e2da5a1ef7c77fc6b87883825 /include/linux/timerqueue.h | |
| parent | 6c9d2e87df40d606f1c85143e9acb1ecff463d5e (diff) | |
| download | linux-08326b92c7a414a73b5b308d1daf0e91e0134dfc.tar.xz | |
cxl/test: Fix __fortify_panic
Fix a runtime assertion in setup_xor_mapping(). Fortify complains that it
is potentially overflowing the xormaps array per __counted_by(nr_maps).
Quiet the false positive by initializing @nr_maps earlier.
memcpy: detected buffer overflow: 32 byte write of buffer size 0
WARNING: lib/string_helpers.c:1036 at __fortify_report+0x4d/0xa0, CPU#8: modprobe/2728
Call Trace:
__fortify_panic+0xd/0xf
setup_xor_mapping+0x6c/0xa0 [cxl_translate]
[ dj: Fixed up @nr_entries to @nr_maps in commit log. ]
Fixes: 06377c54a133 ("cxl/test: Add cxl_translate module for address translation testing")
Signed-off-by: Dan Williams <djbw@kernel.org>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260519221204.1517773-3-djbw@kernel.org
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
