From: Laszlo Ersek <lersek@redhat.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] linux-2.6.18/netback: use correct index for invalidation in netbk_tx_check_mop()
Date: Fri, 18 Nov 2011 17:25:06 +0100 [thread overview]
Message-ID: <4EC686E2.8020209@redhat.com> (raw)
In-Reply-To: <4EC6686B0200007800061D60@nat28.tlf.novell.com>
Hi,
On 11/18/11 14:15, Jan Beulich wrote:
> --- a/drivers/xen/netback/netback.c
> +++ b/drivers/xen/netback/netback.c
> @@ -1155,7 +1155,7 @@ static int netbk_tx_check_mop(struct sk_
> pending_idx = *((u16 *)skb->data);
> netif_idx_release(pending_idx);
> for (j = start; j< i; j++) {
> - pending_idx = (unsigned long)shinfo->frags[i].page;
> + pending_idx = (unsigned long)shinfo->frags[j].page;
> netif_idx_release(pending_idx);
> }
Please excuse the uneducated question: what could be the consequences of using the wrong index here? I notice that with the fix, frags[i].page is never touched, while without the fix, it is the only one that's released.
I'm asking because we have an elusive bug: netloop sometimes crashes in skb_remove_foreign_references(). As of 1125:985b8f62df25, the crash happens on line 118:
116 vaddr = kmap_skb_frag(&skb_shinfo(skb)->frags[i]);
117 off = skb_shinfo(skb)->frags[i].page_offset;
118 memcpy(page_address(page) + off,
119 vaddr + off,
120 skb_shinfo(skb)->frags[i].size);
because the PTE for the vaddr returned by kmap_skb_frag() for the first frag is 0.
It appears somehow related to NFS and closing/reopening TCP connections for NFS.
Thanks!
Laszlo
next prev parent reply other threads:[~2011-11-18 16:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-18 13:15 [PATCH] linux-2.6.18/netback: use correct index for invalidation in netbk_tx_check_mop() Jan Beulich
2011-11-18 13:25 ` Jan Beulich
2011-11-18 14:01 ` Ian Campbell
2011-11-18 16:25 ` Laszlo Ersek [this message]
2011-11-18 16:46 ` Jan Beulich
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=4EC686E2.8020209@redhat.com \
--to=lersek@redhat.com \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.