From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [RFC] nl80211: use policy range validation where applicable Date: Wed, 26 Sep 2018 22:09:43 +0200 Message-ID: <1537992583.28767.24.camel@sipsolutions.net> References: <20180926200630.23399-1-johannes@sipsolutions.net> <20180926200731.23491-1-johannes@sipsolutions.net> (sfid-20180926_220807_433903_259DD5BE) Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org Return-path: Received: from s3.sipsolutions.net ([144.76.43.62]:46012 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbeI0CYe (ORCPT ); Wed, 26 Sep 2018 22:24:34 -0400 In-Reply-To: <20180926200731.23491-1-johannes@sipsolutions.net> (sfid-20180926_220807_433903_259DD5BE) Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2018-09-26 at 22:07 +0200, Johannes Berg wrote: > From: Johannes Berg > > Many range checks can be done in the policy, move them > there. A few in mesh are added in the code (taken out of > the macros) because they don't fit into the s16 range in > the policy validation. Forgot to say - this saves 550 bytes of .text on x86-64 for me. johannes