[PATCH bpf-next v2 0/2] bpf: Fix a umin > umax reg bound error

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

 



From: Xu Kuohai <xukuohai@xxxxxxxxxx>

This patchset fixes a umin > umax reg bound error and adds cases for it.

v2:
1. add bound check to avoid min > max 
2. update 32-bit reg min/max when 64-bit reg value is a constant
3. add Fixes tag

v1: https://lore.kernel.org/bpf/20230307220449.2933650-1-xukuohai@xxxxxxxxxxxxxxx/

Xu Kuohai (2):
  bpf: Fix a umin > umax reg bound error
  selftests/bpf: check bounds not in the 32-bit range

 kernel/bpf/verifier.c                         | 143 ++++++++++++------
 tools/testing/selftests/bpf/verifier/bounds.c | 121 +++++++++++++++
 2 files changed, 214 insertions(+), 50 deletions(-)

-- 
2.30.2




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux