mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
bpf_dbg: fix wrong register usage
The AND instruction is erroneously using the X register instead of the K register. Signed-off-by: Brendan Hickey <bhickey@google.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f114890cdf
commit
e5744fe9d2
@ -820,7 +820,7 @@ do_div:
|
||||
r->A &= r->X;
|
||||
break;
|
||||
case BPF_ALU_AND | BPF_K:
|
||||
r->A &= r->X;
|
||||
r->A &= K;
|
||||
break;
|
||||
case BPF_ALU_OR | BPF_X:
|
||||
r->A |= r->X;
|
||||
|
Loading…
x
Reference in New Issue
Block a user