[DTrace-devel] [oracle/dtrace-utils] 523407: stapsdt: fix out-of-bounds access when provider na...

Kris Van Hees noreply at github.com
Wed Sep 17 01:26:48 UTC 2025


  Branch: refs/heads/dev-queue
  Home:   https://github.com/oracle/dtrace-utils
  Commit: 523407e29261feeb2f47f99af78ec4a1d2435fda
      https://github.com/oracle/dtrace-utils/commit/523407e29261feeb2f47f99af78ec4a1d2435fda
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    M libdtrace/dt_pid.c

  Log Message:
  -----------
  stapsdt: fix out-of-bounds access when provider name is not specified

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>


  Commit: fe1f1cd05abe77266b1754c8c8f57ef69216eb9d
      https://github.com/oracle/dtrace-utils/commit/fe1f1cd05abe77266b1754c8c8f57ef69216eb9d
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    M libdtrace/dt_cg.c
    M libdtrace/dt_printf.c

  Log Message:
  -----------
  printf: fake type node is only needed for aggregation printing

Regular printf validation was passing DTRACEACT_AGGREGATION as kind
argument, even though the action was not doing anything with
aggregations.  Pass DTRACEACT_NONE instead because the argument is not
used in that case.

Also, do not populate the fake type node if the validation is called
for anything other than aggregations.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>


  Commit: 13a8428d31f4a066cebe26e9864f6d2110760176
      https://github.com/oracle/dtrace-utils/commit/13a8428d31f4a066cebe26e9864f6d2110760176
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    M libdtrace/dt_parser.c
    A test/unittest/funcs/alloca/tst.alloca-arith.d
    M test/unittest/funcs/alloca/tst.alloca-funcs.d
    M test/unittest/funcs/alloca/tst.alloca-funcs.r

  Log Message:
  -----------
  alloca: fix subtraction of two alloca pointers

The subtraction of two alloca pointers should not be receiving the
ALLOCA taint because it is an integer value (of type ptrdiff_t).

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>


  Commit: 394fb55a75c6de9e7c74282eb8f6dca314fa73a3
      https://github.com/oracle/dtrace-utils/commit/394fb55a75c6de9e7c74282eb8f6dca314fa73a3
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    M libdtrace/dt_cg.c
    A test/unittest/actions/trace/tst.alloca.d
    A test/unittest/actions/trace/tst.alloca.r
    A test/unittest/actions/trace/tst.alloca.r.p

  Log Message:
  -----------
  trace: print alloca pointers as actual pointer values

Because alloca pointers are stored internally as offsets into the
scratchmem area, they were printed as small integers.  They are
now printed as actual pointer values into kernel space.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>


Compare: https://github.com/oracle/dtrace-utils/compare/d39385d2ce42...394fb55a75c6

To unsubscribe from these emails, change your notification settings at https://github.com/oracle/dtrace-utils/settings/notifications



More information about the DTrace-devel mailing list