lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <160109391820.6363.6475038352873960677.stgit@john-Precision-5820-Tower>
Date:   Fri, 25 Sep 2020 21:26:41 -0700
From:   John Fastabend <john.fastabend@...il.com>
To:     ast@...nel.org, daniel@...earbox.net
Cc:     netdev@...r.kernel.org, john.fastabend@...il.com,
        jakub@...udflare.com, lmb@...udflare.com
Subject: [bpf-next PATCH 0/2] Add skb_adjust_room() for SK_SKB

This implements the helper skb_adjust_room() for BPF_SKS_BK_STREAM_VERDICT
programs so we can push/pop headers from the data on recieve. The
obvious use case is to pop TLS headers of kTLS packets.

The first patch implements the helper and the second updates test_sockmap
to use it removing some case handling we had to do earlier to account for
the TLS headers in the kTLS case.

I have a couple more series to flush off my stack then I'll work on
modernizing the test_sockmap tests themselves. It was created before
global data and a few other nice things so its a bit more verbose
than necessary.

Thanks,
John

---

John Fastabend (2):
      bpf, sockmap: add skb_adjust_room to pop bytes off ingress payload
      bpf, sockmap: update selftests to use skb_adjust_room


 net/core/filter.c                                  |   51 ++++++++++++++++++++
 .../selftests/bpf/progs/test_sockmap_kern.h        |   34 ++++++++++---
 tools/testing/selftests/bpf/test_sockmap.c         |   27 ++---------
 3 files changed, 82 insertions(+), 30 deletions(-)

--
Signature

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ