Re: [PATCH v6 bpf-next] bpf: Explicitly zero-extend R0 after 32-bit cmpxchg

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

 



On Wed, Mar 3, 2021 at 3:04 AM Brendan Jackman <jackmanb@xxxxxxxxxx> wrote:
>
> Note this still goes on top of Ilya's patch:
>
> https://lore.kernel.org/bpf/20210301154019.129110-1-iii@xxxxxxxxxxxxx/T/#u

It didn't. I had to manually patch it in.

> +static bool is_cmpxchg_insn(const struct bpf_insn *insn)
> +{
> +       return (BPF_CLASS(insn->code) == BPF_STX &&
> +               BPF_MODE(insn->code) == BPF_ATOMIC &&
> +               insn->imm == BPF_CMPXCHG);
> +}

I've also removed unnecessary () and applied to "bpf" tree.

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