[Bug 219451] [dtrace] Certain llquantize() parameters trigger assertion

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 21 21:04:53 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219451

--- Comment #2 from Mark Johnston <markj at FreeBSD.org> ---
It seems the real issue here is an overflow when computing 100^10? 9 is the
largest power of 100 that fits in a 64-bit int.

There's a check that's supposed to catch this. Indeed, it does if we change the
upper power from 10 to 11:

git (dev/vm-init) markj at wkstn-mjohnston> sudo dtrace -n 'syscall:::return
{@[execname] = llquantize(arg0, 100, 0, 11, 100);} tick-1s {exit(0);}'
dtrace: invalid probe specifier syscall:::return {@[execname] =
llquantize(arg0, 100, 0, 11, 100);} tick-1s {exit(0);}: llquantize( ) factor
(100) raised to power of high magnitude (11) overflows 64-bits

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-dtrace mailing list