diff --git a/tap/tlstapper/bpf/golang_uprobes.c b/tap/tlstapper/bpf/golang_uprobes.c index 079449029..12bfd6eb7 100644 --- a/tap/tlstapper/bpf/golang_uprobes.c +++ b/tap/tlstapper/bpf/golang_uprobes.c @@ -17,8 +17,6 @@ struct golang_read_write { __u32 fd; __u32 conn_addr; bool is_request; - __u32 len; - __u32 cap; __u8 data[BUFFER_SIZE_READ_WRITE]; }; @@ -54,8 +52,6 @@ static __always_inline int golang_crypto_tls_write_uprobe(struct pt_regs *ctx) { // ctx->rsi is common between golang_crypto_tls_write_uprobe and golang_crypto_tls_read_uprobe b->conn_addr = ctx->rsi; // go.itab.*net.TCPConn,net.Conn address b->is_request = true; - b->len = ctx->rcx; - b->cap = ctx->rdi; status = bpf_probe_read_str(&b->data, sizeof(b->data), (void*)ctx->rbx); if (status < 0) { @@ -82,8 +78,6 @@ static __always_inline int golang_crypto_tls_read_uprobe(struct pt_regs *ctx) { // ctx->rsi is common between golang_crypto_tls_write_uprobe and golang_crypto_tls_read_uprobe b->conn_addr = ctx->rsi; // go.itab.*net.TCPConn,net.Conn address b->is_request = false; - b->len = ctx->rax; - b->cap = ctx->r10; // Address at ctx->rbx - 0x2bf holds the data __u32 status = bpf_probe_read_str(&b->data, sizeof(b->data), (void*)(ctx->rbx - 0x2bf)); diff --git a/tap/tlstapper/tlstapper_bpfeb.go b/tap/tlstapper/tlstapper_bpfeb.go index bd214cc5e..7f2111e7f 100644 --- a/tap/tlstapper/tlstapper_bpfeb.go +++ b/tap/tlstapper/tlstapper_bpfeb.go @@ -18,10 +18,8 @@ type tlsTapperGolangReadWrite struct { Fd uint32 ConnAddr uint32 IsRequest bool - _ [3]byte - Len uint32 - Cap uint32 Data [524288]uint8 + _ [3]byte } type tlsTapperTlsChunk struct { diff --git a/tap/tlstapper/tlstapper_bpfeb.o b/tap/tlstapper/tlstapper_bpfeb.o index 70d3f7719..89aeec42e 100644 Binary files a/tap/tlstapper/tlstapper_bpfeb.o and b/tap/tlstapper/tlstapper_bpfeb.o differ diff --git a/tap/tlstapper/tlstapper_bpfel.go b/tap/tlstapper/tlstapper_bpfel.go index bb330bf43..cca712374 100644 --- a/tap/tlstapper/tlstapper_bpfel.go +++ b/tap/tlstapper/tlstapper_bpfel.go @@ -18,10 +18,8 @@ type tlsTapperGolangReadWrite struct { Fd uint32 ConnAddr uint32 IsRequest bool - _ [3]byte - Len uint32 - Cap uint32 Data [524288]uint8 + _ [3]byte } type tlsTapperTlsChunk struct { diff --git a/tap/tlstapper/tlstapper_bpfel.o b/tap/tlstapper/tlstapper_bpfel.o index addcbcaf9..fcfd17fde 100644 Binary files a/tap/tlstapper/tlstapper_bpfel.o and b/tap/tlstapper/tlstapper_bpfel.o differ