Received: by 10.223.164.221 with SMTP id h29csp2688150wrb; Thu, 2 Nov 2017 15:43:36 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Qsntm4wXi+dFLLn9JSmCzt164jO8w47GcJFaz5nlLUl0VXYkuHWHd4Z6gdy4jg2g/lzwCH X-Received: by 10.84.143.162 with SMTP id 31mr4722256plz.254.1509662616520; Thu, 02 Nov 2017 15:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509662616; cv=none; d=google.com; s=arc-20160816; b=IlCi2U67iImChN0xQF26OoMdvkAW8w+vEkauA0Z4qFbvcBA1lpfc94VgT3T4qZQir2 l642K+Ws4KQ6rw//vfzYaeq0kEWZB8znG7WquhmZX+BaioPHPV8izxENogqJDVuxQAYr zUscJsXzSrvi9bqsk9XzisY5UmzC4X4tY+Q03vKRiVHGRHnJBUioI6xUHfse+YhnSQt7 t7JQrXXqaxLwUF2Z8fn+aRiBGNqP1LAH7/XYyI6GYJ/ZelBVQUoOHl7kiR2wzT70ZB8S M8CoJ+X5lsX5IeInV2JwkhIyEC8yGYpSrDMH1qldhXgSW7IgL63Psu0tXOG7zn4UjCYY iKBw== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=clbyrNsRwh8BldHlQuDqnkNzH1MsO8QgJTl62s3BNMA=; b=YVAKc0LTwumG/J7QaYHQ6gbDRbVqlcQVWAYpk/0AJP7jIQYaqshGY5dJTHY23TB9Fc N/xXgL4AQ2koRdBeBqvHP1npRBeJ58VreHhNvYcN1P+VB6ElBWzAVFopWHO62+grD2iv U0SP9ncexpZRGvXFsrEYn17EyR9ckdcERr/m5hW/ry2dUBnHODgLVcJkj649ZIfRsOQM RBjG8t/aL1FyWXjeNsrnzLckfsZYmf19p81oWTdPfM9WxoBnYqVggXRn6tjgm5ASXVl+ gWWoNb8DVJqsyCklhGAStXys/QfRHumKK/Mro7MrTugpHtyPP35SRdXNz34Fl8MX6oyZ SlSg== 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 s12si3229504plj.341.2017.11.02.15.43.21; Thu, 02 Nov 2017 15:43: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; 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 S934634AbdKBWUr (ORCPT + 99 others); Thu, 2 Nov 2017 18:20:47 -0400 Received: from www62.your-server.de ([213.133.104.62]:36490 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934536AbdKBWUp (ORCPT ); Thu, 2 Nov 2017 18:20:45 -0400 Received: from [194.230.159.142] (helo=localhost.localdomain) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1eANqn-0001vF-La; Thu, 02 Nov 2017 23:20:37 +0100 Message-ID: <59FB9A32.10802@iogearbox.net> Date: Thu, 02 Nov 2017 23:20:34 +0100 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Colin King , Alexei Starovoitov , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S . Miller" , netdev@vger.kernel.org CC: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][net-next] net: sched: cls_bpf: use bitwise & rather than logical && on gen_flags References: <20171102200412.16757-1-colin.king@canonical.com> In-Reply-To: <20171102200412.16757-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.2/24010/Thu Nov 2 13:07:00 2017) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/2017 09:04 PM, Colin King wrote: > From: Colin Ian King > > Currently gen_flags is being operated on by a logical && operator rather > than a bitwise & operator. This looks incorrect as these should be bit > flag operations. Fix this. > > Detected by CoverityScan, CID#1460305 ("Logical vs. bitwise operator") > > Fixes: 3f7889c4c79b ("net: sched: cls_bpf: call block callbacks for offload) > Signed-off-by: Colin Ian King Acked-by: Daniel Borkmann From 1582986031580447277@xxx Thu Nov 02 20:05:21 +0000 2017 X-GM-THRID: 1582986031580447277 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread