Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5396941imm; Sun, 26 Aug 2018 19:02:38 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdac6b8WgKn/Z4vDanoOr1/81nSDr27qeEFusjaC8VWrfrzdVO/aSTxj8//WYCHj542I0iDy X-Received: by 2002:a63:31c2:: with SMTP id x185-v6mr10312981pgx.373.1535335358831; Sun, 26 Aug 2018 19:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535335358; cv=none; d=google.com; s=arc-20160816; b=OA7/cswKDlCzL9CLU/CzFUvT5kJMVaxSNJJnQQFqMDFftk2sWUYU/M8vDjE3owvPuy D8wxsjgjte92I5c1c600c9ClTnl+Z35KtjvHMKsvip2Q86qr7Pcmcyu7kKE4L9zzQNsL NxBr7dOPy+3oQJ0H7e1qcuwtoFN7pWBpNKcssuGIKECHOU7Q2t5vqq6RctJw8FY+d5HC LPFsmQRv+hxR8QhkAxOIUGTtU7s46BNkNlofdOmcVz2E4ZyLFZaUA4EMKTr7r0t/8fJM KGQjrT4uwpN+lh153pBJkEx7DrjsNu35VOSyrY+VLrhn2UGFADOPQR+NBEVsUhF8VMVf kQ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=vuUQH5LNZD+ml7zWHy9bpkdueG+tV8yDcVc6/DVV+IM=; b=h9Y1JjDfIRcak14eT0937njCaf6+fEinB3mM4KoGPLM+L4orzZswSQskrPiorg6Gw3 Fs8wMD1CTli4GcciZBHNAl4VNcNZu8YePaQDrTaPAwZw39K07seC2sfkdhxbjyIWiT4J bsGyJihJ1nHLNCGAa7i4DApIlg0r92NMQMbGQnVbI7lkQu4h4Tz77oc+rte42NyfVlHB 3Ajv35k+Lb2fCo7QZTLrx4GjRbZB3haP7Ve/wfaU++rOkrJAyblFV8P2aU4HAqmhyhMc NYwIoG+bpfRjyf/La7Qb4e+H9xKsmGRMvzD/7eX863KGEPUPCbtFUM9zuZOYmtRkIOyq zlCQ== 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 n7-v6si12354842plp.363.2018.08.26.19.02.23; Sun, 26 Aug 2018 19:02:38 -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 S1727147AbeH0FpT (ORCPT + 99 others); Mon, 27 Aug 2018 01:45:19 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:21061 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbeH0FpT (ORCPT ); Mon, 27 Aug 2018 01:45:19 -0400 X-IronPort-AV: E=Sophos;i="5.53,293,1531778400"; d="scan'208";a="276809348" Received: from unknown (HELO hadrien) ([208.181.63.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2018 04:00:48 +0200 Date: Sun, 26 Aug 2018 22:00:46 -0400 (EDT) From: Julia Lawall X-X-Sender: jll@hadrien To: Al Viro cc: Joe Perches , 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 In-Reply-To: <20180826224322.GX6515@ZenIV.linux.org.uk> Message-ID: References: <20180826055801.GA42063@beast> <20180826061534.GT6515@ZenIV.linux.org.uk> <20180826173236.GU6515@ZenIV.linux.org.uk> <20180826212421.GW6515@ZenIV.linux.org.uk> <20180826224322.GX6515@ZenIV.linux.org.uk> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 Aug 2018, Al Viro wrote: > 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... Coccinelle doesn't care what is ifdef'd out. It only misses the things it can't parse. Very strange ifdefs could indeed cause that, but it should be a minor problem. julia