netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] macvtap regression since 3.18
@ 2015-09-18  7:54 Christian Borntraeger
  2015-09-18  7:54 ` [PATCH 1/1] macvtap: Fix regression for macvtap ioctls Christian Borntraeger
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Borntraeger @ 2015-09-18  7:54 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: stable, netdev, Matthew Rosato, kvm, David S. Miller,
	Christian Borntraeger

Michael,

here is a fixup for macvtap. It was detected by running
several different patterns via uperf over multiple network
cards. Within some minutes, the network traffic stalled
and Matt bisected it down to 39ec7de7092b ("macvtap: fix
uninitialized access on TUNSETIFF"). Turns out that
this patch broke sndbuf setting. I dont know exactly what
went wrong in that testcase, but an earlier version of
the patch did the trick and the testcase is now stable
again.

I was tempted to add another variable, but u,up,s,sp seem
to have a meaning (signed,signed pointer) so I  made u
an unsigned int again. Long term we might want to refactor
the code to have 

int sk_sendbuf;
short ifr_flags;
int vnet_hdr_sz;

or something like that. But this rework would be to big
for stable.

Some of the casts that I added are not strictly necessary
as get/put_user already do this, but better safe than
sorry as we dont want to rely on the implementation of
macros. Opinions?


Christian Borntraeger (1):
  macvtap: Fix regression for macvtap ioctls

 drivers/net/macvtap.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.3.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-18 10:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18  7:54 [PATCH 0/1] macvtap regression since 3.18 Christian Borntraeger
2015-09-18  7:54 ` [PATCH 1/1] macvtap: Fix regression for macvtap ioctls Christian Borntraeger
2015-09-18 10:39   ` Michael S. Tsirkin

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).