From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Michael Chang <mchang@suse.com>
Cc: grub-devel@gnu.org
Subject: Re: [PATCH] icmp6 fix no respond to neighbor solicit message
Date: Mon, 3 Nov 2014 20:04:25 +0300 [thread overview]
Message-ID: <20141103200425.0a4f5e2f@opensuse.site> (raw)
In-Reply-To: <1415003265-13848-1-git-send-email-mchang@suse.com>
В Mon, 3 Nov 2014 16:27:45 +0800
Michael Chang <mchang@suse.com> пишет:
> The structure size used in grub_netbuff_pull to get the pointer to
> option header is apparently wrong, which leads to subsequent range check
> failed and therefore not responding to any neighbor solicit message in my
> testing.
pushed
> ---
> grub-core/net/icmp6.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/grub-core/net/icmp6.c b/grub-core/net/icmp6.c
> index bbc9020..796d549 100644
> --- a/grub-core/net/icmp6.c
> +++ b/grub-core/net/icmp6.c
> @@ -205,7 +205,7 @@ grub_net_recv_icmp6_packet (struct grub_net_buff *nb,
> if (ttl != 0xff)
> break;
> nbh = (struct neighbour_solicit *) nb->data;
> - err = grub_netbuff_pull (nb, sizeof (struct router_adv));
> + err = grub_netbuff_pull (nb, sizeof (*nbh));
> if (err)
> {
> grub_netbuff_free (nb);
prev parent reply other threads:[~2014-11-03 17:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 8:27 [PATCH] icmp6 fix no respond to neighbor solicit message Michael Chang
2014-11-03 17:04 ` Andrei Borzenkov [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=20141103200425.0a4f5e2f@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
--cc=mchang@suse.com \
/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).