Skip to content

以明文形式捕获 tls 内容时部分信息展示不正确 #609

Closed
@xxxxxliil

Description

@xxxxxliil

Describe the bug
使用 ecapture 捕获时,日志展示夸张的 FD 和不能获得的访问地址
且在 /sys/kernel/debug/tracing/trace_pipe 中发现以下内容:

            curl-204590  [000] ...11 175870.494020: bpf_trace_printk: openssl uprobe/SSL_write pid :204590

            curl-204590  [000] ...11 175870.494022: bpf_trace_printk: openssl uprobe SSL_write FD:811562928, version:0

            curl-204590  [000] ...11 175870.495026: bpf_trace_printk: openssl uretprobe/SSL_write pid :204590

            curl-204590  [000] ...11 175870.495113: bpf_trace_printk: openssl uprobe/SSL_write pid :204590

            curl-204590  [000] ...11 175870.495116: bpf_trace_printk: openssl uprobe SSL_write FD:811562928, version:0

            curl-204590  [000] ...11 175870.495191: bpf_trace_printk: openssl uretprobe/SSL_write pid :204590

            curl-204590  [000] ...11 175870.710355: bpf_trace_printk: openssl uprobe/SSL_read pid :204590

            curl-204590  [000] ...11 175870.710365: bpf_trace_printk: openssl uprobe PID:204590, SSL_read FD:811562928

To Reproduce
Steps to reproduce the behavior:

  1. build ebpf-tc-uid-filter branch
  2. # ecapture --debug tls
  3. $ curl -L 1.1.1.1/cdn-cgi/trace
  4. See error

Expected behavior
显示正确的 fd 和正确的地址

Screenshots
image

Linux Server/Android (please complete the following information):

  • Env: [run make env to get the environment variables]
  • OS: arch
  • Arch: amd64
  • Kernel Version: 6.10.6-zen1-1-zen
  • Version: linux_amd64:0.8.5-20240825-a0b5f1d:6.10.6-zen1-1-zen

Additional context
每个程序的每个实例都有独立且固定的错误 fd

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions