Page MenuHomeFreeBSD

dtrace: Fix DOF section-specific validation
ClosedPublic

Authored by markj on Tue, Jun 30, 9:15 PM.
Tags
None
Referenced Files
F162319144: D57979.id181354.diff
Sun, Jul 12, 12:39 AM
F162291206: D57979.id181354.diff
Sat, Jul 11, 6:26 PM
F162290587: D57979.id181354.diff
Sat, Jul 11, 6:19 PM
Unknown Object (File)
Sat, Jul 11, 1:33 AM
Unknown Object (File)
Fri, Jul 10, 5:51 AM
Unknown Object (File)
Thu, Jul 9, 6:43 PM
Unknown Object (File)
Thu, Jul 9, 6:35 PM
Unknown Object (File)
Wed, Jul 8, 12:06 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable