Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5275771imm; Sun, 26 Aug 2018 15:29:17 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda1SX73iIU4G5auBiFKERUmRJyKvtjI5LYYG8YhmTJHdL+7FWbJdE82rjGByGjRMyWD0C7N X-Received: by 2002:a63:5358:: with SMTP id t24-v6mr312584pgl.208.1535322557922; Sun, 26 Aug 2018 15:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535322557; cv=none; d=google.com; s=arc-20160816; b=oQkLkpnOPpAjLRla91cPyrfQ4lB7akCYiRZMguYfQRXGMe9mMFJysS2bh0TgzQKfOS 0hcYmb3F+gZQXNME69F4gt4FYI73CLyvry/BmiP4BX6baqDdPgFmOWJpBmOdkOVuHab9 U/MDLncN0nkBN4eqfLM36nu9D0BJjUToT4RBhAxGGUc5ANrla7/OHITp7wpKcYtVdQHT +wVvmg325NpjHRdGwjuokywA6ECcjWUA7gwkKUiAytwA5IIpKshde2yRDlk5B4/tEigP 8g0V66Tx24ZNJJ0CPxZorK/WMiqBvA2+HZpSqPcynlzRvx0u+4iVQM9CkyUjMEcZi18u gcUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=dUiTPkQH/fO6s5+wD/LiGnABYmoShaPDcnjrGZHd8+E=; b=qcDniEnSSBMcpoU3HJveXUv5SerS/GkDG5ANp+AQ9PVNB92lfr28gp9JyG26ZVNp5/ LyBrZ7J0QZ5GbvvHNSPw4XE9nnNecmP1T591uxLH7DA6qYPyKruWvFzrBxaQIV12QuH4 CVSO2QYeBa/00nj8kpmh53F+CyFpvc0lBVPAp26YBXXQDfqOwBETBf9paeEOtHI1CLge PZcpMsa/jHFEtQFTOjePLt8W5DgO31qoGJCQbWc9jznSAylM2ra4l0GUf2iGodZ7YBR0 JT1lQdJf/+7tUcF3ULIYIwQY4uFfxgKD2oLkLejNOYc+c66gjy7Oms/cYAQ+h7m9mgL5 FCaQ== 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 e185-v6si12793374pgc.318.2018.08.26.15.28.49; Sun, 26 Aug 2018 15:29:17 -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 S1727026AbeH0CKx (ORCPT + 99 others); Sun, 26 Aug 2018 22:10:53 -0400 Received: from smtprelay0231.hostedemail.com ([216.40.44.231]:41676 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726802AbeH0CKx (ORCPT ); Sun, 26 Aug 2018 22:10:53 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id DABA2180A8847; Sun, 26 Aug 2018 22:26:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3865:3866:3870:3871:3874:4321:5007:6119:7903:10004:10400:10848:11232:11658:11914:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21627:30054:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: news54_3c9724538b734 X-Filterd-Recvd-Size: 1809 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Sun, 26 Aug 2018 22:26:56 +0000 (UTC) Message-ID: Subject: Re: [PATCH] net: sched: Fix memory exposure from short TCA_U32_SEL From: Joe Perches To: Al Viro , Julia Lawall Cc: Kees Cook , LKML , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Network Development Date: Sun, 26 Aug 2018 15:26:54 -0700 In-Reply-To: <20180826212421.GW6515@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> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?