Re: [PATCH bpf-next v2] [tools/bpf] workaround a verifier failure for test_progs

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

 



On 11/7/19 6:00 PM, Yonghong Song wrote:
With latest llvm compiler, running test_progs will have
the following verifier failure for test_sysctl_loop1.o:
   libbpf: load bpf program failed: Permission denied
   libbpf: -- BEGIN DUMP LOG ---
   libbpf:
   invalid indirect read from stack var_off (0x0; 0xff)+196 size 7
   ...
   libbpf: -- END LOG --
   libbpf: failed to load program 'cgroup/sysctl'
   libbpf: failed to load object 'test_sysctl_loop1.o'

The related bytecodes look below:
   0000000000000308 LBB0_8:
       97:       r4 = r10
       98:       r4 += -288
       99:       r4 += r7
      100:       w8 &= 255
      101:       r1 = r10
      102:       r1 += -488
      103:       r1 += r8
      104:       r2 = 7
      105:       r3 = 0
      106:       call 106
      107:       w1 = w0
      108:       w1 += -1
      109:       if w1 > 6 goto -24 <LBB0_5>
      110:       w0 += w8
      111:       r7 += 8
      112:       w8 = w0
[...]
Applied, thanks!



[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