Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5239849imm; Sun, 26 Aug 2018 14:25:54 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda+k/3BxGZ6daxKRDGK40OlkLO8r4Lw5EhpZiKioW9pSF14gzRfOBXBieijI8eeka3oe7Cr X-Received: by 2002:a17:902:46a4:: with SMTP id p33-v6mr10564664pld.205.1535318754404; Sun, 26 Aug 2018 14:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535318754; cv=none; d=google.com; s=arc-20160816; b=iPjaMgkVS7/9Kfelx625m8u9NgvMytZU0GBHT9U9hdCVNNy62bx9AWtgDiOQ27xkLH hLpKkJan2P0nhQ4ndlELxdgDyuKLfbmqumbjxAqMXTs+7Wj/MuXGDah9s3Bp1ydfSkXj C3Z0jkX04/fF9IZOrRkPGpVZxWPlAi7goN9qA83vsMX2B4eFRqVYRDe/kWgfh8OHcsL1 4ho5scFzIR3ScQTOmP4+Nf/2iHJB6G9D5xA0MZsY0eDHSnPyM5kAqvS7yQmmHCbDEFA1 10N1s8KfufVKmsV+4/4ntEwntn/UMeqPB8JO9RfbAss60MSEADxc66mzvZc+F8ybmjz3 TP0A== 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=+3cgAAsJzbAYryUGFHBaon/V8y1fOm1oTWHPLBltGh8=; b=j8d08O1KCH1mOZ4Pl5MdPIYUlCDv57JMjG4NR2/EqVeHTTLZlmetrdl0g9LzZzdIAd wE+Nj3O7H9q3cbru9x+smIHEOxgOCJSzKlNOyk64YNgUqpHxP5PAy0wLt3SFXNZW3pW/ m61az2TgeyDINyev0gtp4xnxb0ysTFkWo6r/Re2Jh9IqDH65XXplK8+yAxFZ2ml6z238 hbPFwxTHTCmmL5ZjzfRK9yVGTKFLio24BNxR8FUXQ/rcAwRY53RMwXC8OfufNno8SXhQ k7Kzvvs0MjmF+vMmikHAnfNhCB4wbzAlm4pax6qdbBPEq0xPkTp5enEb9Xk0x9FGSvci fgFA== 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 j189-v6si11883363pgd.562.2018.08.26.14.25.39; Sun, 26 Aug 2018 14:25:54 -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 S1727023AbeH0BIK (ORCPT + 99 others); Sun, 26 Aug 2018 21:08:10 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:39072 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbeH0BIK (ORCPT ); Sun, 26 Aug 2018 21:08:10 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fu2WD-0004hs-R4; Sun, 26 Aug 2018 21:24:21 +0000 Date: Sun, 26 Aug 2018 22:24:21 +0100 From: Al Viro To: Joe Perches Cc: 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: <20180826212421.GW6515@ZenIV.linux.org.uk> References: <20180826055801.GA42063@beast> <20180826061534.GT6515@ZenIV.linux.org.uk> <20180826173236.GU6515@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 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...