Bug in hash changes to netback in 4.7.2 kernel
A message that is not in the archive (sent off-list or not yet received): [email protected]
When I run Xen (4.7.0) nested in VirtualBox (5.0.24_Ubuntu r108355) with a linux-4.7.2 Dom0 kernel, none of my DomU's (linux-3.17.3) have network connectivity because they reject all packets with the error 'Invalid extra type: 4'. When I run exactly the same setup on bare metal, I don't get the error messages.
From poking around in the code this seems to be because the 4.7.2 kernel wrongly decides that the DomU's will understand EXTRA_TYPE_HASH, and so attach it to the network packet. Since the DomU's don't understand the extra info their netfront driver rejects the whole packet.
I'm guessing that the nesting is confusing the new hash code.
I also wonder if the DomU's should simply ignore extra info that they don't understand rather than rejecting the packet.
Cheers,
Anthony
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 13 lines
-----Original Message-----
From: Anthony Wright [mailto:[email protected]]
Sent: 06 September 2016 13:23
To: Xen-devel <[email protected]>
Cc: Paul Durrant <[email protected]>
Subject: Bug in hash changes to netback in 4.7.2 kernelWhen I run Xen (4.7.0) nested in VirtualBox (5.0.24_Ubuntu r108355) with a linux-4.7.2 Dom0 kernel, none of my DomU's (linux-3.17.3) have network connectivity because they reject all packets with the error 'Invalid extra type:
4'. When I run exactly the same setup on bare metal, I don't get the error messages.
Quoted 5 lines
From poking around in the code this seems to be because the 4.7.2 kernel wrongly decides that the DomU's will understand
EXTRA_TYPE_HASH, and so attach it to the network packet. Since the DomU's don't understand the extra info their netfront driver rejects the whole packet.
The code in xenvif_select_queue() deliberately clears the skb->sw_hash field (which gates adding the new extra type) if the hash algorithm selected by the frontend is 'none', which should be the default. So, unless you have a frontend that is implementing the control ring protocol, but failing to recognize the new extra type I'm not how you're seeing the problem... unless somehow a packet which hash is getting into netback's start_xmit without first having gone through select_queue?
Quoted 5 lines
I'm guessing that the nesting is confusing the new hash code.
I also wonder if the DomU's should simply ignore extra info that they don't understand rather than rejecting the packet.
Yes, that would certainly be sensible.
Paul
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 13 lines · Paul Durrant
Quoted 13 lines
-----Original Message-----
From: Anthony Wright [mailto:[email protected]]
Sent: 06 September 2016 13:23
To: Xen-devel <[email protected]>
Cc: Paul Durrant <[email protected]>
Subject: Bug in hash changes to netback in 4.7.2 kernelWhen I run Xen (4.7.0) nested in VirtualBox (5.0.24_Ubuntu r108355) with a linux-4.7.2 Dom0 kernel, none of my DomU's (linux-3.17.3) have network connectivity because they reject all packets with the error 'Invalid extra type:
4'. When I run exactly the same setup on bare metal, I don't get the error messages.
Quoted 5 lines
Quoted 4 lines
From poking around in the code this seems to be because the 4.7.2 kernel wrongly decides that the DomU's will understand
EXTRA_TYPE_HASH, and so attach it to the network packet. Since the DomU's don't understand the extra info their netfront driver rejects the whole packet.The code in
xenvif_select_queue()deliberately clears theskb->sw_hashfield (which gates adding the new extra type) if the hash algorithm selected by the frontend is 'none', which should be the default. So, unless you have a frontend that is implementing the control ring protocol, but failing to recognize the new extra type I'm not how you're seeing the problem... unless somehow a packet which hash is getting into netback'sstart_xmitwithout first having gone throughselect_queue?
I very much doubt that the frontend is implementing the control ring protocol, the DomUs are running stock linux-3.17.3. I build the system from source, so happy to re-compile with debug code.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 29 lines
-----Original Message-----
From: Anthony Wright [mailto:[email protected]]
Sent: 06 September 2016 14:37
To: Paul Durrant <[email protected]>; Xen-devel <xen- [email protected]>
Subject: Re: Bug in hash changes to netback in 4.7.2 kernelQuoted 11 lines · Paul Durrant
Quoted 11 lines
-----Original Message-----
From: Anthony Wright [mailto:[email protected]]
Sent: 06 September 2016 13:23
To: Xen-devel <[email protected]>
Cc: Paul Durrant <[email protected]>
Subject: Bug in hash changes to netback in 4.7.2 kernelWhen I run Xen (4.7.0) nested in VirtualBox (5.0.24_Ubuntu r108355) with a
linux-4.7.2 Dom0 kernel, none of my DomU's (linux-3.17.3) have network connectivity because they reject all packets with the error'Invalid extra type:
Quoted 7 lines
Quoted 7 lines
4'. When I run exactly the same setup on bare metal, I don't get the error messages.
From poking around in the code this seems to be because the 4.7.2 kernel wrongly decides that the DomU's will understand
EXTRA_TYPE_HASH, and so attach it to the network packet. Since the DomU's don't understand the extra info their netfront driver rejects thewhole packet.
Quoted 1 line
The code in
xenvif_select_queue()deliberately clears theskb->sw_hash
Quoted 9 lines
field (which gates adding the new extra type) if the hash algorithm selected by the frontend is 'none', which should be the default. So, unless you have a frontend that is implementing the control ring protocol, but failing to recognize the new extra type I'm not how you're seeing the problem... unless somehow a packet which hash is getting into netback's
start_xmitwithout first having gone throughselect_queue?
I very much doubt that the frontend is implementing the control ring protocol, the DomUs are running stock linux-3.17.3. I build the system from source, so happy to re-compile with debug code.
Well, if you could have a look to see whether the skbs have sw_hash set when they get into net_rx_action() that would be something, and also check whether xenvif_select_queue() is being properly called. I'll take a look and see if I can repro this myself when I get some time.
Paul
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel