Re: [RFC bpf-next 8/9] libbpf: support llvm-generated indirect jumps

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

 



On Tue, 2025-07-08 at 14:25 -0700, Alexei Starovoitov wrote:

[...]

> > LLVM would produce:
> > 
> >   0000000000000000 <foo>:
> >        ...
> >        1:       w1 = w1
> >        2:       r1 <<= 0x3
> 
> If we go this route, let's drop this *8 and make it an index ?
> Less checks in the verifier...
> 
> >        3:       gotox r1
> >                 0000000000000038:  R_BPF_64_64  .BPF.JT.0.0

Makes sense to me.

[...]





[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