From: Daniel Borkmann <dborkman@redhat.com>
To: Brendan Hickey <bhickey@google.com>
Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] tools: bpf_dbg: register misuse
Date: Mon, 28 Apr 2014 10:49:08 +0200 [thread overview]
Message-ID: <535E1604.2090404@redhat.com> (raw)
In-Reply-To: <CA+Z8YJL3zEz1n1ayhSWQRRSxiL__97RciQOWhLGT2VjjdqT0Lg@mail.gmail.com>
On 04/25/2014 11:23 PM, Brendan Hickey wrote:
> From: Brendan Hickey <bhickey@google.com>
> Date: Fri, 25 Apr 2014 17:22:52 -0400
> Subject: [PATCH] bpf_dbg: Fix erroneous register use for AND
>
> The AND instruction is erroneously using the X register instead of the K
> register.
>
> Signed-off-by: Brendan Hickey <bhickey@google.com>
Sorry for the late reply as I'm on vacations currently.
Patch looks good to me, but it looks like it got whitespace
corrupted by your email client. Please submit this against
'net' in subject line. Otherwise when this is fixed, feel
free to add my ack:
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Thanks, Brendan!
> ---
> tools/net/bpf_dbg.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/net/bpf_dbg.c b/tools/net/bpf_dbg.c
> index 65dc757..5e54848 100644
> --- a/tools/net/bpf_dbg.c
> +++ b/tools/net/bpf_dbg.c
> @@ -823,7 +823,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;
>
prev parent reply other threads:[~2014-04-28 8:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-25 20:52 [PATCH] tools: bpf_dbg: register misuse Brendan Hickey
2014-04-25 21:15 ` Alexei Starovoitov
2014-04-25 21:23 ` Brendan Hickey
2014-04-28 8:49 ` Daniel Borkmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=535E1604.2090404@redhat.com \
--to=dborkman@redhat.com \
--cc=alexei.starovoitov@gmail.com \
--cc=bhickey@google.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).