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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190605155756.3779466-1-jonathan.lemon@gmail.com>
Date:   Wed, 5 Jun 2019 08:57:55 -0700
From:   Jonathan Lemon <jonathan.lemon@...il.com>
To:     <bjorn.topel@...el.com>, <magnus.karlsson@...el.com>,
        <toke@...hat.com>, <brouer@...hat.com>
CC:     <kernel-team@...com>, <netdev@...r.kernel.org>,
        <daniel@...earbox.net>, <ast@...nel.org>
Subject: [PATCH bpf-next 0/1] bpf: add XDP_SOCK type

Have the xskmap version of bpf_map_lookup_elem() return
an XDP_SOCK type.  This can be used to verify the existence
of an entry, and then check the sock properties.

Further improvements would include passing the pointer 
directly to a helper for redirrection instead of referencing
the map again.

Jonathan Lemon (1):
  bpf: Allow bpf_map_lookup_elem() on an xskmap

 include/linux/bpf.h                           |  8 ++++
 include/net/xdp_sock.h                        |  4 +-
 include/uapi/linux/bpf.h                      |  4 ++
 kernel/bpf/verifier.c                         | 26 +++++++++++-
 kernel/bpf/xskmap.c                           |  7 ++++
 net/core/filter.c                             | 40 +++++++++++++++++++
 tools/include/uapi/linux/bpf.h                |  4 ++
 .../bpf/verifier/prevent_map_lookup.c         | 15 -------
 tools/testing/selftests/bpf/verifier/sock.c   | 18 +++++++++
 9 files changed, 107 insertions(+), 19 deletions(-)

-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ