Skip to content

extract-handshakes: add BTF approach and fix compatibility

Peter Wu wireguard 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2extract-handshakes: fix compatibility with upstream WireGuard modulecontrib/extract-handshakes/extract-handshakes.sh+11 -60 replies
2/2extract-handshakes: add a more user-friendly BTF approachcontrib/extract-handshakes/README contrib/extract-handshakes/extract-handshakes.sh contrib/extract-handshakes/make-offsets.sh+82 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] extract-handshakes: add BTF approach and fix compatibility

While trying to decrypt WireGuard traffic in Wireshark, I noticed the extract-handshakes utility broke since upstreaming in Linux v5.6 (2019).

Attached is a patch to fix the main issue, and another one to remove a dependency on the WireGuard kernel module sources by relying on BTF.

Tested on Arch Linux (7.0.10-arch1-1) and Ubuntu 24.04 (6.8.0-41-generic), both have BTF support.

Peter Wu (2):
extract-handshakes: fix compatibility with upstream WireGuard module
extract-handshakes: add a more user-friendly BTF approach

 contrib/extract-handshakes/README             |  7 +-
 .../extract-handshakes/extract-handshakes.sh  | 25 ++++---
 contrib/extract-handshakes/make-offsets.sh    | 70 +++++++++++++++++++
 3 files changed, 93 insertions(+), 9 deletions(-)
 create mode 100755 contrib/extract-handshakes/make-offsets.sh
Signature · 1 line
2.54.0