Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp82014imm; Wed, 29 Aug 2018 14:34:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaLvpJy3QbCTBNf9tw94ZKac8q5gWqgPABpf1iZefieeX/N6gmXh2fhoyfib1+upQod1f0i X-Received: by 2002:a63:7b4b:: with SMTP id k11-v6mr7350266pgn.64.1535578490728; Wed, 29 Aug 2018 14:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535578490; cv=none; d=google.com; s=arc-20160816; b=ao4+6xOfXdvfSUr1FkfSqOQ9FEgvt8mhpTpmWP2y8uD9sKhD4Ol22L/A2Gc19fM6Di CsN+sdS7xkRm1lLDMnZRvg4hciUljbpy4qPDKmYbqyoVFFHVdqmpo1hYpjYAqH1mkd/+ TwjU89DNB02nWvT5J3OEF+TfSWNgpqYDH3VkBr09qr1YpPYttrB/IJRGhpbSUJWs8aAW lgMqF+v/lkRTFh6YXr1vXH4g4ThuVK85na9pQXExQaGlrEYewCwAmMs7azUFj4GATQKW 2mPLwEnd8b0ZS2svW77sx1PqJlf0m8CN/2iAMGNMQeSpk6V6T+BBfDPPcrRErnhhUuOM CTHQ== 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=V3QuhsjBxXLtMtkBlSvgNgjamWLKUtyjKwNsRUyqAdc=; b=eiddz3Y76sOt6FKkryZjhibR3CyOem06MfJVNhOGoqfmjE0iJbGNYkdMHNWA1pSNcU wiRNloTgzywYYlpa8ASINprT2yP3Z64Yg4Bz693jntROiMJxem1/2ciRv3STvZGkINHc R+dXabeyawHegAgogtdCaEgcNAL2Ga8UMZ3los/8/Ltnc/UuktIQ8eueBmfTcO0TfzaJ znhDrsUxReHxPrGXZv9WXfsAuPsXqmhLma0rsb2yXB0khzIS//8YOxoup+WNE9+ya9YN dSTWNyigELZLuPOUE11vVL7jnMbK5xZPr7HTLP0lP7UPe5Q99lhIG4M3Db/7BbC5okFJ Bhow== 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 l6-v6si2805795pgi.534.2018.08.29.14.34.35; Wed, 29 Aug 2018 14:34:50 -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 S1727617AbeH3BcN (ORCPT + 99 others); Wed, 29 Aug 2018 21:32:13 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:38682 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727336AbeH3BcM (ORCPT ); Wed, 29 Aug 2018 21:32:12 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fv85a-0005oK-2w; Wed, 29 Aug 2018 21:33:22 +0000 Date: Wed, 29 Aug 2018 22:33:22 +0100 From: Al Viro To: Cong Wang Cc: Jamal Hadi Salim , Kees Cook , LKML , Jiri Pirko , David Miller , Linux Kernel Network Developers Subject: Re: [PATCH] net: sched: Fix memory exposure from short TCA_U32_SEL Message-ID: <20180829213321.GA19965@ZenIV.linux.org.uk> References: <20180826055801.GA42063@beast> <20180826061534.GT6515@ZenIV.linux.org.uk> <20180826173236.GU6515@ZenIV.linux.org.uk> <20180826225749.GY6515@ZenIV.linux.org.uk> <20180828000310.GE6515@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 Wed, Aug 29, 2018 at 12:07:09PM -0700, Cong Wang wrote: > On Mon, Aug 27, 2018 at 5:03 PM Al Viro wrote: > > > > On Mon, Aug 27, 2018 at 02:31:41PM -0700, Cong Wang wrote: > > > > I cant think of any challenges. Cong/Jiri? Would it require development > > > > time classifiers/actions/qdiscs to sit in that directory (I suspect you > > > > dont want them in include/net). > > > > BTW, the idea of improving grep-ability of the code by prefixing the > > > > ops appropriately makes sense. i.e we should have ops->cls_init, > > > > ops->act_init etc. > > > > > > Hmm? Isn't struct tcf_proto_ops used and must be provided > > > by each tc filter module? How does it work if you move it into > > > net/sched/* for out-of-tree modules? Are they supposed to > > > include "..../net/sched/tcf_proto.h"?? Or something else? > > > > If you care about out-of-tree modules, that could easily live in > > include/net/tcf_proto.h, provided that it's not pulled by indirect > > includes into hell knows how many places. Try > > make allmodconfig > > make >/dev/null 2>&1 > > find -name '.*.cmd'|xargs grep sch_generic.h > > > > That finds 2977 files here, most of them having nothing to do with > > net/sched. > > > Moving it to include/net/tcf_proto.h is fine, as out-of-tree modules > can still compile by modifying the included header path. > > include/net/pkt_cls.h might be a choice here too. Nowhere near as massive exposure (123 files vs. 2977), but still - do ethernet drivers need that? Because that's 77 out of 123...