Re: [PATCH v1 bpf 0/4] bpf: sysctl: Fix data-races around net.core.bpf_XXX.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set got my attention because I found some issue about bpf_jit_harden. But after reading your patches, I did not get what the problem you are trying resolve and what is improved. You said there is a data race, what is that? Can you please show how does this happen? What is the influence?
Would you please let me know these background info?

On 2022/8/18 12:23, Kuniyuki Iwashima wrote:
This series split from [0] fixes data-races around 4 bpf knobs
in net_core_table.

[0]: https://lore.kernel.org/netdev/20220818035227.81567-1-kuniyu@xxxxxxxxxx/


Kuniyuki Iwashima (4):
   bpf: Fix data-races around bpf_jit_enable.
   bpf: Fix data-races around bpf_jit_harden.
   bpf: Fix data-races around bpf_jit_kallsyms.
   bpf: Fix a data-race around bpf_jit_limit.

  arch/arm/net/bpf_jit_32.c        |  2 +-
  arch/arm64/net/bpf_jit_comp.c    |  2 +-
  arch/mips/net/bpf_jit_comp.c     |  2 +-
  arch/powerpc/net/bpf_jit_comp.c  |  5 +++--
  arch/riscv/net/bpf_jit_core.c    |  2 +-
  arch/s390/net/bpf_jit_comp.c     |  2 +-
  arch/sparc/net/bpf_jit_comp_32.c |  5 +++--
  arch/sparc/net/bpf_jit_comp_64.c |  5 +++--
  arch/x86/net/bpf_jit_comp.c      |  2 +-
  arch/x86/net/bpf_jit_comp32.c    |  2 +-
  include/linux/filter.h           | 16 ++++++++++------
  kernel/bpf/core.c                |  2 +-
  net/core/sysctl_net_core.c       |  4 ++--
  13 files changed, 29 insertions(+), 22 deletions(-)




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux