From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752768AbbAUL55 (ORCPT ); Wed, 21 Jan 2015 06:57:57 -0500 Received: from smtp-out6.electric.net ([192.162.217.188]:53700 "EHLO smtp-out6.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbbAUL5t (ORCPT ); Wed, 21 Jan 2015 06:57:49 -0500 From: David Laight To: "'Hiroshi Shimamoto'" , "Skidmore, Donald C" , =?utf-8?B?QmrDuHJuIE1vcms=?= CC: "e1000-devel@lists.sourceforge.net" , "netdev@vger.kernel.org" , "Choi, Sy Jong" , "linux-kernel@vger.kernel.org" , Hayato Momma Subject: RE: [E1000-devel] [PATCH 1/2] if_link: Add VF multicast promiscuous mode control Thread-Topic: [E1000-devel] [PATCH 1/2] if_link: Add VF multicast promiscuous mode control Thread-Index: AQHQNRDn9S7pwXLQtk+h+o1qNyzJQpzJuLsg//955YCAATlDQIAAC34g Date: Wed, 21 Jan 2015 11:56:53 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6D1CAD01D6@AcuExch.aculab.com> References: <7F861DC0615E0C47A872E6F3C5FCDDBD05E0734E@BPXM14GP.gisp.nec.co.jp> <874mrlu18e.fsf@nemi.mork.no> <7F861DC0615E0C47A872E6F3C5FCDDBD05E07B7C@BPXM14GP.gisp.nec.co.jp> <7F861DC0615E0C47A872E6F3C5FCDDBD05E07F09@BPXM14GP.gisp.nec.co.jp> <7F861DC0615E0C47A872E6F3C5FCDDBD05E08FF6@BPXM14GP.gisp.nec.co.jp> In-Reply-To: <7F861DC0615E0C47A872E6F3C5FCDDBD05E08FF6@BPXM14GP.gisp.nec.co.jp> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-Outbound-IP: 213.249.233.130 X-Env-From: David.Laight@ACULAB.COM X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t0LBw3Nb019458 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. David ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þG«�éÿŠ{ayºʇڙë,j­¢f£¢·hš�ï�êÿ‘êçz_è®(­éšŽŠÝ¢j"�ú¶m§ÿÿ¾«þG«�éÿ¢¸?™¨è­Ú&£ø§~�á¶iO•æ¬z·švØ^¶m§ÿÿà ÿ¶ìÿ¢¸?–I¥