[PATCH v1] ethdev: fix address sanitizer bug
Yuan, DukaiX
dukaix.yuan at intel.com
Fri Mar 17 04:06:55 CET 2023
> -----Original Message-----
> From: Ankur Dwivedi <adwivedi at marvell.com>
> Sent: 2023年3月16日 17:48
> To: dev at dpdk.org
> Cc: Yuan, DukaiX <dukaix.yuan at intel.com>; jerinj at marvell.com;
> thomas at monjalon.net; ferruh.yigit at amd.com;
> andrew.rybchenko at oktetlabs.ru; skori at marvell.com; Ankur Dwivedi
> <adwivedi at marvell.com>
> Subject: [PATCH v1] ethdev: fix address sanitizer bug
>
> With clang 10 compilation, the address sanitizer reports global buffer
> overflow issue. The issue is observed during trace point registration in
> rte_trace_point_emit_string, for strings in iterator structure.
> As a workaround for this clang issue, this patch removes the
> rte_trace_point_emit_string and instead adds rte_trace_point_emit_ptr to
> capture the iterator pointer.
>
> Bugzilla ID: 1184
> Fixes: 6679cf21d608 ("ethdev: add trace points")
>
> Signed-off-by: Ankur Dwivedi <adwivedi at marvell.com>
> ---
Tested-by: Dukai Yuan<dukaix.yuan at intel.com>
More information about the dev
mailing list