Received: by 10.192.165.148 with SMTP id m20csp282708imm; Fri, 4 May 2018 10:13:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrHGJPfSBUtwCSm1L1ObudZFX82Cp3hzRZGzSvOPTRSFZhizCLt+NZ5gmVg2W+W9DNAlrCB X-Received: by 2002:a17:902:5c6:: with SMTP id f64-v6mr28449234plf.77.1525454001398; Fri, 04 May 2018 10:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525454001; cv=none; d=google.com; s=arc-20160816; b=lOFbB8jfFPszOt7lNuHZYyARaO7lhRos3mAYs7NHaRYamepGHvq2CfrySUto2zBpj6 t3j03mZG6WBzUEzwOXgG4EPkKllggX0pNBPqbsbeCzPa/mvt6pVxnaVS9L3/wPved98D 5sjWbwh/z48sLJa9W/nl2XO4gYG+/s0/L9tetg7mEw8FUtDB/GwGlIQq9gqLIrcdrtYj Ztvq1by/BPxuq36TlVVdRvbgaD7jbglpSwy4vLXbAV8hIs3FMTkFlN1oK71kNIKMcUQK JIpXsIS/PT9aMxgwN7OtNFpN5ehsWwBl9UmdAvYxQ/wtk29f20pduVbUGs1pLSR8WHH4 oNYA== 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:from:subject:cc:to:message-id:date :arc-authentication-results; bh=ModLii05HApOZMwWkynS7zQLWFjp767pVUWQCSUe+3U=; b=doFKazQNSuMQqHUSuGhsXfVKlQY1jGGpaeQZpLqaeed0SgMGU85HK2v6kXskpd6mGS J3H2VkwR0yPls4JmK7eVeBZo5heo1ZuTa74Yu3EmuESt8/7aoF0hFQdp+MaT54zkUUnT c0LxRLU5NGsBwYuZjiiV/qGu9po8E09g2uKZZxxKUWWX2wDpYSGtjwQRS7CVQ7aSK7e4 fv1ocPTbUhwFSDSQp64/NoZJSva/leD7rUhL0vJRvTzH99AJiieOpnnfIxIisj//uIdK SICefUtLj82oC4JWWWuDGFTEmKcxZKpfFnGlTf+plrMPWGUhqbxcfQOAX7EV6W5MF48e 5C6A== 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 f85si16678842pfj.125.2018.05.04.10.13.07; Fri, 04 May 2018 10:13:21 -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 S1751792AbeEDRM6 (ORCPT + 99 others); Fri, 4 May 2018 13:12:58 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:35800 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751459AbeEDRM4 (ORCPT ); Fri, 4 May 2018 13:12:56 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 897C1134184B3; Fri, 4 May 2018 10:12:55 -0700 (PDT) Date: Fri, 04 May 2018 13:12:54 -0400 (EDT) Message-Id: <20180504.131254.1527992250615929790.davem@davemloft.net> To: wang6495@umn.edu Cc: kjlu@umn.edu, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: sched: cls: fix a potential missing-check bug From: David Miller In-Reply-To: <1525417505-19056-1-git-send-email-wang6495@umn.edu> References: <1525417505-19056-1-git-send-email-wang6495@umn.edu> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 04 May 2018 10:12:56 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wenwen Wang Date: Fri, 4 May 2018 02:05:05 -0500 > Given that gen_tunnel() may return a value larger than 255 based on > data, the new value of f->res.classid should be re-checked. gen_tunnel() may not ever return a value larger than 255. data->tgenerator is a u8 and therefore can never take on a value outside of the range of 0 to 255. I'm not applying this patch, sorry.