summaryrefslogtreecommitdiffstats
path: root/fs/hpfs/super.c
diff options
context:
space:
mode:
authorDaniel Borkmann2015-07-13 20:49:32 +0200
committerDavid S. Miller2015-07-13 22:11:41 +0200
commitc4675f935399cbdd3ba3869b0bf6c60528c8111a (patch)
treef4ccb3f0c039382f2a3ce0a9247197a0712aeb03 /fs/hpfs/super.c
parentnet: Build IPv6 into kernel by default (diff)
downloadkernel-qcow2-linux-c4675f935399cbdd3ba3869b0bf6c60528c8111a.tar.gz
kernel-qcow2-linux-c4675f935399cbdd3ba3869b0bf6c60528c8111a.tar.xz
kernel-qcow2-linux-c4675f935399cbdd3ba3869b0bf6c60528c8111a.zip
ebpf: remove self-assignment in interpreter's tail call
ARG1 = BPF_R1 as it stands, evaluates to regs[BPF_REG_1] = regs[BPF_REG_1] and thus has no effect. Add a comment instead, explaining what happens and why it's okay to just remove it. Since from user space side, a tail call is invoked as a pseudo helper function via bpf_tail_call_proto, the verifier checks the arguments just like with any other helper function and makes sure that the first argument (regs[BPF_REG_1])'s type is ARG_PTR_TO_CTX. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@plumgrid.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/hpfs/super.c')
0 files changed, 0 insertions, 0 deletions