Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp787635imm; Wed, 29 Aug 2018 12:09:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZhVZdCoOoNaNShplDTDKJaPMZI+hRzAm2mQ0Xrd6h4g72XofE1RPFxEtI95UbPlvTHQuNJ X-Received: by 2002:a62:778c:: with SMTP id s134-v6mr7175298pfc.189.1535569776888; Wed, 29 Aug 2018 12:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535569776; cv=none; d=google.com; s=arc-20160816; b=T1nKo9onHA6Uvu8e6qxd0FWtSQeM77bxGgroOpEEPXpH7O7Q9ZwTgIwYJ8HLpXu2nd HfgOdLzn6wL8WUrbEEKhXmLO0jA8Vu1xD+PpbHHdkXJDwR3wFj1BC3kpovBBI/GkZY71 bgu9naYlCy3Vm26KUerfEP6YTYPvMRnDRT8yBiOB4OCyY50dXX771w7zWWC8mYTMMLk5 vmC7vUlovdXizg7Y22Ju2W0yIyvVCR/OJ/UpIqyEyLH0+FrbNQiO2KM0b3JleLOAptCo HFLXgJGjze6jDvxViKmO3YWJcmOwclBMADwS9Qq1LRPRHFX7I3tTC6tpg8FPvM3CBXmG upUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=tyglwo1MnkUjmvttEh+meRF/V1woEjruCdTcLUwO5bA=; b=CJW/t2Sp4RZBHBgKmG9z9Td3ueE7hWSSDzMUxp7Q2BVITyCAvFoNoUsGKjBXTM76WQ P/zWNP/GKbgECqGDpArLJPSeZ6hFUsAgpstam7f8CN712YatWbo5QFKHnc8bdURmDfX3 SD8E7mKR6xHv8X+Vj9V3TV5++E/hSTpibGD5SbVJCKrxD7dBuUgzLvGflbzsS49xXirR I9GuuXgindsteuERIRkOv00XlkIDcTD2w+SJ3upNi7m6+O58b/0Y+pdcdekZ6xkyWN1q 1jbFDjH62ZWoCK16ptFI12zg6vjv72czuYuptei4+G2OYphxAqrwGJMPeZxw6+ypDzsV 42FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n09WrJ5j; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21-v6si3845282pll.24.2018.08.29.12.09.19; Wed, 29 Aug 2018 12:09:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n09WrJ5j; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728475AbeH2XFi (ORCPT + 99 others); Wed, 29 Aug 2018 19:05:38 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36596 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbeH2XFi (ORCPT ); Wed, 29 Aug 2018 19:05:38 -0400 Received: by mail-pg1-f196.google.com with SMTP id d1-v6so2738917pgo.3; Wed, 29 Aug 2018 12:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tyglwo1MnkUjmvttEh+meRF/V1woEjruCdTcLUwO5bA=; b=n09WrJ5jTcQ/mnKRW+t3qRAJDnT3QwPw3hI45IEq08CFD9STKuQuqAZSofdSLVqI7C fElOlGXW5aBRs+KtdX2G3Fk2OHEzXL1zQqpuqtIA4WXahheM39B76wXMOyQv+tsA720/ WKfJ9ovLSzelj0rNot7Sx3LdL5UhcH58jUdaXc9IFhCmzCzD7jQMF0qUmyHZYUDgx4aS gVqxiRSUmi22otLxCNAXpyZ3Zq8rgOacPIr7F5ga9q7JLfXoLyKWn6NJ0lXG/vrysCBW XfFTprru8qna3JG0PFKkfUna9cNigFiHzfjdLLrBC2RCohTZf4jccuryWnFPqbA/ruTh ID7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tyglwo1MnkUjmvttEh+meRF/V1woEjruCdTcLUwO5bA=; b=s1JZWdHYu/DaYSL2v356EzR7Bq0tQVwFgcDFJh7zGwsXbTmLTAJXlEIVLmoRvm2DGZ 5zxZxwsHyp9xKoSb9n/u0sjZo5O9V9q3xv+nKIxpz/FYpSGeboSgjUkPPWzTXQimUpdl Ia2e8aGIKQASVstDJVK/m1TdBozDbI+C35FJ3sBavh0TY41rDY4FnWEsTsRGhJqku5/E YPi2+Nain4DdpuD2+q31+wbIo0OAN+QXNkYGZ88o/aX5fETSfEjJZWBAONHd//FxmEiM 65UupA1jBFYwn5QJ5OwlgtV4CXLjGwGzrE12fEnF4PYRtrxlLWJNRvfRH7rgE8fNk8WT OCeA== X-Gm-Message-State: APzg51BJmRNrgM4dt5v1orO08fHyMRktEkpKMNATafsiUU7CAkagruqH FPsaDe/Ce+DTk5dz78ts6LIIBg/ZBorfv/UtnxdDxGU8 X-Received: by 2002:a63:4909:: with SMTP id w9-v6mr6773991pga.123.1535569641817; Wed, 29 Aug 2018 12:07:21 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20180828000310.GE6515@ZenIV.linux.org.uk> From: Cong Wang Date: Wed, 29 Aug 2018 12:07:09 -0700 Message-ID: Subject: Re: [PATCH] net: sched: Fix memory exposure from short TCA_U32_SEL To: Al Viro Cc: Jamal Hadi Salim , Kees Cook , LKML , Jiri Pirko , David Miller , Linux Kernel Network Developers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.