From: David Miller <davem@davemloft.net>
To: wei.liu2@citrix.com
Cc: netdev@vger.kernel.org, xen-devel@lists.xen.org,
paul.durrant@citrix.com, zoltan.kiss@citrix.com,
edwin@etorok.net, david.vrabel@citrix.com,
ian.campbell@citrix.com
Subject: Re: [PATCH net V2] xen-netback: disable rogue vif in kthread context
Date: Wed, 26 Mar 2014 16:44:47 -0400 (EDT) [thread overview]
Message-ID: <20140326.164447.416212657407875997.davem@davemloft.net> (raw)
In-Reply-To: <1395750051-15932-1-git-send-email-wei.liu2@citrix.com>
From: Wei Liu <wei.liu2@citrix.com>
Date: Tue, 25 Mar 2014 12:20:51 +0000
> When netback discovers frontend is sending malformed packet it will
> disables the interface which serves that frontend.
>
> However disabling a network interface involving taking a mutex which
> cannot be done in softirq context, so we need to defer this process to
> kthread context.
>
> This patch does the following:
> 1. introduce a flag to indicate the interface is disabled.
> 2. check that flag in TX path, don't do any work if it's true.
> 3. check that flag in RX path, turn off that interface if it's true.
>
> The reason to disable it in RX path is because RX uses kthread. After
> this change the behavior of netback is still consistent -- it won't do
> any TX work for a rogue frontend, and the interface will be eventually
> turned off.
>
> Also change a "continue" to "break" after xenvif_fatal_tx_err, as it
> doesn't make sense to continue processing packets if frontend is rogue.
>
> This is a fix for XSA-90.
>
> Reported-by: Török Edwin <edwin@etorok.net>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
What is the status of this patch?
next prev parent reply other threads:[~2014-03-26 20:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 12:20 [PATCH net V2] xen-netback: disable rogue vif in kthread context Wei Liu
2014-03-25 13:04 ` [Xen-devel] " David Vrabel
2014-03-25 13:38 ` Wei Liu
2014-03-25 13:40 ` Zoltan Kiss
2014-03-26 20:44 ` David Miller [this message]
2014-03-28 18:37 ` David Miller
2014-03-31 10:30 ` Ian Campbell
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=20140326.164447.416212657407875997.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=david.vrabel@citrix.com \
--cc=edwin@etorok.net \
--cc=ian.campbell@citrix.com \
--cc=netdev@vger.kernel.org \
--cc=paul.durrant@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=zoltan.kiss@citrix.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).