Commit Graph
1186 Commits
Author SHA1 Message Date
M. Mert Yildiran f0f357af8c Call should_tap in Golang uprobes 2022-06-02 08:24:50 +03:00
M. Mert Yildiran 6e88922f14 Rename socket struct to golang_socket 2022-06-02 08:17:53 +03:00
M. Mert Yildiran 14107d7169 Add a tracepoint for sys_enter_close to detect socket closes 2022-06-02 08:14:49 +03:00
M. Mert Yildiran b27080d448 Close the reader when we drop the connection 2022-06-02 06:32:51 +03:00
M. Mert Yildiran 97ce9d71c1 Don't export any fields of golangConnection 2022-06-02 06:23:12 +03:00
M. Mert Yildiran f26511df14 Set the reader field of tlsStream to fix a nil pointer dereference error 2022-06-02 06:21:23 +03:00
M. Mert Yildiran 8574af7fa8 Update golang_crypto_tls_read_uprobe 2022-06-02 06:15:59 +03:00
M. Mert Yildiran 56c051aac8 Revert "Temporarily disable the PCAP capture"
This reverts commit a2da15ef2d.
2022-06-02 06:10:58 +03:00
M. Mert Yildiran 63e3d16d21 Remove a TODO 2022-06-02 06:09:32 +03:00
M. Mert Yildiran 3f4e03d381 Set all buffer sizes to CHUNK_SIZE 2022-06-02 05:19:36 +03:00
M. Mert Yildiran 3e7d08bf2c Get the correct len of bytes (saw the second entry) 2022-06-02 04:34:36 +03:00
M. Mert Yildiran a27d235e5a Use constant read length 2022-06-02 04:31:49 +03:00
M. Mert Yildiran fa0e9f8fa9 Read constant 4KiB 2022-06-02 04:18:54 +03:00
M. Mert Yildiran ed15332a0b Remove golang_net_http_gzipreader_read_uprobe 2022-06-02 03:23:11 +03:00
M. Mert Yildiran c55f43bbd1 Revert "Compress if it's gzip chunk (probably wrong!)"
This reverts commit 094a7c3da4.
2022-06-02 03:12:04 +03:00
M. Mert Yildiran 094a7c3da4 Compress if it's gzip chunk (probably wrong!) 2022-06-02 03:11:42 +03:00
M. Mert Yildiran 308d3cfd87 Fix the key_gzip offsets 2022-06-02 01:48:09 +03:00
M. Mert Yildiran 9868a7723a Remove two TODOs 2022-06-02 01:23:45 +03:00
M. Mert Yildiran 9f6188a4cb Set len and cap in golang_net_http_gzipreader_read_uprobe as well 2022-06-02 01:10:02 +03:00
M. Mert Yildiran f80556d21c Bring back len and cap fields 2022-06-02 00:28:42 +03:00
M. Mert Yildiran 04935b21aa Revert "NULL terminate the bytes with unix.ByteSliceToString"
This reverts commit 7ee7ef7e44.
2022-06-02 00:15:28 +03:00
M. Mert Yildiran 5256902e9d Add malformed TODOs 2022-06-01 17:40:21 +03:00
M. Mert Yildiran 94dba8bc64 Temporarily reject the gzip chunks 2022-06-01 17:40:10 +03:00
M. Mert Yildiran 7ee7ef7e44 NULL terminate the bytes with unix.ByteSliceToString 2022-06-01 17:39:37 +03:00
M. Mert Yildiran 4e8d760a12 Add MIZU_GLOBAL_GOLANG_PATH environment variable 2022-06-01 17:30:29 +03:00
M. Mert Yildiran b6b269eb19 Have a single counter pair and request response matcher per Golang connection 2022-06-01 17:16:21 +03:00
M. Mert Yildiran 52c4b18a9d Add golangReader struct and implement its Read method 2022-06-01 15:27:54 +03:00
M. Mert Yildiran 68dec6cbbc Fix the probed line number links 2022-06-01 14:58:39 +03:00
M. Mert Yildiran c7d40d1caf Pass the connection address from write to gzip through a common address between gzip and dial 2022-06-01 14:57:16 +03:00
M. Mert Yildiran 76bee7a9df Make hash map names more meaningful 2022-06-01 14:36:03 +03:00
M. Mert Yildiran 3b332d2a9a Cancel golang_crypto_tls_read_uprobe if it's a gzip read 2022-06-01 14:34:25 +03:00
M. Mert Yildiran 9fc8e0eb50 Add a uprobe for net/http.(*gzipReader).Read to read chunked HTTP response body 2022-06-01 14:32:24 +03:00
M. Mert Yildiran a2da15ef2d Temporarily disable the PCAP capture 2022-06-01 14:25:23 +03:00
M. Mert Yildiran e453947b12 Fix the read data address one more time 2022-05-31 15:23:11 +03:00
M. Mert Yildiran 9314126fb6 Make golang_dial_writes key __u64 and include the PID 2022-05-31 15:20:38 +03:00
M. Mert Yildiran 0e5571e156 Fix the read data address 2022-05-31 15:12:37 +03:00
M. Mert Yildiran e9abe14ff5 Fix the indent 2022-05-31 00:54:05 +03:00
M. Mert Yildiran af40e814a4 Remove len and cap fields 2022-05-31 00:50:47 +03:00
M. Mert Yildiran fbdbe1a9f1 Change the read symbol from net/http.(*persistConn).Read to crypto/tls.(*Conn).Read 2022-05-31 00:49:57 +03:00
M. Mert Yildiran 3b27c5c704 Fix the mixed offsets and dissection preparation 2022-05-31 00:10:32 +03:00
M. Mert Yildiran f54d9a453f Temporarily disable OpenSSL 2022-05-30 23:29:13 +03:00
M. Mert Yildiran efc81b9baf Fix exe path finding 2022-05-30 23:27:19 +03:00
M. Mert Yildiran fcb7663b99 Replace Libssl occurrences with Ssllib for consistency 2022-05-30 22:34:01 +03:00
M. Mert Yildiran e0a7a04543 Add an environment variable to test Golang locally 2022-05-30 22:32:14 +03:00
M. Mert Yildiran be1a572f35 Remove unused parameter 2022-05-30 22:27:39 +03:00
M. Mert Yildiran 4111f0f58c Move map related stuff to maps.h and run go generate tls_tapper.go 2022-05-30 19:37:03 +03:00
M. Mert Yildiran 81a1f50d2c Fix the linter error 2022-05-30 19:22:22 +03:00
M. Mert Yildiran eccd042d69 Upgrade github.com/cilium/ebpf version to v0.8.1 2022-05-30 19:20:46 +03:00
M. Mert Yildiran b91ad2c76c Add golangConnection struct and implement pollGolangReadWrite method 2022-05-30 19:10:16 +03:00
M. Mert Yildiran 2dc40d5976 Add Golang hooks and offsets 2022-05-30 17:07:29 +03:00