From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next RFC 1/9] net_sch: red: Add offload ability to RED qdisc Date: Tue, 31 Oct 2017 16:03:23 +0100 Message-ID: <20171031150323.GJ1972@nanopsycho.orion> References: <20171030085613.8697-1-jiri@resnulli.us> <20171030085613.8697-2-jiri@resnulli.us> <20171030.212015.742241045938302800.davem@davemloft.net> <20171031074151.GD1972@nanopsycho.orion> <5c9e9e0f-a7ae-570a-e052-074511c31967@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nogah Frankel , David Miller , "netdev@vger.kernel.org" , "jhs@mojatatu.com" , "xiyou.wangcong@gmail.com" , mlxsw , "andrew@lunn.ch" , "vivien.didelot@savoirfairelinux.com" , "f.fainelli@gmail.com" , "michael.chan@broadcom.com" , "ganeshgr@chelsio.com" , Saeed Mahameed , Matan Barak , Leon Romanovsky , Ido Schimmel , "jakub.kicinski@netronome.com" , "simon.horman@netronome.com" Return-path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:44478 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446AbdJaPD0 (ORCPT ); Tue, 31 Oct 2017 11:03:26 -0400 Received: by mail-wr0-f196.google.com with SMTP id z55so16267450wrz.1 for ; Tue, 31 Oct 2017 08:03:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: <5c9e9e0f-a7ae-570a-e052-074511c31967@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Tue, Oct 31, 2017 at 03:59:08PM CET, dsahern@gmail.com wrote: >On 10/31/17 1:41 AM, Jiri Pirko wrote: >>> >>> If it is read-only, then attempts to set it from userspace should cause >>> the command to fail. >> >> That breaks uapi. Consider existing userspace app sending garbage in >> that bit and new kernel which randomly fails upon the garbage. >> > >It is called syzkaller. The kernel should always validate userspace >config including checking that unused bits are 0. So you are saying tc >has never done that checking and just ignored bits that are not valid? Not sure if in 100% of cases but in this case, yes.