[DTrace-devel] [oracle/dtrace-utils] 6d8754: cg: fix ALLOCA taint propagation for struct/union ...

Kris Van Hees noreply at github.com
Thu Jul 27 06:14:37 UTC 2023


  Branch: refs/heads/kvh/2.0-branch-dev-ip
  Home:   https://github.com/oracle/dtrace-utils
  Commit: 6d875457369252849856678a63bb34c029b2db5c
      https://github.com/oracle/dtrace-utils/commit/6d875457369252849856678a63bb34c029b2db5c
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M libdtrace/dt_parser.c
    A test/unittest/codegen/tst.alloca-taint-sou-access.d

  Log Message:
  -----------
  cg: fix ALLOCA taint propagation for struct/union member access

When alloca'd memory stores a struct or union, lvalues that represent
members in that struct or union should also be marked as pointers to
alloca'd memory.

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


  Commit: 3c05088f8b64008b2091b603e447dccc1f7cc779
      https://github.com/oracle/dtrace-utils/commit/3c05088f8b64008b2091b603e447dccc1f7cc779
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M bpf/basename.S
    M bpf/dirname.S
    M bpf/inet_ntoa.S
    M bpf/lltostr.S
    M libdtrace/dt_cg.c

  Log Message:
  -----------
  cg, bpf: Pass dctx as first arg in arg-to-tstring subroutines

Passing a pointer to the DTrace context (dctx) enables subroutines
called through arg-to-tstring to report faults if necessary.  It also
gives the implementation of these subroutines access to context data.
(None use that as of yet, but e.g. inet_ntoa6() is expected to need
it.)

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: a61894aa762b44487d572b61b5f7da4742ceb5a2
      https://github.com/oracle/dtrace-utils/commit/a61894aa762b44487d572b61b5f7da4742ceb5a2
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M libdtrace/dt_strtab.c
    M libdtrace/dt_strtab.h

  Log Message:
  -----------
  strtab: make internal structures private

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: dae1b9ee7d9dd33e5d78cf56598cefeb03f42334
      https://github.com/oracle/dtrace-utils/commit/dae1b9ee7d9dd33e5d78cf56598cefeb03f42334
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M libdtrace/Build
    M libdtrace/dt_bpf.c
    M libdtrace/dt_bpf.h
    M libdtrace/dt_cc.c
    M libdtrace/dt_cg.c
    M libdtrace/dt_dctx.h
    M libdtrace/dt_dlibs.c
    M libdtrace/dt_impl.h
    M libdtrace/dt_open.c
    A libdtrace/dt_rodata.c
    A libdtrace/dt_rodata.h
    M libdtrace/dt_subr.c

  Log Message:
  -----------
  Add rodata support

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: 6d246ceb834501f2085264a3eed12ceb0c449ce6
      https://github.com/oracle/dtrace-utils/commit/6d246ceb834501f2085264a3eed12ceb0c449ce6
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M include/port.h
    M libdtrace/dt_cc.c

  Log Message:
  -----------
  Add support for R_BPF_INSN_32 relocations

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: 4bc9fee213be0a76a08d6214c4f5539df2acbc86
      https://github.com/oracle/dtrace-utils/commit/4bc9fee213be0a76a08d6214c4f5539df2acbc86
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M libdtrace/dt_cg.c

  Log Message:
  -----------
  cg: optional 4th arg for dt_cg_subr_arg_to_tstring() calls

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: 52aa48de72d7fa4f0bcedb2c2d6b8419a480cd42
      https://github.com/oracle/dtrace-utils/commit/52aa48de72d7fa4f0bcedb2c2d6b8419a480cd42
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M libdtrace/dt_cg.c

  Log Message:
  -----------
  cg: allow input to translator to be NULL

Some translators support NULL as input pointer value.  The code generator
was performing a NULL-check on a the LHS of a PTR or DOT node before
considering the possibility that the nodemis subject to translator
handling.  The check should happen after translator handling.

Testing this requires a probe that uses a translater argument based on a
translator that support a NULL input.  The first case of that will show
up with the ip provider - testing for this will be added at that time.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: 37ea121d3e10b2f0377afe65119486d0f201f14c
      https://github.com/oracle/dtrace-utils/commit/37ea121d3e10b2f0377afe65119486d0f201f14c
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M bpf/Build
    A bpf/inet_ntoa6.S
    M libdtrace/dt_cg.c
    M test/unittest/funcs/tst.inet_ntoa6.d

  Log Message:
  -----------
  Add support for inet_ntoa6() subroutine

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: c072f13136cb54c00b8e458380e2b78867570a82
      https://github.com/oracle/dtrace-utils/commit/c072f13136cb54c00b8e458380e2b78867570a82
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M libdtrace/Build
    M libdtrace/dt_open.c
    A libdtrace/dt_prov_ip.c
    M libdtrace/dt_provider.h
    M libdtrace/ip.d
    M test/unittest/funcs/tst.inet_ntoa.d

  Log Message:
  -----------
  Implement the ip provider

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


Compare: https://github.com/oracle/dtrace-utils/compare/408f29c24b3a...c072f13136cb



More information about the DTrace-devel mailing list