All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xenproject.org, Wei Liu <wei.liu2@citrix.com>,
	Paul Durrant <paul.durrant@citrix.com>
Subject: bogus wrap check in xen-netback
Date: Wed, 25 Apr 2018 09:19:56 +0200	[thread overview]
Message-ID: <20180425091956.7e4c98bc.olaf@aepfle.de> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1222 bytes --]

With commit 48856286b64e ("xen/netback: shutdown the ring if it contains garbage.") a new check was added to xen-netback, which triggers for me.

Since there are bugs in ring buffer handling I tried to trigger them earlier by changing RING_IDX from u32 to u16. Now I found another one, and I wonder if the error below could potentially also hit with u32:

...
[  624.186492] br0: port 3(vif2.0) entered forwarding state
[  624.186522] br0: port 3(vif2.0) entered forwarding state
[  680.865398] vif vif-1-0 vif1.0: Impossible number of requests. req_prod 0, req_cons 65400, size 256
[  680.865402] vif vif-1-0 vif1.0: fatal error; disabling device
[  680.865495] br0: port 2(vif1.0) entered disabled state
[  689.433849] vif vif-2-0 vif2.0: Impossible number of requests. req_prod 0, req_cons 65527, size 256
[  689.433857] vif vif-2-0 vif2.0: fatal error; disabling device
[  689.433945] br0: port 3(vif2.0) entered disabled state
[  690.930512] pktgen: Packet Generator for packet performance testing. Version: 2.75
...

What exactly is that check in xenvif_tx_build_gops trying to achieve? Subtracting a non-zero value from zero will always create something larger than XEN_NETIF_TX_RING_SIZE.

Olaf

[-- Attachment #1.2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

             reply	other threads:[~2018-04-25  7:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-25  7:19 Olaf Hering [this message]
2018-04-25  7:28 ` bogus wrap check in xen-netback Juergen Gross
2018-04-25  7:39   ` Olaf Hering
2018-04-25  8:59     ` Wei Liu
2018-04-25  9:04       ` Olaf Hering
2018-04-25  9:48         ` Jan Beulich
2018-04-25 10:06         ` Wei Liu
2018-04-25 10:26           ` Jan Beulich
2018-04-25 10:31             ` Wei Liu
2018-04-25 10:35               ` Olaf Hering
2018-04-25 10:47                 ` Wei Liu

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=20180425091956.7e4c98bc.olaf@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=paul.durrant@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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 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.