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: <20241127-bpf-const-ops-v1-0-a698b8d58680@weissschuh.net>
Date: Wed, 27 Nov 2024 20:15:19 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: "David S. Miller" <davem@...emloft.net>, 
 David Ahern <dsahern@...nel.org>, Eric Dumazet <edumazet@...gle.com>, 
 Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, 
 Simon Horman <horms@...nel.org>, Martin KaFai Lau <martin.lau@...nel.org>, 
 Kui-Feng Lee <thinker.li@...il.com>, Alexei Starovoitov <ast@...nel.org>, 
 Daniel Borkmann <daniel@...earbox.net>, 
 John Fastabend <john.fastabend@...il.com>, 
 Andrii Nakryiko <andrii@...nel.org>, 
 Martin KaFai Lau <martin.lau@...ux.dev>, 
 Eduard Zingerman <eddyz87@...il.com>, Song Liu <song@...nel.org>, 
 Yonghong Song <yonghong.song@...ux.dev>, KP Singh <kpsingh@...nel.org>, 
 Stanislav Fomichev <sdf@...ichev.me>, Hao Luo <haoluo@...gle.com>, 
 Jiri Olsa <jolsa@...nel.org>, Jiri Kosina <jikos@...nel.org>, 
 Benjamin Tissoires <bentiss@...nel.org>, Tejun Heo <tj@...nel.org>, 
 David Vernet <void@...ifault.com>, Ingo Molnar <mingo@...hat.com>, 
 Peter Zijlstra <peterz@...radead.org>, Juri Lelli <juri.lelli@...hat.com>, 
 Vincent Guittot <vincent.guittot@...aro.org>, 
 Dietmar Eggemann <dietmar.eggemann@....com>, 
 Steven Rostedt <rostedt@...dmis.org>, Ben Segall <bsegall@...gle.com>, 
 Mel Gorman <mgorman@...e.de>, Valentin Schneider <vschneid@...hat.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org, 
 bpf@...r.kernel.org, linux-input@...r.kernel.org, 
 Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH bpf-next 0/9] bpf: Constify BPF ops

Move struct bpf_struct_ops into read-only memory to protect against
accidental and malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
Thomas Weißschuh (9):
      bpf: tcp: Remove inaccurate comment about extern
      bpf: Move func_models from bpf_struct_ops to bpf_struct_ops_desc
      bpf: Allow registration of const struct bpf_struct_ops
      const_structs.checkpatch: add bpf_struct_ops
      bpf: Allow registration of const cfi_stubs
      bpf, net: tcp: Constify BPF ops
      bpf, net: dummy_ops: Constify BPF ops
      HID: bpf: constify BPF ops
      sched_ext: Constify BPF ops

 drivers/hid/bpf/hid_bpf_struct_ops.c |  4 ++--
 include/linux/bpf.h                  |  8 ++++----
 include/linux/btf.h                  |  2 +-
 kernel/bpf/bpf_struct_ops.c          |  8 ++++----
 kernel/bpf/btf.c                     |  4 ++--
 kernel/sched/ext.c                   |  4 ++--
 net/bpf/bpf_dummy_struct_ops.c       | 10 +++++-----
 net/ipv4/bpf_tcp_ca.c                |  7 +++----
 scripts/const_structs.checkpatch     |  1 +
 9 files changed, 24 insertions(+), 24 deletions(-)
---
base-commit: fc39fb56917bb3cb53e99560ca3612a84456ada2
change-id: 20241127-bpf-const-ops-add2866b3157

Best regards,
-- 
Thomas Weißschuh <linux@...ssschuh.net>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ