Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5284748imm; Sun, 26 Aug 2018 15:45:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbVepyaSLT3DMhUCpdJh0FP3cGE/mgGQGYw2kq4ukvYDwmmE+mZs7pMrxGrncc1ldk0zsni X-Received: by 2002:a63:231c:: with SMTP id j28-v6mr2213159pgj.332.1535323547536; Sun, 26 Aug 2018 15:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535323547; cv=none; d=google.com; s=arc-20160816; b=MQsLN5cY+7xrGbB44xH2/hY7loLmQMAuQiRVKTfyzwowgOMXXj18DPiP2b0XiOy6sA 2Xim8YLsFf2fmPIwbCwDoSFVRFSmcW0vNkwfNoOys/9H/R7R0T8e/B/T+3aBJhIL5hb8 Z60SxXQXO3qe5LvfNdxQOJcB1iXQyd6+NZHpY49UkBFXTyybq1/ehknPwVGW1/viTovS PuNCOTZZaCFTM2cOXCpS0WI1N/ypV6YmbJgtttn1zZE5vY3QD92uF2V0LPPl9QDvHL6O ISNt9IwYU60exNwNLl8A96df/LHxP0GuRMKU7U6whjGUZImx0gJ9oeOx+TDY3j/fsvDc 7+Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ba4VDgS+87eulJQITL6BldBIMYUgdkmMIaDfytUJNDQ=; b=uKWjHn37tUOwVgJxUj7srK1iBCWV+LaM8R/A64Nlu4k+xcRp/IWkLfW4K/LFIQVMQH vITYZv1/uSzXoTIGSJYHwAao9CjMrcxzk/PsrEzP9SiKHhjQmpCky3nZBcMDywjUPJgW rGxg1O/2vvKNR93DmM2isymbmlatLZgnYV+hopybO8X0sXz601qL0lzetdgm1Lrh+nRJ VzgXJnvsdqYOAxwuU6HSzXTafNIBZ943WJoQ9BKzOYgVGYEVQI8mqYiNrC+WypXO+A+e Hk/AQ9qG5+0UK8NrotPLdUsF3DqtiGmVVABkzo1O5Z7jXqvGYvLOnimPfFsHI8xRvOJX +bbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12-v6si12125294plp.464.2018.08.26.15.45.20; Sun, 26 Aug 2018 15:45:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726995AbeH0C1d (ORCPT + 99 others); Sun, 26 Aug 2018 22:27:33 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:40094 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbeH0C1d (ORCPT ); Sun, 26 Aug 2018 22:27:33 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fu3kg-00061C-It; Sun, 26 Aug 2018 22:43:22 +0000 Date: Sun, 26 Aug 2018 23:43:22 +0100 From: Al Viro To: Joe Perches Cc: Julia Lawall , Kees Cook , LKML , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Network Development Subject: Re: [PATCH] net: sched: Fix memory exposure from short TCA_U32_SEL Message-ID: <20180826224322.GX6515@ZenIV.linux.org.uk> References: <20180826055801.GA42063@beast> <20180826061534.GT6515@ZenIV.linux.org.uk> <20180826173236.GU6515@ZenIV.linux.org.uk> <20180826212421.GW6515@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 26, 2018 at 03:26:54PM -0700, Joe Perches wrote: > On Sun, 2018-08-26 at 22:24 +0100, Al Viro wrote: > > On Sun, Aug 26, 2018 at 11:57:57AM -0700, Joe Perches wrote: > > > > > > That, BTW, is why I hate the use of sizeof(*p) in kmalloc, etc. > > > > arguments. typeof is even worse in that respect. > > > > > > True. Semantic searches via tools like coccinelle could help here > > > but those searches are quite a bit slower than straightforward greps. > > > > Those searches are .config-sensitive as well, which can be much more > > unpleasant than being slow... > > Are they? Julia? They work pretty much on preprocessor output level; if something it ifdef'ed out on given config, it won't be seen...