GeezerVison is showing github.com — Add support for tracing tls traffic from finagle (netty based) services by ddelnano · Pull Request #569 · pixie-io/pixie
Conversation
ddelnano
commented
Aug 17, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR will complete the initial support of #407 and is a refresh of an earlier proof of concept change (#463).
The goal is to provide an extensible way for supporting other boringssl based tracing targets if the target binary supports the following:
This won't work for envoy's case, but the hope is that this is more similar to Pixie's dynamic openssl tracing while envoy is more similar to nodejs (requiring additional application specific integration).
Testing
New test verifies that TLS tracing is successful (output below)
vagrant@vagrant:/vagrant$ ./scripts/sudo_bazel_run.sh -c dbg src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test
INFO: Analyzed target //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test (2 packages loaded, 329 targets configured).
INFO: Found 1 target...
Target //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test up-to-date:
bazel-bin/src/stirling/source_connectors/socket_tracer/thriftmux_openssl_trace_bpf_test
INFO: Elapsed time: 23.604s, Critical Path: 12.10s
INFO: 3 processes: 1 internal, 2 linux-sandbox.
INFO: Build completed successfully, 3 total actions
INFO: Build completed successfully, 3 total actions
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test
-----------------------------------------------------------------------------
I20220817 06:45:16.290016 243447 env.cc:47] Started: src/stirling/source_connectors/socket_tracer/thriftmux_openssl_trace_bpf_test
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from OpenSSLTraceRawFptrsTest/0, where TypeParam = px::stirling::ThriftMuxServerContainerWrapper
[ RUN ] OpenSSLTraceRawFptrsTest/0.mtls_thriftmux_client
I20220817 06:45:17.457741 243447 container_runner.cc:43] Loaded image: bazel/src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:server_image
I20220817 06:45:17.457787 243447 container_runner.cc:121] docker run --rm --pid=host --name=thriftmux_server_445962533992195 bazel/src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:server_image --use-tls true
Error: No such object: thriftmux_server_445962533992195
I20220817 06:45:17.615180 243447 container_runner.cc:160] Container thriftmux_server_445962533992195 status:
I20220817 06:45:17.615226 243447 container_runner.cc:169] Container thriftmux_server_445962533992195 not yet running, will try again (60 attempts remaining).
I20220817 06:45:18.659492 243447 container_runner.cc:160] Container thriftmux_server_445962533992195 status: running
I20220817 06:45:18.730299 243447 container_runner.cc:191] Container thriftmux_server_445962533992195 process PID: 243532
I20220817 06:45:18.730358 243447 container_runner.cc:193] Container thriftmux_server_445962533992195 waiting for log message: Finagle version
I20220817 06:45:18.810045 243447 container_runner.cc:205] Container thriftmux_server_445962533992195 status: running
I20220817 06:45:18.810093 243447 container_runner.cc:218] Container thriftmux_server_445962533992195 not in ready state, will try again (59 attempts remaining).
I20220817 06:45:19.842669 243447 container_runner.cc:205] Container thriftmux_server_445962533992195 status: running
I20220817 06:45:19.842713 243447 container_runner.cc:241] Container thriftmux_server_445962533992195 is ready.
Warning: use -cacerts option to access cacerts keystore
Certificate was added to keystore
I20220817 06:45:20.214411 243447 thriftmux_openssl_trace_bpf_test.cc:102] keytool -importcert command output: ''
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/app/maven/v1/https/repo1.maven.org/maven2/com/twitter/util-jvm_2.13/22.7.0/util-jvm_2.13-22.7.0.jar) to field sun.management.ManagementFactoryHelper.jvm
WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Aug 17, 2022 6:45:21 AM com.twitter.finagle.Init$ $anonfun$once$1
INFO: Finagle version 22.7.0 (rev=4d10525ef4fe89732bcfec6286fac7fe426e9082) built at 20220728-183850
Aug 17, 2022 6:45:21 AM com.twitter.finagle.FixedInetResolver$ factory$lzycompute
INFO: Successfully loaded a fixed inet resolver: com.twitter.finagle.netty4.FixedNetty4InetResolver$Factory@470a659f
Aug 17, 2022 6:45:21 AM com.twitter.finagle.BaseResolver inetResolver$lzycompute
INFO: Using default inet resolver
Aug 17, 2022 6:45:21 AM com.twitter.finagle.InetResolver$ factory$lzycompute
INFO: Successfully loaded an inet resolver: com.twitter.finagle.netty4.Netty4InetResolver$Factory@5ac6c4f2
Aug 17, 2022 6:45:21 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[inet] = com.twitter.finagle.InetResolver(com.twitter.finagle.InetResolver@5fbdc49b)
Aug 17, 2022 6:45:21 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fixedinet] = com.twitter.finagle.FixedInetResolver(com.twitter.finagle.FixedInetResolver@65753040)
Aug 17, 2022 6:45:21 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[neg] = com.twitter.finagle.NegResolver$(com.twitter.finagle.NegResolver$@2954b5ea)
Aug 17, 2022 6:45:21 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[nil] = com.twitter.finagle.NilResolver$(com.twitter.finagle.NilResolver$@4acb2510)
Aug 17, 2022 6:45:21 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fail] = com.twitter.finagle.FailResolver$(com.twitter.finagle.FailResolver$@7be3a9ce)
I20220817 06:45:23.707464 243447 thriftmux_openssl_trace_bpf_test.cc:109] thriftmux client command output: '243649
06:45:21.059 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
06:45:21.062 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
06:45:21.062 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
06:45:21.075 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
06:45:21.075 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 11
06:45:21.076 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
06:45:21.077 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
06:45:21.077 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
06:45:21.078 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
06:45:21.078 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
06:45:21.079 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
06:45:21.080 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @4f49f6af
06:45:21.080 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): unavailable
06:45:21.081 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
06:45:21.081 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 2084569088 bytes (maybe)
06:45:21.082 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
06:45:21.082 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
06:45:21.083 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
06:45:21.083 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
06:45:21.084 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
06:45:21.084 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
06:45:21.086 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
06:45:21.086 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
06:45:21.086 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
06:45:21.087 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 7
06:45:21.087 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 1048576
06:45:21.087 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
06:45:21.087 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
06:45:21.087 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
06:45:21.087 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
06:45:21.088 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
06:45:21.088 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
06:45:21.088 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
06:45:21.091 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
06:45:21.092 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
06:45:21.107 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir)
06:45:21.107 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true
06:45:21.107 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true
06:45:21.107 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true
06:45:21.137 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_transport_native_epoll_x86_648940572427438364515.so
06:45:21.140 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
06:45:21.141 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
06:45:21.142 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 127.0.0.1)
06:45:21.143 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096
06:45:21.647 [main] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5c20aab9
06:45:21.653 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
06:45:22.024 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
06:45:22.081 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 243667 (auto-detected)
06:45:22.083 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:42:ac:ff:fe:11:00:02 (auto-detected)
06:45:22.096 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
06:45:22.097 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
06:45:22.097 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
06:45:22.156 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_tcnative_linux_x86_6413878350725438279019.so
06:45:22.157 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Loaded library with name 'netty_tcnative_linux_x86_64'
06:45:22.157 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Initialize netty-tcnative using engine: 'default'
06:45:22.158 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - netty-tcnative using native library: BoringSSL
06:45:22.256 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
06:45:22.256 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
06:45:22.256 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@402ada0e
06:45:22.272 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@3ba1ffe8
06:45:22.276 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: disabled
06:45:22.276 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: disabled
06:45:22.277 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: disabled
06:45:22.277 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: disabled
06:45:22.287 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:45:22.287 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:45:22.288 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:45:22.288 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:45:22.288 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:45:22.288 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:45:22.288 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:45:22.288 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:45:22.289 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:45:22.289 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:45:22.289 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:45:22.289 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:45:22.290 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:45:22.291 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:45:22.291 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:45:22.291 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:45:22.291 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:45:22.291 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:45:22.292 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:45:22.292 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:45:22.292 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:45:22.293 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:45:22.293 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:45:22.293 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:45:22.293 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:45:22.293 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:45:22.294 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:45:22.294 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:45:22.294 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:45:22.294 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:45:22.295 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:45:22.295 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:45:22.295 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:45:22.295 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:45:22.295 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:45:22.295 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:45:22.296 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:45:22.296 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:45:22.296 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:45:22.296 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:45:22.297 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Supported protocols (OpenSSL): [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3]
06:45:22.297 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Default cipher suites (OpenSSL): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256]
06:45:22.419 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@11d430c2
06:45:22.466 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@72538187
06:45:23.158 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x1b74c3b0, L:/127.0.0.1:55396 - R:localhost/127.0.0.1:8080] HANDSHAKEN: protocol:TLSv1.3 cipher suite:TLS_AES_128_GCM_SHA256
StringString
'
I20220817 06:45:23.707774 243447 thriftmux_openssl_trace_bpf_test.cc:118] Client PID: 243649
I20220817 06:45:24.708307 243447 source_connector.cc:36] Initializing source connector: socket_trace_connector
I20220817 06:45:24.708359 243447 linux_headers.cc:209] Found Linux kernel version using .note section.
I20220817 06:45:24.708366 243447 linux_headers.cc:90] Obtained Linux version string from `uname`: 5.15.0-30-generic
I20220817 06:45:24.708372 243447 linux_headers.cc:599] Detected kernel release (uname -r): 5.15.0-30-generic
I20220817 06:45:24.708408 243447 bcc_wrapper.cc:120] Using linux headers found at /lib/modules/5.15.0-30-generic/build for BCC runtime.
warning: ./src/stirling/source_connectors/socket_tracer/bcc_bpf/grpc_c_trace.c:652:3: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
I20220817 06:45:41.949194 243447 socket_trace_connector.cc:404] Number of kprobes deployed = 40
I20220817 06:45:41.949318 243447 socket_trace_connector.cc:405] Probes successfully deployed.
I20220817 06:45:41.949431 243447 socket_trace_connector.cc:340] Initializing perf buffers with ncpus=2 and scaling_factor=0.9
I20220817 06:45:41.950176 243447 socket_trace_connector.cc:329] Total perf buffer usage for kData buffers across all cpus: 188743680
I20220817 06:45:41.950258 243447 socket_trace_connector.cc:329] Total perf buffer usage for kControl buffers across all cpus: 3963614
I20220817 06:45:41.950860 243447 bcc_wrapper.cc:345] Opening perf buffer: socket_data_events [requested_size=18874368 num_pages=8192 size=33554432] (per cpu)
I20220817 06:45:41.956878 243447 bcc_wrapper.cc:345] Opening perf buffer: socket_control_events [requested_size=943718 num_pages=256 size=1048576] (per cpu)
I20220817 06:45:41.957451 243447 bcc_wrapper.cc:345] Opening perf buffer: conn_stats_events [requested_size=943718 num_pages=256 size=1048576] (per cpu)
I20220817 06:45:41.957908 243447 bcc_wrapper.cc:345] Opening perf buffer: mmap_events [requested_size=94371 num_pages=32 size=131072] (per cpu)
I20220817 06:45:41.958210 243447 bcc_wrapper.cc:345] Opening perf buffer: go_grpc_events [requested_size=18874368 num_pages=8192 size=33554432] (per cpu)
I20220817 06:45:41.962934 243447 bcc_wrapper.cc:345] Opening perf buffer: grpc_c_events [requested_size=18874368 num_pages=8192 size=33554432] (per cpu)
I20220817 06:45:41.968755 243447 bcc_wrapper.cc:345] Opening perf buffer: grpc_c_header_events [requested_size=18874368 num_pages=8192 size=33554432] (per cpu)
I20220817 06:45:41.974740 243447 bcc_wrapper.cc:345] Opening perf buffer: grpc_c_close_events [requested_size=18874368 num_pages=8192 size=33554432] (per cpu)
I20220817 06:45:41.981499 243447 socket_trace_connector.cc:409] Number of perf buffers opened = 8
W20220817 06:45:42.051280 243702 uprobe_symaddrs.cc:620] Unable to find openssl symbol 'OpenSSL_version_num' using dlopen/dlsym. Attempting to find address manually for pid 243532
I20220817 06:45:42.916184 243702 uprobe_manager.cc:755] Number of uprobes deployed = 5
Warning: use -cacerts option to access cacerts keystore
I20220817 06:45:43.465761 243447 thriftmux_openssl_trace_bpf_test.cc:102] keytool -importcert command output: 'keytool error: java.lang.Exception: Certificate not imported, alias <mykey> already exists
'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/app/maven/v1/https/repo1.maven.org/maven2/com/twitter/util-jvm_2.13/22.7.0/util-jvm_2.13-22.7.0.jar) to field sun.management.ManagementFactoryHelper.jvm
WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Aug 17, 2022 6:45:44 AM com.twitter.finagle.Init$ $anonfun$once$1
INFO: Finagle version 22.7.0 (rev=4d10525ef4fe89732bcfec6286fac7fe426e9082) built at 20220728-183850
Aug 17, 2022 6:45:45 AM com.twitter.finagle.FixedInetResolver$ factory$lzycompute
INFO: Successfully loaded a fixed inet resolver: com.twitter.finagle.netty4.FixedNetty4InetResolver$Factory@213bd3d5
Aug 17, 2022 6:45:45 AM com.twitter.finagle.BaseResolver inetResolver$lzycompute
INFO: Using default inet resolver
Aug 17, 2022 6:45:45 AM com.twitter.finagle.InetResolver$ factory$lzycompute
INFO: Successfully loaded an inet resolver: com.twitter.finagle.netty4.Netty4InetResolver$Factory@3a230001
Aug 17, 2022 6:45:45 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[inet] = com.twitter.finagle.InetResolver(com.twitter.finagle.InetResolver@6ef1a1b9)
Aug 17, 2022 6:45:45 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fixedinet] = com.twitter.finagle.FixedInetResolver(com.twitter.finagle.FixedInetResolver@5fbdc49b)
Aug 17, 2022 6:45:45 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[neg] = com.twitter.finagle.NegResolver$(com.twitter.finagle.NegResolver$@65753040)
Aug 17, 2022 6:45:45 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[nil] = com.twitter.finagle.NilResolver$(com.twitter.finagle.NilResolver$@2954b5ea)
Aug 17, 2022 6:45:45 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fail] = com.twitter.finagle.FailResolver$(com.twitter.finagle.FailResolver$@4acb2510)
I20220817 06:45:45.885520 243703 conn_tracker.cc:461] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=-:-1 role=kRoleUnknown protocol=kProtocolUnknown ssl=false New connection tracker
I20220817 06:45:45.885609 243703 conn_tracker.cc:471] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleUnknown protocol=kProtocolUnknown ssl=false RemoteAddr updated 127.0.0.1, reason=[Inferred from conn_open.]
I20220817 06:45:45.885650 243703 conn_tracker.cc:491] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleUnknown protocol=kProtocolUnknown ssl=false Role updated kRoleUnknown -> kRoleServer, reason=[Inferred from conn_open.]]
I20220817 06:45:45.885674 243703 conn_tracker.cc:107] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolUnknown ssl=false conn_open: [type=kConnOpen ts=445990939788410 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] source_fn=kSyscallAccept [addr=[family=2 addr=127.0.0.1 port=26328]]]
I20220817 06:45:46.102075 243703 conn_tracker.cc:519] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=false Protocol changed: kProtocolUnknown->kProtocolMux, reason=[inferred from data_event]
I20220817 06:45:46.102159 243703 conn_tracker.cc:543] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true SSL state changed: false->true, reason=[inferred from data_event]
I20220817 06:45:46.102195 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991139087516 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kIngress ssl=true source_fn=kSSLRead pos=220 size=19 buf_size=19]] msg_size:19 msg:[\x00\x00\x00\x0F\x7F\x00\x00\x01tinit check]
I20220817 06:45:46.102247 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991139891730 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kEgress ssl=true source_fn=kSSLWrite pos=0 size=19 buf_size=19]] msg_size:19 msg:[\x00\x00\x00\x0F\x7F\x00\x00\x01tinit check]
I20220817 06:45:46.102296 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991143109532 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kIngress ssl=true source_fn=kSSLRead pos=239 size=46 buf_size=46]] msg_size:46 msg:[\x00\x00\x00*D\x00\x00\x01\x00\x01\x00\x00\x00\x0Amux-framer\x00\x00\x00\x04\x7F\xFF\xFF\xFF\x00\x00\x00\x03tls\x00\x00\x00\x03off]
I20220817 06:45:46.102355 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kCollecting remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991143560078 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kEgress ssl=true source_fn=kSSLWrite pos=19 size=46 buf_size=46]] msg_size:46 msg:[\x00\x00\x00*\xBC\x00\x00\x01\x00\x01\x00\x00\x00\x0Amux-framer\x00\x00\x00\x04\x7F\xFF\xFF\xFF\x00\x00\x00\x03tls\x00\x00\x00\x03off]
I20220817 06:45:46.102818 243703 conn_tracker.h:271] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true req_frames=2 resp_frames=2
I20220817 06:45:46.103344 243703 conn_tracker.h:278] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true records=2
I20220817 06:45:46.214886 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991198314214 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kIngress ssl=true source_fn=kSSLRead pos=285 size=8 buf_size=8]] msg_size:8 msg:[\x00\x00\x00\x04A\x00\x00\x01]
I20220817 06:45:46.215129 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991198705762 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kEgress ssl=true source_fn=kSSLWrite pos=65 size=8 buf_size=8]] msg_size:8 msg:[\x00\x00\x00\x04\xBF\x00\x00\x01]
I20220817 06:45:46.215293 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991206331970 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kIngress ssl=true source_fn=kSSLRead pos=293 size=204 buf_size=204]] msg_size:204 msg:[\x00\x00\x00\xC8\x02\x00\x00\x02\x00\x03\x00(com.twitter.finagle.tracing.TraceContext\x00 \xA9_\xE5\x18n\xF3\x86\xF8\xA9_\xE5\x18n\xF3\x86\xF8\xA9_\xE5\x18n\xF3\x86\xF8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1Bcom.twitter.finagle.Retries\x00\x04\x00\x00\x00\x00\x00\x1Ccom.twitter.finagle.Deadline\x00\x10\x17\x0C\x0E\xE6\x962\x0D\x80\x7F\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\x00\x00\x00\x80\x01\x00\x01\x00\x00\x00\x05query\x00\x00\x00\x00\x0B\x00\x01\x00\x00\x00\x06String\x00]
I20220817 06:45:46.215481 243703 conn_tracker.cc:150] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Data event: attr:[[ts=445991207463787 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] protocol=kProtocolMux role=kRoleServer dir=kEgress ssl=true source_fn=kSSLWrite pos=73 size=48 buf_size=48]] msg_size:48 msg:[\x00\x00\x00,\xFE\x00\x00\x02\x00\x00\x00\x80\x01\x00\x02\x00\x00\x00\x05query\x00\x00\x00\x00\x0B\x00\x00\x00\x00\x00\x0CStringString\x00]
I20220817 06:45:46.216001 243703 conn_tracker.h:271] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true req_frames=2 resp_frames=2
I20220817 06:45:46.216141 243703 conn_tracker.h:278] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true records=2
I20220817 06:45:46.334108 243703 conn_tracker.h:271] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true req_frames=0 resp_frames=0
I20220817 06:45:46.334323 243703 conn_tracker.h:278] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true records=0
I20220817 06:45:46.446976 243703 conn_tracker.h:271] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true req_frames=0 resp_frames=0
I20220817 06:45:46.447182 243703 conn_tracker.h:278] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true records=0
I20220817 06:45:46.516883 243447 thriftmux_openssl_trace_bpf_test.cc:109] thriftmux client command output: '243755
06:45:44.361 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
06:45:44.364 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
06:45:44.364 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
06:45:44.381 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
06:45:44.382 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 11
06:45:44.383 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
06:45:44.384 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
06:45:44.385 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
06:45:44.385 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
06:45:44.386 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
06:45:44.386 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
06:45:44.387 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @4f49f6af
06:45:44.388 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): unavailable
06:45:44.388 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
06:45:44.389 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 2084569088 bytes (maybe)
06:45:44.389 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
06:45:44.389 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
06:45:44.390 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
06:45:44.391 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
06:45:44.391 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
06:45:44.392 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
06:45:44.393 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
06:45:44.394 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
06:45:44.394 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
06:45:44.394 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 7
06:45:44.394 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 1048576
06:45:44.394 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
06:45:44.395 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
06:45:44.395 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
06:45:44.395 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
06:45:44.395 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
06:45:44.395 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
06:45:44.396 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
06:45:44.399 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
06:45:44.399 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
06:45:44.430 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir)
06:45:44.431 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true
06:45:44.431 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true
06:45:44.431 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true
06:45:44.445 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_transport_native_epoll_x86_6417257840684434158261.so
06:45:44.448 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
06:45:44.448 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
06:45:44.450 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 127.0.0.1)
06:45:44.451 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096
06:45:45.041 [main] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5c20aab9
06:45:45.047 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
06:45:45.427 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
06:45:45.481 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 243772 (auto-detected)
06:45:45.483 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:42:ac:ff:fe:11:00:02 (auto-detected)
06:45:45.497 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
06:45:45.497 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
06:45:45.497 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
06:45:45.551 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_tcnative_linux_x86_644027974589868220049.so
06:45:45.551 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Loaded library with name 'netty_tcnative_linux_x86_64'
06:45:45.552 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Initialize netty-tcnative using engine: 'default'
06:45:45.552 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - netty-tcnative using native library: BoringSSL
06:45:45.621 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
06:45:45.621 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
06:45:45.622 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@6c663826
06:45:45.637 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@34d6c055
06:45:45.641 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: disabled
06:45:45.641 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: disabled
06:45:45.641 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: disabled
06:45:45.641 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: disabled
06:45:45.651 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:45:45.651 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:45:45.651 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:45:45.651 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:45:45.651 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:45:45.652 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:45:45.653 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:45:45.654 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:45:45.655 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:45:45.656 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:45:45.656 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:45:45.656 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:45:45.656 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:45:45.656 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:45:45.656 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:45:45.657 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Supported protocols (OpenSSL): [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3]
06:45:45.657 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Default cipher suites (OpenSSL): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256]
06:45:45.797 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@7eb0d956
06:45:45.844 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@4cedc670
06:45:46.050 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0xeab700d9, L:/127.0.0.1:55398 - R:localhost/127.0.0.1:8080] HANDSHAKEN: protocol:TLSv1.3 cipher suite:TLS_AES_128_GCM_SHA256
StringString
'
I20220817 06:45:46.516991 243447 thriftmux_openssl_trace_bpf_test.cc:118] Client PID: 243755
I20220817 06:45:46.555589 243703 conn_tracker.cc:136] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true conn_close: [type=kConnClose ts=445991588344702 conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] source_fn=kSyscallClose [wr_bytes=121 rd_bytes=497]]
I20220817 06:45:46.555630 243703 conn_tracker.cc:593] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Marked for death, countdown=3
I20220817 06:45:46.555649 243703 conn_tracker.cc:195] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true ConnStats timestamp=445991588353438 wr=121 rd=497 close=2
I20220817 06:45:46.556063 243703 conn_tracker.h:271] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true req_frames=0 resp_frames=0
I20220817 06:45:46.556085 243703 conn_tracker.h:278] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true records=0
I20220817 06:45:46.556097 243703 conn_tracker.cc:793] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Death countdown=2
I20220817 06:45:46.671743 243703 conn_tracker.h:271] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true req_frames=0 resp_frames=0
I20220817 06:45:46.671780 243703 conn_tracker.h:278] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true records=0
I20220817 06:45:46.671792 243703 conn_tracker.cc:793] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Death countdown=1
I20220817 06:45:48.469894 243447 container_runner.cc:59] docker rm -f thriftmux_server_445962533992195
I20220817 06:45:48.696987 243447 conn_tracker.cc:75] conn_id=[upid=243532:44596285 fd=140 gen=445990939787797] state=kTransferring remote_addr=127.0.0.1:55398 role=kRoleServer protocol=kProtocolMux ssl=true Being destroyed
[ OK ] OpenSSLTraceRawFptrsTest/0.mtls_thriftmux_client (32478 ms)
[----------] 1 test from OpenSSLTraceRawFptrsTest/0 (32478 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (32478 ms total)
[ PASSED ] 1 test.
I20220817 06:45:48.768321 243447 env.cc:51] Shutting down
Verified the changes to socket_trace_connector allow `TraceMode::OnNewerKernel` to work
# Verify kernel is < 5.2
vagrant@ubuntu-jammy:/vagrant$ uname -r
4.14.190-0414190-generic
# Run tests and verify that the BPF program has too many instructions
vagrant@ubuntu-jammy:/vagrant$ ./scripts/sudo_bazel_run.sh src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test
INFO: Analyzed target //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test (26 packages loaded, 4518 targets configured).
INFO: Found 1 target...
Target //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test up-to-date:
bazel-bin/src/stirling/source_connectors/socket_tracer/thriftmux_openssl_trace_bpf_test
INFO: Elapsed time: 6.930s, Critical Path: 1.70s
INFO: 2 processes: 1 internal, 1 linux-sandbox.
INFO: Build completed successfully, 2 total actions
INFO: Running command line: external/bazel_tools/tools/test/test-setup.sh /bin/bash -c '"$@"' /bin/bash sudo src/stirling/source_connecto
INFO: Build completed successfully, 2 total actions
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test
-----------------------------------------------------------------------------
I20220929 06:35:41.532332 33255 env.cc:47] Started: src/stirling/source_connectors/socket_tracer/thriftmux_openssl_trace_bpf_test
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ThriftMuxTLSTraceTest/0, where TypeParam = px::stirling::ThriftMuxServerContainerWrapper
[ RUN ] ThriftMuxTLSTraceTest/0.mtls_thriftmux_client
I20220929 06:35:42.205049 33255 container_runner.cc:43] Loaded image: bazel/src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:server_image
I20220929 06:35:42.205094 33255 container_runner.cc:121] docker run --rm --pid=host --name=thriftmux_server_3955908296579 bazel/src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:server_image --use-tls true
Error: No such object: thriftmux_server_3955908296579
I20220929 06:35:42.354137 33255 container_runner.cc:160] Container thriftmux_server_3955908296579 status:
I20220929 06:35:42.354169 33255 container_runner.cc:169] Container thriftmux_server_3955908296579 not yet running, will try again (60 attempts remaining).
I20220929 06:35:43.419050 33255 container_runner.cc:160] Container thriftmux_server_3955908296579 status: running
I20220929 06:35:43.497565 33255 container_runner.cc:191] Container thriftmux_server_3955908296579 process PID: 33341
I20220929 06:35:43.497587 33255 container_runner.cc:193] Container thriftmux_server_3955908296579 waiting for log message: Finagle version
I20220929 06:35:43.545064 33255 container_runner.cc:205] Container thriftmux_server_3955908296579 status: running
I20220929 06:35:43.545087 33255 container_runner.cc:218] Container thriftmux_server_3955908296579 not in ready state, will try again (59 attempts remaining).
I20220929 06:35:44.591073 33255 container_runner.cc:205] Container thriftmux_server_3955908296579 status: running
I20220929 06:35:44.591097 33255 container_runner.cc:241] Container thriftmux_server_3955908296579 is ready.
Warning: use -cacerts option to access cacerts keystore
Certificate was added to keystore
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/app/maven/v1/https/repo1.maven.org/maven2/com/twitter/util-jvm_2.13/22.7.0/util-jvm_2.13-22.7.0.jar) to field sun.management.ManagementFactoryHelper.jvm
WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep 29, 2022 6:35:45 AM com.twitter.finagle.Init$ $anonfun$once$1
INFO: Finagle version 22.7.0 (rev=4d10525ef4fe89732bcfec6286fac7fe426e9082) built at 20220728-183850
Sep 29, 2022 6:35:46 AM com.twitter.finagle.FixedInetResolver$ factory$lzycompute
INFO: Successfully loaded a fixed inet resolver: com.twitter.finagle.netty4.FixedNetty4InetResolver$Factory@6e1b9411
Sep 29, 2022 6:35:46 AM com.twitter.finagle.BaseResolver inetResolver$lzycompute
INFO: Using default inet resolver
Sep 29, 2022 6:35:46 AM com.twitter.finagle.InetResolver$ factory$lzycompute
INFO: Successfully loaded an inet resolver: com.twitter.finagle.netty4.Netty4InetResolver$Factory@4248b963
Sep 29, 2022 6:35:46 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[inet] = com.twitter.finagle.InetResolver(com.twitter.finagle.InetResolver@4d654825)
Sep 29, 2022 6:35:46 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fixedinet] = com.twitter.finagle.FixedInetResolver(com.twitter.finagle.FixedInetResolver@3bfc6a5e)
Sep 29, 2022 6:35:46 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[neg] = com.twitter.finagle.NegResolver$(com.twitter.finagle.NegResolver$@51b35e4e)
Sep 29, 2022 6:35:46 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[nil] = com.twitter.finagle.NilResolver$(com.twitter.finagle.NilResolver$@abff8b7)
Sep 29, 2022 6:35:46 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fail] = com.twitter.finagle.FailResolver$(com.twitter.finagle.FailResolver$@6d7cada5)
I20220929 06:35:48.376614 33255 thriftmux_openssl_trace_bpf_test.cc:106] thriftmux client command output: '33465
06:35:45.824 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
06:35:45.829 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
06:35:45.829 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
06:35:45.840 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
06:35:45.841 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 11
06:35:45.842 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
06:35:45.843 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
06:35:45.843 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
06:35:45.844 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
06:35:45.844 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
06:35:45.845 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
06:35:45.845 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @7dc3712
06:35:45.846 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): unavailable
06:35:45.847 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
06:35:45.848 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 2090860544 bytes (maybe)
06:35:45.848 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
06:35:45.848 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
06:35:45.850 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
06:35:45.850 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
06:35:45.850 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
06:35:45.851 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
06:35:45.852 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
06:35:45.852 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
06:35:45.853 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
06:35:45.853 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 7
06:35:45.853 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 1048576
06:35:45.853 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
06:35:45.853 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
06:35:45.853 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
06:35:45.854 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
06:35:45.854 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
06:35:45.854 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
06:35:45.854 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
06:35:45.857 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
06:35:45.858 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
06:35:45.878 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir)
06:35:45.883 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true
06:35:45.890 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true
06:35:45.890 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true
06:35:45.909 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_transport_native_epoll_x86_6414910013800685815863.so
06:35:45.912 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
06:35:45.912 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
06:35:45.913 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 127.0.0.1)
06:35:45.914 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
06:35:46.357 [main] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5acc9fdf
06:35:46.363 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
06:35:46.737 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
06:35:46.784 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 33486 (auto-detected)
06:35:46.785 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:42:ac:ff:fe:11:00:02 (auto-detected)
06:35:46.797 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
06:35:46.797 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
06:35:46.797 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
06:35:46.852 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_tcnative_linux_x86_6418301141435767617090.so
06:35:46.853 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Loaded library with name 'netty_tcnative_linux_x86_64'
06:35:46.853 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Initialize netty-tcnative using engine: 'default'
06:35:46.853 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - netty-tcnative using native library: BoringSSL
06:35:46.957 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
06:35:46.957 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
06:35:46.957 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@4b57ce4
06:35:46.974 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@3a8f7f5b
06:35:46.978 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: disabled
06:35:46.978 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: disabled
06:35:46.978 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: disabled
06:35:46.978 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: disabled
06:35:46.989 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:35:46.989 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:35:46.989 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:35:46.989 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:35:46.990 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:35:46.990 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:35:46.990 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:35:46.990 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:35:46.990 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:35:46.990 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:35:46.991 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:35:46.991 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:35:46.992 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:35:46.992 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:35:46.992 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:35:46.992 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:35:46.993 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:35:46.993 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:35:46.993 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:35:46.993 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:35:46.993 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:35:46.993 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:35:46.994 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:35:46.995 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:35:46.995 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:35:46.995 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:35:46.995 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:35:46.995 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:35:46.996 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:35:46.996 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:35:46.996 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:35:46.996 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:35:46.996 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:35:46.996 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:35:46.997 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Supported protocols (OpenSSL): [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3]
06:35:46.997 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Default cipher suites (OpenSSL): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256]
06:35:47.116 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@79ad2820
06:35:47.183 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@17895c65
06:35:47.804 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0xc5996de9, L:/127.0.0.1:48606 - R:localhost/127.0.0.1:8080] HANDSHAKEN: protocol:TLSv1.3 cipher suite:TLS_AES_128_GCM_SHA256
StringString
'
I20220929 06:35:48.376724 33255 thriftmux_openssl_trace_bpf_test.cc:115] Client PID: 33465
I20220929 06:35:49.377357 33255 linux_headers.cc:209] Found Linux kernel version using .note section.
I20220929 06:35:49.377393 33255 source_connector.cc:35] Initializing source connector: socket_trace_connector
I20220929 06:35:49.377418 33255 linux_headers.cc:90] Obtained Linux version string from `uname`: 4.14.190-0414190-generic
I20220929 06:35:49.377424 33255 linux_headers.cc:635] Detected kernel release (uname -r): 4.14.190-0414190-generic
I20220929 06:35:49.377457 33255 bcc_wrapper.cc:121] Using linux headers found at /lib/modules/4.14.190-0414190-generic/build for BCC runtime.
I20220929 06:35:49.377509 33255 bcc_wrapper.cc:170] Initializing BPF program ...
I20220929 06:35:57.641978 33255 scoped_timer.h:48] Timer(init_bpf_program) : 8.26 s
bpf: Argument list too long. Program too large (4143 insns), at most 4096 insns
./src/stirling/source_connectors/socket_tracer/testing/socket_trace_bpf_test_fixture.h:53: Failure
Value of: IsOK(::px::StatusAdapter(source_->Init()))
Actual: false (Internal : Failed to load syscall__probe_ret_writev: -1)
Expected: true
I20220929 06:35:57.800180 33255 container_runner.cc:59] docker rm -f thriftmux_server_3955908296579 &>/dev/null
[ FAILED ] ThriftMuxTLSTraceTest/0.mtls_thriftmux_client, where TypeParam = px::stirling::ThriftMuxServerContainerWrapper (17094 ms)
[----------] 1 test from ThriftMuxTLSTraceTest/0 (17094 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (17094 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] ThriftMuxTLSTraceTest/0.mtls_thriftmux_client, where TypeParam = px::stirling::ThriftMuxServerContainerWrapper
1 FAILED TEST
I20220929 06:35:58.627085 33255 env.cc:51] Shutting down
# Apply diff and verify that while bpf_trace_test succeeds silently, it doesn't fail to load the program now
[tw-mbp-ddelnano pixie (ddelnano/implement-support-for-finagle-mux-tls-tracing)]% git diff --cached
diff --git a/src/stirling/source_connectors/socket_tracer/bcc_bpf/BUILD.bazel b/src/stirling/source_connectors/socket_tracer/bcc_bpf/BUILD.bazel
index c060490c1..a34ddcf28 100644
--- a/src/stirling/source_connectors/socket_tracer/bcc_bpf/BUILD.bazel
+++ b/src/stirling/source_connectors/socket_tracer/bcc_bpf/BUILD.bazel
@@ -70,7 +70,6 @@ pl_cc_test(
"ENABLE_DNS_TRACING=true",
"ENABLE_REDIS_TRACING=true",
"ENABLE_NATS_TRACING=true",
- "ENABLE_MUX_TRACING=true",
"ENABLE_MONGO_TRACING=true",
"ENABLE_AMQP_TRACING=true",
],
diff --git a/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc b/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc
index 8d60ea2ae..f2955eb89 100644
--- a/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc
+++ b/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc
@@ -385,18 +385,27 @@ auto SocketTraceConnector::InitPerfBufferSpecs() {
Status SocketTraceConnector::InitBPF() {
// PROTOCOL_LIST: Requires update on new protocols.
+ //
+ // The infer_protocol function does not work on kernels
+ // older than 5.2 when all protocols are enabled. Since
+ // the TraceMode::OnForNewerKernel enum results in a
+ // 'truthy' define, TraceMode::OnForNewerKernel and
+ // TraceMode::Off must be munged into 0 in order for the
+ // compiler to remove dead conditional statements resulting
+ // in a BPF program within the old program limit (< 4096 insns).
+ // This means the TransferSpec's enabled field must be used
+ // after SocketTraceConnector::EnableIfNeeded is called.
std::vector<std::string> defines = {
- absl::StrCat("-DENABLE_HTTP_TRACING=", FLAGS_stirling_enable_http_tracing),
- absl::StrCat("-DENABLE_CQL_TRACING=", FLAGS_stirling_enable_cass_tracing),
- absl::StrCat("-DENABLE_MUX_TRACING=", FLAGS_stirling_enable_mux_tracing),
- absl::StrCat("-DENABLE_PGSQL_TRACING=", FLAGS_stirling_enable_pgsql_tracing),
- absl::StrCat("-DENABLE_MYSQL_TRACING=", FLAGS_stirling_enable_mysql_tracing),
- absl::StrCat("-DENABLE_KAFKA_TRACING=", FLAGS_stirling_enable_kafka_tracing),
- absl::StrCat("-DENABLE_DNS_TRACING=", FLAGS_stirling_enable_dns_tracing),
- absl::StrCat("-DENABLE_REDIS_TRACING=", FLAGS_stirling_enable_redis_tracing),
- absl::StrCat("-DENABLE_NATS_TRACING=", FLAGS_stirling_enable_nats_tracing),
- absl::StrCat("-DENABLE_MUX_TRACING=", FLAGS_stirling_enable_mux_tracing),
- absl::StrCat("-DENABLE_AMQP_TRACING=", FLAGS_stirling_enable_amqp_tracing),
+ absl::StrCat("-DENABLE_HTTP_TRACING=", protocol_transfer_specs_[kProtocolHTTP].enabled),
+ absl::StrCat("-DENABLE_CQL_TRACING=", protocol_transfer_specs_[kProtocolCQL].enabled),
+ absl::StrCat("-DENABLE_MUX_TRACING=", protocol_transfer_specs_[kProtocolMux].enabled),
+ absl::StrCat("-DENABLE_PGSQL_TRACING=", protocol_transfer_specs_[kProtocolPGSQL].enabled),
+ absl::StrCat("-DENABLE_MYSQL_TRACING=", protocol_transfer_specs_[kProtocolMySQL].enabled),
+ absl::StrCat("-DENABLE_KAFKA_TRACING=", protocol_transfer_specs_[kProtocolKafka].enabled),
+ absl::StrCat("-DENABLE_DNS_TRACING=", protocol_transfer_specs_[kProtocolDNS].enabled),
+ absl::StrCat("-DENABLE_REDIS_TRACING=", protocol_transfer_specs_[kProtocolRedis].enabled),
+ absl::StrCat("-DENABLE_NATS_TRACING=", protocol_transfer_specs_[kProtocolNATS].enabled),
+ absl::StrCat("-DENABLE_AMQP_TRACING=", protocol_transfer_specs_[kProtocolAMQP].enabled),
vagrant@ubuntu-jammy:/vagrant$ ./scripts/sudo_bazel_run.sh src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test
INFO: Analyzed target //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test (1 packages loaded, 18 targets configured).
INFO: Found 1 target...
Target //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test up-to-date:
bazel-bin/src/stirling/source_connectors/socket_tracer/thriftmux_openssl_trace_bpf_test
INFO: Elapsed time: 21.542s, Critical Path: 19.35s
INFO: 3 processes: 1 internal, 2 linux-sandbox.
INFO: Build completed successfully, 3 total actions
INFO: Running command line: external/bazel_tools/tools/test/test-setup.sh /bin/bash -c '"$@"' /bin/bash sudo src/stirling/source_connecto
INFO: Build completed successfully, 3 total actions
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //src/stirling/source_connectors/socket_tracer:thriftmux_openssl_trace_bpf_test
-----------------------------------------------------------------------------
I20220929 06:38:32.488070 34326 env.cc:47] Started: src/stirling/source_connectors/socket_tracer/thriftmux_openssl_trace_bpf_test
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ThriftMuxTLSTraceTest/0, where TypeParam = px::stirling::ThriftMuxServerContainerWrapper
[ RUN ] ThriftMuxTLSTraceTest/0.mtls_thriftmux_client
I20220929 06:38:33.085846 34326 container_runner.cc:43] Loaded image: bazel/src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:server_image
I20220929 06:38:33.085887 34326 container_runner.cc:121] docker run --rm --pid=host --name=thriftmux_server_4126789090937 bazel/src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux:server_image --use-tls true
Error: No such object: thriftmux_server_4126789090937
I20220929 06:38:33.226728 34326 container_runner.cc:160] Container thriftmux_server_4126789090937 status:
I20220929 06:38:33.226753 34326 container_runner.cc:169] Container thriftmux_server_4126789090937 not yet running, will try again (60 attempts remaining).
I20220929 06:38:34.278544 34326 container_runner.cc:160] Container thriftmux_server_4126789090937 status: running
I20220929 06:38:34.331547 34326 container_runner.cc:191] Container thriftmux_server_4126789090937 process PID: 34413
I20220929 06:38:34.331573 34326 container_runner.cc:193] Container thriftmux_server_4126789090937 waiting for log message: Finagle version
I20220929 06:38:34.361676 34326 container_runner.cc:205] Container thriftmux_server_4126789090937 status: running
I20220929 06:38:34.361703 34326 container_runner.cc:218] Container thriftmux_server_4126789090937 not in ready state, will try again (59 attempts remaining).
I20220929 06:38:35.405294 34326 container_runner.cc:205] Container thriftmux_server_4126789090937 status: running
I20220929 06:38:35.405313 34326 container_runner.cc:241] Container thriftmux_server_4126789090937 is ready.
Warning: use -cacerts option to access cacerts keystore
Certificate was added to keystore
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/app/maven/v1/https/repo1.maven.org/maven2/com/twitter/util-jvm_2.13/22.7.0/util-jvm_2.13-22.7.0.jar) to field sun.management.ManagementFactoryHelper.jvm
WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep 29, 2022 6:38:36 AM com.twitter.finagle.Init$ $anonfun$once$1
INFO: Finagle version 22.7.0 (rev=4d10525ef4fe89732bcfec6286fac7fe426e9082) built at 20220728-183850
Sep 29, 2022 6:38:37 AM com.twitter.finagle.FixedInetResolver$ factory$lzycompute
INFO: Successfully loaded a fixed inet resolver: com.twitter.finagle.netty4.FixedNetty4InetResolver$Factory@6e1b9411
Sep 29, 2022 6:38:37 AM com.twitter.finagle.BaseResolver inetResolver$lzycompute
INFO: Using default inet resolver
Sep 29, 2022 6:38:37 AM com.twitter.finagle.InetResolver$ factory$lzycompute
INFO: Successfully loaded an inet resolver: com.twitter.finagle.netty4.Netty4InetResolver$Factory@4248b963
Sep 29, 2022 6:38:37 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[inet] = com.twitter.finagle.InetResolver(com.twitter.finagle.InetResolver@4d654825)
Sep 29, 2022 6:38:37 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fixedinet] = com.twitter.finagle.FixedInetResolver(com.twitter.finagle.FixedInetResolver@3bfc6a5e)
Sep 29, 2022 6:38:37 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[neg] = com.twitter.finagle.NegResolver$(com.twitter.finagle.NegResolver$@51b35e4e)
Sep 29, 2022 6:38:37 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[nil] = com.twitter.finagle.NilResolver$(com.twitter.finagle.NilResolver$@abff8b7)
Sep 29, 2022 6:38:37 AM com.twitter.finagle.BaseResolver $anonfun$resolvers$3
INFO: Resolver[fail] = com.twitter.finagle.FailResolver$(com.twitter.finagle.FailResolver$@6d7cada5)
I20220929 06:38:39.508209 34326 thriftmux_openssl_trace_bpf_test.cc:106] thriftmux client command output: '34539
06:38:36.854 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
06:38:36.856 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
06:38:36.856 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
06:38:36.868 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
06:38:36.868 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 11
06:38:36.869 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
06:38:36.870 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
06:38:36.870 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
06:38:36.871 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
06:38:36.871 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
06:38:36.872 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
06:38:36.873 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @7dc3712
06:38:36.874 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): unavailable
06:38:36.874 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
06:38:36.875 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 2090860544 bytes (maybe)
06:38:36.875 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
06:38:36.875 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
06:38:36.876 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
06:38:36.876 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
06:38:36.877 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
06:38:36.877 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 7
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 1048576
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
06:38:36.879 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
06:38:36.880 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
06:38:36.880 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
06:38:36.880 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
06:38:36.880 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
06:38:36.880 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
06:38:36.884 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
06:38:36.884 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
06:38:36.917 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir)
06:38:36.917 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true
06:38:36.918 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true
06:38:36.918 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true
06:38:36.942 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_transport_native_epoll_x86_647361208377790078682.so
06:38:36.945 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
06:38:36.945 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
06:38:36.947 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 127.0.0.1)
06:38:36.948 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
06:38:37.429 [main] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5acc9fdf
06:38:37.435 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
06:38:37.755 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
06:38:37.803 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 34554 (auto-detected)
06:38:37.805 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:42:ac:ff:fe:11:00:02 (auto-detected)
06:38:37.818 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
06:38:37.819 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
06:38:37.819 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
06:38:37.873 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Successfully loaded the library /tmp/libnetty_tcnative_linux_x86_6412783168563119477561.so
06:38:37.874 [finagle/netty4-1-1] DEBUG io.netty.util.internal.NativeLibraryLoader - Loaded library with name 'netty_tcnative_linux_x86_64'
06:38:37.874 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Initialize netty-tcnative using engine: 'default'
06:38:37.875 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - netty-tcnative using native library: BoringSSL
06:38:37.938 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
06:38:37.939 [finagle/netty4-1-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
06:38:37.939 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5c6260c8
06:38:37.955 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@12efdee1
06:38:37.958 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: disabled
06:38:37.959 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: disabled
06:38:37.959 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: disabled
06:38:37.959 [finagle/netty4-1-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: disabled
06:38:37.968 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:38:37.968 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 => ECDHE-ECDSA-AES128-GCM-SHA256
06:38:37.969 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:38:37.969 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 => ECDHE-RSA-AES128-GCM-SHA256
06:38:37.969 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:38:37.969 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 => ECDHE-ECDSA-AES256-GCM-SHA384
06:38:37.969 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:38:37.970 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 => ECDHE-RSA-AES256-GCM-SHA384
06:38:37.970 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:38:37.970 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-ECDSA-CHACHA20-POLY1305
06:38:37.971 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:38:37.971 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-RSA-CHACHA20-POLY1305
06:38:37.971 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:38:37.971 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 => ECDHE-PSK-CHACHA20-POLY1305
06:38:37.971 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:38:37.972 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA => ECDHE-ECDSA-AES128-SHA
06:38:37.972 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:38:37.972 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA => ECDHE-RSA-AES128-SHA
06:38:37.972 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:38:37.973 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_128_CBC_SHA => ECDHE-PSK-AES128-CBC-SHA
06:38:37.973 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:38:37.973 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA => ECDHE-ECDSA-AES256-SHA
06:38:37.973 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:38:37.973 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA => ECDHE-RSA-AES256-SHA
06:38:37.974 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:38:37.974 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_ECDHE_PSK_WITH_AES_256_CBC_SHA => ECDHE-PSK-AES256-CBC-SHA
06:38:37.974 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:38:37.974 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_GCM_SHA256 => AES128-GCM-SHA256
06:38:37.975 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:38:37.975 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_GCM_SHA384 => AES256-GCM-SHA384
06:38:37.975 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:38:37.975 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_128_CBC_SHA => AES128-SHA
06:38:37.975 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:38:37.975 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_128_CBC_SHA => PSK-AES128-CBC-SHA
06:38:37.976 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:38:37.976 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_AES_256_CBC_SHA => AES256-SHA
06:38:37.976 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:38:37.976 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_PSK_WITH_AES_256_CBC_SHA => PSK-AES256-CBC-SHA
06:38:37.976 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: TLS_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:38:37.976 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.CipherSuiteConverter - Cipher suite mapping: SSL_RSA_WITH_3DES_EDE_CBC_SHA => DES-CBC3-SHA
06:38:37.977 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Supported protocols (OpenSSL): [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3]
06:38:37.977 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.OpenSsl - Default cipher suites (OpenSSL): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256]
06:38:38.093 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@67082461
06:38:38.131 [finagle/netty4-1-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@1710c992
06:38:38.936 [finagle/netty4-1-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x6d088590, L:/127.0.0.1:48612 - R:localhost/127.0.0.1:8080] HANDSHAKEN: protocol:TLSv1.3 cipher suite:TLS_AES_128_GCM_SHA256
StringString
'
I20220929 06:38:39.508330 34326 thriftmux_openssl_trace_bpf_test.cc:115] Client PID: 34539
I20220929 06:38:40.509291 34326 linux_headers.cc:209] Found Linux kernel version using .note section.
I20220929 06:38:40.509338 34326 source_connector.cc:35] Initializing source connector: socket_trace_connector
I20220929 06:38:40.509361 34326 linux_headers.cc:90] Obtained Linux version string from `uname`: 4.14.190-0414190-generic
I20220929 06:38:40.509366 34326 linux_headers.cc:635] Detected kernel release (uname -r): 4.14.190-0414190-generic
I20220929 06:38:40.509403 34326 bcc_wrapper.cc:121] Using linux headers found at /lib/modules/4.14.190-0414190-generic/build for BCC runtime.
I20220929 06:38:40.509455 34326 bcc_wrapper.cc:170] Initializing BPF program ...
I20220929 06:38:48.734907 34326 scoped_timer.h:48] Timer(init_bpf_program) : 8.23 s
I20220929 06:38:49.257093 34326 socket_trace_connector.cc:414] Number of kprobes deployed = 40
I20220929 06:38:49.257148 34326 socket_trace_connector.cc:415] Probes successfully deployed.
I20220929 06:38:49.257182 34326 socket_trace_connector.cc:341] Initializing perf buffers with ncpus=2 and scaling_factor=0.9
I20220929 06:38:49.257227 34326 socket_trace_connector.cc:330] Total perf buffer usage for kData buffers across all cpus: 188743680
I20220929 06:38:49.257246 34326 socket_trace_connector.cc:330] Total perf buffer usage for kControl buffers across all cpus: 3963614
I20220929 06:38:49.282526 34326 socket_trace_connector.cc:419] Number of perf buffers opened = 8
W20220929 06:38:49.434556 34607 uprobe_symaddrs.cc:602] Unable to find openssl symbol 'OpenSSL_version_num' using dlopen/dlsym. Attempting to find address manually for pid 34413
I20220929 06:38:50.004493 34607 uprobe_manager.cc:920] Number of uprobes deployed = 1010
I20220929 06:38:52.623831 34326 container_runner.cc:59] docker rm -f thriftmux_server_4126789090937 &>/dev/null
[ OK ] ThriftMuxTLSTraceTest/0.mtls_thriftmux_client (20441 ms)
[----------] 1 test from ThriftMuxTLSTraceTest/0 (20441 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (20441 ms total)
[ PASSED ] 1 test.
I20220929 06:38:52.929540 34326 env.cc:51] Shutting down
Todo
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Can one of the admins verify this patch?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ddelnano
changed the title
Add support for tracing tls traffic from finagle (netty based) services
[Seeking early feedback] Add support for tracing tls traffic from finagle (netty based) services
Aug 28, 2022
|
|
|
|
|
} // namespace
|
|
|
|
|
|
bool IsBoringSSL(const std::filesystem::path& openssl_lib) {
|
ddelnano
Aug 28, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now this is simplistic and only covers the netty case since I haven't found a good way to generalize this. There doesn't appear to be any obvious symbols within a program with boringssl that we can use.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also worth mentioning that BoringSSL docs explicitly state not to try and depend on specific symbols within a binary to test if it is in use.
The OPENSSL_IS_BORINGSSL macro may also be used to distinguish OpenSSL from BoringSSL in configure scripts. Do not use the presence or absence of particular symbols to detect BoringSSL.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the macro is not available to us, we may have to go against that guidance...unless we can find a better option.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I agree. My goal was to avoid that unless it was absolutely necessary.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+716
to
+724
|
|
symaddrs.RBIO_num_offset = kBoringSSL_1_1_1_RBIO_num_offset;
|
|
|
symaddrs.SSL_rbio_offset = kBoringSSL_RBIO_offset;
|
|
|
break;
|
|
|
default:
|
|
|
// Supported versions are checked in function OpenSSLFixSubversionNum(),
|
|
|
// should not fall through to here, ever.
|
|
|
DCHECK(false);
|
|
|
return error::Internal("Unsupported openssl_fix_sub_version: $0", openssl_fix_sub_version);
|
|
|
}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My hope is that if boringssl is linked and includes the Openssl_version_num symbol that we will be able to correctly determine the offsets without needing to rely on inspecting netty's (or another service's) version. I know this doesn't apply to envoy's case, but I thought this was worth a try first before building out the netty version detection.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+284
to
+296
|
|
ssl_lib_matcher kLibSSLMatchers = {
|
|
|
{
|
|
|
{"libssl.so.1.1", "libcrypto.so.1.1"},
|
|
|
HostPathForPIDPathSearchType::kSearchTypeEndsWith,
|
|
|
},
|
|
|
{
|
|
|
{kLibNettyTcnativePrefix},
|
|
|
HostPathForPIDPathSearchType::kSearchTypeContains,
|
|
|
},
|
|
|
};
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of this was to allow the bulk of the logic within AttachOpenSSLUProbesOnDynamicLib to apply to the optimistic boringssl case -- where Openssl_version_num is accessible via dlopen or the RawFptrManager interface. Since envoy's case is the only other boringssl integration we've investigated, I'm not sure if this the correct abstraction so let me know your thoughts on this.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think a ssl_lib_matcher + runtime detection & prep of versioned-offsets is reasonable.
I personally could not think of other options that are clearly superior. For example, a more vanilla approach would be to create a complete independent code branch dedicated to netty; which can be implemented as
* Calling IsBoringSSL() inside AttachOpenSSLUProbesOnDynamicLib(), as if condition
* Wrap kLibNettyTcnativePrefix ("libnetty_tcnative_linux_x86") lookup inside the true branch of the if condition; and apply attachment.
The current approach is better because of the integration through data structures, and shared code.
Sorry for late reply.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ddelnano reacted with thumbs up emoji
|
@oazizi000 @yzhao1012 this is ready for some early feedback. The part I'm specifically seeking feedback on is the approach for detecting when to use the boringssl data structure offsets and the changes to UProbeManager::AttachOpenSSLUProbesOnDynamicLib, which I hope will make it easier to support other libraries in the optimistic case of boring ssl tracing (where Openssl_version_num is available).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
copybaranaut
pushed a commit
that referenced
this pull request
Sep 6, 2022
Summary: This PR splits out helper functions used in #569 into its own change. The goal is to refactor this code so it can be shared by the existing mux_trace_bpf_test.cc and the new thriftmux_openssl_trace_bpf_test.cc one.
Test Plan:
Verified that the tests that use GetTargetRecords pass (calling code needed to have type specified in certain cases)
I couldn't find a way to add the mux equivalents of ToRecordVector and GetTargetRecords without updating the client code. Omitting that change resulted in the following error.
```
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/stirling/source_connectors/socket_tracer/openssl_trace_bpf_test.cc:110:46: error: no matching function for call to 'ToRecordVector'
std::vector<http::Record> http_records = ToRecordVector(record_batch, server_record_indices);
^~~~~~~~~~~~~~
./src/stirling/source_connectors/socket_tracer/testing/protocol_checkers.h:41:25: note: candidate template ignored: couldn't infer template argument 'TFrameType'
std::vector<TFrameType> ToRecordVector(const types::ColumnWrapperRecordBatch& rb,
```
Reviewers: #stirling, jps
Reviewed By: #stirling, jps
Subscribers: jps
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12178
GitOrigin-RevId: e3c6c614e7ff37a9c5a7f679dcb34df02bb39c94
ddelnano
changed the title
[Seeking early feedback] Add support for tracing tls traffic from finagle (netty based) services
Add support for tracing tls traffic from finagle (netty based) services
Sep 7, 2022
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+284
to
+296
|
|
ssl_lib_matcher kLibSSLMatchers = {
|
|
|
{
|
|
|
{"libssl.so.1.1", "libcrypto.so.1.1"},
|
|
|
HostPathForPIDPathSearchType::kSearchTypeEndsWith,
|
|
|
},
|
|
|
{
|
|
|
{kLibNettyTcnativePrefix},
|
|
|
HostPathForPIDPathSearchType::kSearchTypeContains,
|
|
|
},
|
|
|
};
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think a ssl_lib_matcher + runtime detection & prep of versioned-offsets is reasonable.
I personally could not think of other options that are clearly superior. For example, a more vanilla approach would be to create a complete independent code branch dedicated to netty; which can be implemented as
* Calling IsBoringSSL() inside AttachOpenSSLUProbesOnDynamicLib(), as if condition
* Wrap kLibNettyTcnativePrefix ("libnetty_tcnative_linux_x86") lookup inside the true branch of the if condition; and apply attachment.
The current approach is better because of the integration through data structures, and shared code.
Sorry for late reply.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ddelnano reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
@yzhao1012 your comments should be addressed, so this is ready for another look when you have the chance.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll ping Omid for final proof and merging.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ddelnano reacted with thumbs up emoji
ddelnano reacted with hooray emoji
All reactions
-
👍
1 reaction
-
🎉
1 reaction
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
copybaranaut
pushed a commit
that referenced
this pull request
Sep 30, 2022
…o load BPF programs due to instruction length
Summary:
This is to fix the final issue that is blocking #569 from merging. That PR causes the 'trace_bpf' tests to break on older kernels since they run into the following error:
I20220929 06:56:47.804983 39215 scoped_timer.h:48] Timer(init_bpf_program) : 7.72 s
bpf: Argument list too long. Program too large (4143 insns), at most 4096 insns
Test Plan:
Verified that setting mux tracing to TraceMode::OnForNewerKernel results in a failing dns_trace_bpf_test
Verified that using the TransferSpec.enabled member results in passing 'trace_bpf' tests
Reviewers: #stirling, rcheng
Reviewed By: #stirling, rcheng
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12307
GitOrigin-RevId: c8a0e51b4e162d4992df0c969b5f56dbcf3d41b2
Uh oh!
There was an error while loading. Please reload this page.
|
|
return r;
|
|
|
}
|
|
|
|
|
|
using ThriftMuxTLSServerImplementations = ::testing::Types<ThriftMuxServerContainerWrapper>;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any other servers we expect to run in the future? If not, we should take out the templates and simplify this. Thoughts?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other netty integrations could take advantage of this test assuming our expectation that they will work out of the box is correct. Maybe we should name this netty_{ssl,tls}_trace_bpf_test.cc instead?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, netty_trace_bpf_test would be good. Eventually, maybe we even consolidate everything into a boringssl_trace_bpf_test, but we can start with netty.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ddelnano
Oct 3, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose netty_tls_trace_bpf_test.cc since I felt including "tls" part of the name was important and agree that it might be good to further consolidate to something "boringssl" related.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
|
DEFINE_int32(stirling_enable_kafka_tracing, px::stirling::TraceMode::On,
|
|
|
"If true, stirling will trace and process Kafka messages.");
|
|
|
DEFINE_int32(stirling_enable_mux_tracing,
|
|
|
gflags::Uint32FromEnv("PL_STIRLING_TRACER_ENABLE_MUX", px::stirling::TraceMode::Off),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this environment variable was needed in order to get the Init() function working in the mux_trace_bpf_test.cc and thriftmux_openssl_trace_bpf_test.cc. It also aligns the mux flag with how the others are managed.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
copybaranaut
pushed a commit
that referenced
this pull request
Oct 1, 2022
Summary: This was a workaround that was relied on when I was testing an earlier version of #569, but it is no longer required. See the details on #407 for more background on this issue.
Test Plan: Verified that mux trace bpf test passes -- verifies that thriftmux docker image builds after these changes
Reviewers: #stirling, rcheng
Reviewed By: #stirling, rcheng
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12318
GitOrigin-RevId: 99770d28e8041102d0279d2e13d0de18cb5d0a26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished the review. We're close. Just a few additional items to consider.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
return r;
|
|
|
}
|
|
|
|
|
|
using ThriftMuxTLSServerImplementations = ::testing::Types<ThriftMuxServerContainerWrapper>;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, netty_trace_bpf_test would be good. Eventually, maybe we even consolidate everything into a boringssl_trace_bpf_test, but we can start with netty.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
|
|
|
|
} // namespace
|
|
|
|
|
|
bool IsBoringSSL(const std::filesystem::path& openssl_lib) {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the macro is not available to us, we may have to go against that guidance...unless we can find a better option.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
entlein
pushed a commit
to k8sstormcenter/pixie
that referenced
this pull request
Jun 2, 2026
Summary: This PR splits out helper functions used in pixie-io#569 into its own change. The goal is to refactor this code so it can be shared by the existing mux_trace_bpf_test.cc and the new thriftmux_openssl_trace_bpf_test.cc one.
Test Plan:
Verified that the tests that use GetTargetRecords pass (calling code needed to have type specified in certain cases)
I couldn't find a way to add the mux equivalents of ToRecordVector and GetTargetRecords without updating the client code. Omitting that change resulted in the following error.
```
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/stirling/source_connectors/socket_tracer/openssl_trace_bpf_test.cc:110:46: error: no matching function for call to 'ToRecordVector'
std::vector<http::Record> http_records = ToRecordVector(record_batch, server_record_indices);
^~~~~~~~~~~~~~
./src/stirling/source_connectors/socket_tracer/testing/protocol_checkers.h:41:25: note: candidate template ignored: couldn't infer template argument 'TFrameType'
std::vector<TFrameType> ToRecordVector(const types::ColumnWrapperRecordBatch& rb,
```
Reviewers: #stirling, jps
Reviewed By: #stirling, jps
Subscribers: jps
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12178
GitOrigin-RevId: e3c6c614e7ff37a9c5a7f679dcb34df02bb39c94
entlein
pushed a commit
to k8sstormcenter/pixie
that referenced
this pull request
Jun 2, 2026
…o load BPF programs due to instruction length
Summary:
This is to fix the final issue that is blocking pixie-io#569 from merging. That PR causes the 'trace_bpf' tests to break on older kernels since they run into the following error:
I20220929 06:56:47.804983 39215 scoped_timer.h:48] Timer(init_bpf_program) : 7.72 s
bpf: Argument list too long. Program too large (4143 insns), at most 4096 insns
Test Plan:
Verified that setting mux tracing to TraceMode::OnForNewerKernel results in a failing dns_trace_bpf_test
Verified that using the TransferSpec.enabled member results in passing 'trace_bpf' tests
Reviewers: #stirling, rcheng
Reviewed By: #stirling, rcheng
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12307
GitOrigin-RevId: c8a0e51b4e162d4992df0c969b5f56dbcf3d41b2
entlein
pushed a commit
to k8sstormcenter/pixie
that referenced
this pull request
Jun 2, 2026
Summary: This was a workaround that was relied on when I was testing an earlier version of pixie-io#569, but it is no longer required. See the details on pixie-io#407 for more background on this issue.
Test Plan: Verified that mux trace bpf test passes -- verifies that thriftmux docker image builds after these changes
Reviewers: #stirling, rcheng
Reviewed By: #stirling, rcheng
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12318
GitOrigin-RevId: 99770d28e8041102d0279d2e13d0de18cb5d0a26
entlein
pushed a commit
to k8sstormcenter/pixie
that referenced
this pull request
Jun 2, 2026
Summary:
This PR will complete the initial support of pixie-io#407 and is a refresh of an earlier proof of concept change (pixie-io#463).
The goal is to provide an extensible way for supporting other boringssl based tracing targets if the target binary supports the following:
- Ability to determine the target binary's openssl version through the RawFptrManager or through dlsym
The boringssl implementation populate's openssl's bio_st data structure with the fd of the socket file descriptor (like I did with netty -
- Add SSL.bioSetFd method to JNI code to support Pixie integration netty/netty-tcnative#731).
This won't work for envoy's case, but the hope is that this is more similar to Pixie's dynamic openssl tracing while envoy is more similar to nodejs (requiring additional application specific integration).
Closes pixie-io#569.
Test Plan:
New test verifies that TLS tracing is successful (output below)
Verified the changes to socket_trace_connector allow `TraceMode::OnNewerKernel` to work
Reviewers: #stirling, zasgar
Reviewed By: zasgar
Signed-off-by: Dom Del Nano <[email protected]>
Differential Revision: https://phab.corp.pixielabs.ai/D12324
GitOrigin-RevId: 5ce5cd67c32ae9d6e4b11e04ab854d65371a3a16
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|