[PATCH v1 bpf 0/2] bpf: Don't trigger __bpf_prog_ret0_warn() for -ENOMEM.

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

 



syzkaller reported a splat in __bpf_prog_ret0_warn() with a
sane bpf prog, which was triggered by fault injection.

This series suppresses the warning in such a case.


Kuniyuki Iwashima (2):
  bpf: Allow bpf_int_jit_compile() to set errno.
  bpf: Set -ENOMEM to err in bpf_int_jit_compile().

 arch/arc/net/bpf_jit_core.c      | 21 +++++++++++++--------
 arch/arm/net/bpf_jit_32.c        | 10 ++++++++--
 arch/arm64/net/bpf_jit_comp.c    | 10 ++++++++--
 arch/loongarch/net/bpf_jit.c     | 10 ++++++++--
 arch/mips/net/bpf_jit_comp.c     | 15 +++++++++++----
 arch/parisc/net/bpf_jit_core.c   | 10 ++++++++--
 arch/powerpc/net/bpf_jit_comp.c  | 10 ++++++++--
 arch/riscv/net/bpf_jit_core.c    | 10 ++++++++--
 arch/s390/net/bpf_jit_comp.c     |  9 +++++++--
 arch/sparc/net/bpf_jit_comp_64.c | 10 ++++++++--
 arch/x86/net/bpf_jit_comp.c      | 11 +++++++++--
 arch/x86/net/bpf_jit_comp32.c    |  9 +++++++--
 include/linux/filter.h           |  2 +-
 kernel/bpf/core.c                |  6 ++++--
 kernel/bpf/verifier.c            | 21 +++++++++++++++------
 15 files changed, 123 insertions(+), 41 deletions(-)

-- 
2.49.0





[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