diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-07-06 13:21:43 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-07-27 17:34:31 +0000 |
| commit | fc14b7cb9f133572c6bbf48c72de59692bee7f31 (patch) | |
| tree | ffa286214724e8937e633acd1c4bd623e186256c /tools/debugscripts/gdbinit.kernel | |
| parent | 9ce4cdd7d2d3885a73e8940a1fd3913d493695dc (diff) | |
dtrace: Fix DOF section-specific validation
The entry size of the probe section is assumed to be at least
sizeof(dof_probe_t) by the loop further below.
enoff_sec->dofs_entsize was not being validated at all.
When multiplying an index by a table entry size, make sure the
multiplication can't overflow.
Fix an off-by-one when validating the translated probe argument array.
Make sure that the probe argument argvs are valid string offsets
even if the argument count is zero.
Reviewed by: christos
MFC after: 2 weeks
Sponsored by: CHERI Research Centre
Differential Revision: https://reviews.freebsd.org/D57979
(cherry picked from commit 7f5fa76367d78e47d483fdf2cc72e5823d0f7807)
Diffstat (limited to 'tools/debugscripts/gdbinit.kernel')
0 files changed, 0 insertions, 0 deletions
