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

Kris Van Hees noreply at github.com
Wed Jul 26 15:03:51 UTC 2023


  Branch: refs/heads/kvh/2.0-branch-dev-ip
  Home:   https://github.com/oracle/dtrace-utils
  Commit: f8bad1ea90ce06f31ac61c3dcd00d1305bb6f96f
      https://github.com/oracle/dtrace-utils/commit/f8bad1ea90ce06f31ac61c3dcd00d1305bb6f96f
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-12 (Wed, 12 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: e3529a57eadac6128c574546178d3d6f1dbdaa43
      https://github.com/oracle/dtrace-utils/commit/e3529a57eadac6128c574546178d3d6f1dbdaa43
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M bpf/inet_ntoa.S

  Log Message:
  -----------
  bpf: dt_inet_ntoa() should return the length of its result

The implementation of inet_ntoa6() and inet_ntop() is greatly helped if
dt_inet_ntoa() returns the number of characters in its result.  Thid
change is not visible to users.

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


  Commit: aabbba89f6c1d97d18054bf278aaf78d599074bc
      https://github.com/oracle/dtrace-utils/commit/aabbba89f6c1d97d18054bf278aaf78d599074bc
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-21 (Fri, 21 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: c1a199f872efd5acc00cfc265d0f784eb19ca358
      https://github.com/oracle/dtrace-utils/commit/c1a199f872efd5acc00cfc265d0f784eb19ca358
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-21 (Fri, 21 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: 99a5d676fff04b9fabd86cc89fed3e34fcabc22b
      https://github.com/oracle/dtrace-utils/commit/99a5d676fff04b9fabd86cc89fed3e34fcabc22b
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-22 (Sat, 22 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: 00e0567096db1a04cb6378c4616de155b31777fb
      https://github.com/oracle/dtrace-utils/commit/00e0567096db1a04cb6378c4616de155b31777fb
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M bpf/Build
    A bpf/inet_ntoa6.S
    M include/port.h
    M libdtrace/dt_cc.c
    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: c8e8c0a35c773aad3aa1179efcb2b41e2dc2dff2
      https://github.com/oracle/dtrace-utils/commit/c8e8c0a35c773aad3aa1179efcb2b41e2dc2dff2
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-07-26 (Wed, 26 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/f8bad1ea90ce%5E...c8e8c0a35c77



More information about the DTrace-devel mailing list