Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030553Ab2B2P66 (ORCPT ); Wed, 29 Feb 2012 10:58:58 -0500 Received: from exchange.solarflare.com ([216.237.3.220]:52926 "EHLO ocex02.SolarFlarecom.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754230Ab2B2P64 (ORCPT ); Wed, 29 Feb 2012 10:58:56 -0500 Message-ID: <1330531139.8460.192.camel@deadeye> Subject: Re: [PATCH 0/8] validate MAC address before call .ndo_set_mac_address From: Ben Hutchings To: Danny Kukawka CC: "David S. Miller" , Eilon Greenstein , Jon Mason , Danny Kukawka , Alexey Dobriyan , Eric Dumazet , Florian Fainelli , Geert Uytterhoeven , Javier Martinez Canillas , Jeff Kirsher , Jiri Kosina , Jiri Pirko , Joe Perches , John Crispin , , Lucas De Marchi , =?UTF-8?Q?Micha=C5=82_Miros=C5=82aw?= , Neil Horman , , Paul Gortmaker , Ralf Baechle , Randy Dunlap , Stephen Hemminger Date: Wed, 29 Feb 2012 15:58:59 +0000 In-Reply-To: <1330530176-24952-1-git-send-email-danny.kukawka@bisect.de> References: <1330530176-24952-1-git-send-email-danny.kukawka@bisect.de> Organization: Solarflare Communications Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [88.96.1.126] X-TM-AS-Product-Ver: SMEX-10.0.0.1412-6.800.1017-18742.005 X-TM-AS-Result: No--12.652100-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1281 Lines: 31 On Wed, 2012-02-29 at 16:42 +0100, Danny Kukawka wrote: > Validate the given MAC address directly in dev_set_mac_address() > if a .ndo_validate_addr function is available before calling > the .ndo_set_mac_address function. > > Changed .ndo_validate_addr to take a second parameter containing > a sockaddr struct to be checked instead of the net_device dev_addr. > The behaviour of .ndo_validate_addr is now: if the second parameter > is NULL the net_device->dev_addr gets validate, if != NULL > the given parameter/sockaddr gets validated instead. > > This patch series include adaptations for some drivers which > use .ndo_set_mac_address functions directly - to prevent double > checks and to enable validations via .ndo_validate_addr. [...] You have to do this as a single patch. The kernel and drivers should still build at each stage. Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/