Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5395790imm; Sun, 26 Aug 2018 19:00:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZGplC/z3V14/Kk79Y09g7xEyX+nwDIqyGIh0CuVJLLSI613oirmV5dwMdGjt258sWjYiGI X-Received: by 2002:a17:902:5a02:: with SMTP id q2-v6mr1241376pli.253.1535335259315; Sun, 26 Aug 2018 19:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535335259; cv=none; d=google.com; s=arc-20160816; b=CA6ObbTzy1Kt7fDPqUbfqCV3Jt9CFPvEgGJz8e6LrSD6BkdWXtUp1jz+ClhGnaT8tT FdsdX9wSDdfA3HuZx1oIeTB7vAZ9SeoULuoNFAS8XpC22X5kE+pK6B/Er1D7xcEHPXWn 7T+duvvUrbFs5asJHgDqwMe9BHjlgvM6SVgqBxkJvUxM/Zd2l1VpE596f2/WwsJzct9H hkgpknSf8tJAcrGvSSkV2uue26g25yQbXB1SbRxY3Bc1RNVT8eNjOLmRp1pZEUEzILyB lt9xjK3qt3uZA4J/HbtDO9LxVISX90ZYJ42azanrpqo78SajhqgSBwKOZ+usMizUL4/4 YWow== 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=0ZkqKLxi3hC+UQX7hAHxoUs9wVyppAL9V21fsp1LGII=; b=zFIvFEwdObty5CkXZAYEzPnUz7uhTVb/FBvpfo9OGzTqAWxxLs5aa7Ub/h7d04tdsw 7hwfJq8dLBxEbVkvEEQi5tosO9NWyRZ+pCIlYnVLyzcvgc4xhNyrgDHddR0Ucj6sR7V3 UD1kK9U+4Uh3jMoBmgHpu9teEczN0vTDLPUdVxhg4cMJxkOUONduG1O0R+QU72XbO7UZ H0obTgpYWoriALLgMyokDWUIQ51MbVmct2hw5RM7N6B3v2l283L4isEAGVwY42tc6aZB SrGv4MEusdqoVJYb/2ZnNKig6PS55p3xB3CU8Z7WO+LE4NulgrJBNTjkC3g+ZE2E39Lm RSew== 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 i16-v6si1796132pgi.660.2018.08.26.19.00.43; Sun, 26 Aug 2018 19:00:59 -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 S1727094AbeH0FoD (ORCPT + 99 others); Mon, 27 Aug 2018 01:44:03 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:30604 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbeH0FoD (ORCPT ); Mon, 27 Aug 2018 01:44:03 -0400 X-IronPort-AV: E=Sophos;i="5.53,293,1531778400"; d="scan'208";a="276809293" 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 03:59:30 +0200 Date: Sun, 26 Aug 2018 21:59:28 -0400 (EDT) From: Julia Lawall X-X-Sender: jll@hadrien To: Joe Perches cc: Al Viro , 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: Message-ID: References: <20180826055801.GA42063@beast> <20180826061534.GT6515@ZenIV.linux.org.uk> <20180826173236.GU6515@ZenIV.linux.org.uk> <20180826212421.GW6515@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, 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? I don't completely understand the question. Coccinelle doens't know anything about the configuration. julia