From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: David Laight <David.Laight@ACULAB.COM>
Cc: "e1000-devel@lists.sourceforge.net"
<e1000-devel@lists.sourceforge.net>,
"Choi, Sy Jong" <sy.jong.choi@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Hayato Momma" <h-momma@ce.jp.nec.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"Hiroshi Shimamoto" <h-shimamoto@ct.jp.nec.com>,
"Bjørn Mork" <bjorn@mork.no>
Subject: Re: [PATCH 1/2] if_link: Add VF multicast promiscuous mode control
Date: Thu, 22 Jan 2015 02:52:46 -0800 [thread overview]
Message-ID: <1421923966.2560.30.camel@jtkirshe-mobl> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1CAD0C8A@AcuExch.aculab.com>
[-- Attachment #1.1: Type: text/plain, Size: 2595 bytes --]
On Thu, 2015-01-22 at 09:50 +0000, David Laight wrote:
> From: Skidmore, Donald C
> > > > From: Hiroshi Shimamoto
> > > > > My concern is what is the real issue that VF multicast
> promiscuous mode
> > > can cause.
> > > > > I think there is the 4k entries to filter multicast address,
> and the
> > > > > current ixgbe/ixgbevf can turn all bits on from VM. That is
> almost same as
> > > enabling multicast promiscuous mode.
> > > > > I mean that we can receive all multicast addresses by an
> onerous
> > > operation in untrusted VM.
> > > > > I think we should clarify what is real security issue in this
> context.
> > > >
> > > > If you are worried about passing un-enabled multicasts to users
> then
> > > > what about doing a software hash of received multicasts and
> checking
> > > > against an actual list of multicasts enabled for that hash
> entry.
> > > > Under normal conditions there is likely to be only a single
> address to check.
> > > >
> > > > It may (or may not) be best to use the same hash as any hashing
> > > > hardware filter uses.
> > >
> > > thanks for the comment. But I don't think that is the point.
> > >
> > > I guess, introducing VF multicast promiscuous mode seems to add
> new
> > > privilege to peek every multicast packet in VM and that doesn't
> look good.
> > > On the other hand, I think that there has been the same privilege
> in the
> > > current ixgbe/ixgbevf implementation already. Or I'm reading the
> code
> > > wrongly.
> > > I'd like to clarify what is the issue of allowing to receive all
> multicast packets.
> >
> > Allowing a VM to give itself the privilege of seeing every multicast
> packet
> > could be seen as a hole in VM isolation.
> > Now if the host system allows this policy I don't see this as an
> issue as
> > someone specifically allowed this to happen and then must not be
> concerned.
> > We could even log that it has occurred, which I believe your patch
> did do.
> > The issue is also further muddied, as you mentioned above, since
> some of
> > these multicast packets are leaking anyway (the HW currently uses a
> 12 bit mask).
> > It's just that this change would greatly enlarge that hole from a
> fraction to
> > all multicast packets.
>
> Why does it have anything to do with VM isolation?
> Isn't is just the same as if the VM were connected directly to the
> ethernet cable?
So give an example of when the VF driver is connected directly to the
ethernet cable and a PF driver (ixgbe) does not exist, at least that is
what you are suggesting.
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 392 bytes --]
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
[-- Attachment #3: Type: text/plain, Size: 257 bytes --]
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
next prev parent reply other threads:[~2015-01-22 10:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 10:50 [PATCH 1/2] if_link: Add VF multicast promiscuous mode control Hiroshi Shimamoto
2015-01-20 11:42 ` Bjørn Mork
2015-01-20 23:40 ` Hiroshi Shimamoto
2015-01-21 0:26 ` [E1000-devel] " Skidmore, Donald C
2015-01-21 1:07 ` Hiroshi Shimamoto
2015-01-21 1:30 ` [E1000-devel] " Skidmore, Donald C
2015-01-21 11:38 ` Hiroshi Shimamoto
2015-01-21 11:56 ` [E1000-devel] " David Laight
2015-01-21 12:18 ` Hiroshi Shimamoto
2015-01-21 20:27 ` Skidmore, Donald C
2015-01-22 9:50 ` [E1000-devel] " David Laight
2015-01-22 10:52 ` Jeff Kirsher [this message]
2015-01-22 19:00 ` Skidmore, Donald C
2015-01-22 19:31 ` Bjørn Mork
2015-01-22 21:34 ` Skidmore, Donald C
2015-01-23 0:32 ` Hiroshi Shimamoto
2015-01-23 1:21 ` [E1000-devel] " Skidmore, Donald C
2015-01-23 7:18 ` Alexander Duyck
2015-01-23 18:24 ` Skidmore, Donald C
2015-01-27 12:53 ` Hiroshi Shimamoto
2015-01-27 17:34 ` [E1000-devel] " Alexander Duyck
2015-01-21 9:26 ` Bjørn Mork
2015-01-20 11:53 ` David Laight
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=1421923966.2560.30.camel@jtkirshe-mobl \
--to=jeffrey.t.kirsher@intel.com \
--cc=David.Laight@ACULAB.COM \
--cc=bjorn@mork.no \
--cc=e1000-devel@lists.sourceforge.net \
--cc=h-momma@ce.jp.nec.com \
--cc=h-shimamoto@ct.jp.nec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sy.jong.choi@intel.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).