Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4294257pxk; Tue, 8 Sep 2020 16:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNeig7+q12DixaVzO6kn2wjEe+TMLcm2gd3gsmd4L/6adR1Yukjko0rUQJSwUs4hS+tkUg X-Received: by 2002:a17:906:f246:: with SMTP id gy6mr816850ejb.373.1599607468039; Tue, 08 Sep 2020 16:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599607468; cv=none; d=google.com; s=arc-20160816; b=ijRiwc9HpYHD7PWtvH/0WYfECjc0h/xgkGZKru5uTDDp8hAqSB4v7GUzCfE7pj8TUX 59qbbBHrNbxC7YGUz/xFjEw75eoUMFkX9m8qEdmqujC0ZjJCY9JTV17xZTcy7LqGTJ8h TKrdYKJpbcbvseT/Nm140qBqVT8NR91s1WzHGZLb+2Dfda5Ba9HGLvlyhqVsr6/olyLa ad9OTOpbaAdPZE0QPV65Rhy/yexhZo9LXc+qr1B64Ii/KnhsRdjmlriCTe02GqAL3buZ Qo9xftKL1RzVItuQl4DZG6T2fZjfHsAk+nTCy6LORnNKelBZ5VfEIgQ3GTNIZsR4JfdT dFzA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=8vw8y/keL8WobWtmOV5HZRJN8/Uakg/hovhFlM5RtH0=; b=sptb/6dTZ0ahRQEa2TYkkPRzvOc4SDMivcopKoRYzpjxrPQbO+7H40NEiVYuZZTiaT AskpiAgNyMX17PE8c7pIw9BzTaJZPZ5aooCqA4v8H98MYNCacGb3NfThIwNh9TsAPk/C wR35m6HJnn7YrRF+YdQR4agGdXDDUAKxY/9qx/fUr4xklozs2Dqy4UfEXHfgyrPCJRQf SJ9J7rmERRsWAS0i/N/i9IE/y/0Z5/8gz4rfc0Ofuqu+X/2JCAl6SPVxD2uvxad2vfJo AVO8F/yCXcnOyGnjOM52jfRiHLbsJKIU64R6DXF/czFsK7DufqU5KdNfS2b8rQ0Cdq15 B2Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dhgVv6yt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si305580ejp.78.2020.09.08.16.24.03; Tue, 08 Sep 2020 16:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dhgVv6yt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729614AbgIHXXB (ORCPT + 99 others); Tue, 8 Sep 2020 19:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbgIHXW5 (ORCPT ); Tue, 8 Sep 2020 19:22:57 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69515C061756 for ; Tue, 8 Sep 2020 16:22:55 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id c196so606409pfc.0 for ; Tue, 08 Sep 2020 16:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8vw8y/keL8WobWtmOV5HZRJN8/Uakg/hovhFlM5RtH0=; b=dhgVv6ytoDhKtI7epFtTsWzhO99dRLXs9qP6tHOGr0W9iPEBMxhPEYFzCPy4e45x1p iv7oDHrhvzoFHFQbgnieeDK9qlcnx9jCxpTM73Wv9OxRI1dQYBAzJ5GwMJlhCteDErSG EnPe8FFbiKqJ1TpYawiqNukVf+bzmUYQIoggE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8vw8y/keL8WobWtmOV5HZRJN8/Uakg/hovhFlM5RtH0=; b=ZqDy6Mczsnz1vzhtJpHOKkbB+OZkQxhH/aFLlOaiLa1e3xf6Z1052j9F+gzwGFxJck /8A/+0fDc0NTEtk3avY2Of3KgGWn2wy9ja2dFLYaB3etz1yAjGAr1Te67C+Q5Ij5Q3t7 KP1iSxTf+YzcIfdw1eBI7GStkwd8f14zANBgA3EnjbYJ0wqsF+A5+BBft5GrfpAKqXOj Ceh5Bk4XurvOPZyDwoKgpnpBTXKyd/uZ/6th02XXnVkGYJWxIHdK3E9CCAPrIoqMSWXI 15oucU5hqJViWc5v9C+y5JusZun27Aqr0PSEOXV/5vbIMoD2MOTvwxVYwD93xymfzCbV Lmlw== X-Gm-Message-State: AOAM532N6GurRlzq78KZp4yFffjfsjIap8gbmAeRXE/tmfX2vv/nhEOK QGYM2eophf40xTC9tkm/r+FuFQ== X-Received: by 2002:aa7:942a:: with SMTP id y10mr1046719pfo.68.1599607374934; Tue, 08 Sep 2020 16:22:54 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 194sm474000pfy.44.2020.09.08.16.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 16:22:54 -0700 (PDT) From: Kees Cook To: kafai@fb.com, songliubraving@fb.com, linux-kselftest@vger.kernel.org, luto@amacapital.net, wad@chromium.org, daniel@iogearbox.net, john.fastabend@gmail.com, kpsingh@chromium.org, shuah@kernel.org, netdev@vger.kernel.org, Zou Wei , yhs@fb.com, andriin@fb.com, bpf@vger.kernel.org, ast@kernel.org, linux-kernel@vger.kernel.org Cc: Kees Cook Subject: Re: [PATCH -next] selftests/seccomp: Use bitwise instead of arithmetic operator for flags Date: Tue, 8 Sep 2020 16:22:12 -0700 Message-Id: <159960731879.1678444.6814133998182138035.b4-ty@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <1586924101-65940-1-git-send-email-zou_wei@huawei.com> References: <1586924101-65940-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Apr 2020 12:15:01 +0800, Zou Wei wrote: > This silences the following coccinelle warning: > > "WARNING: sum of probable bitmasks, consider |" > > tools/testing/selftests/seccomp/seccomp_bpf.c:3131:17-18: WARNING: sum of probable bitmasks, consider | > tools/testing/selftests/seccomp/seccomp_bpf.c:3133:18-19: WARNING: sum of probable bitmasks, consider | > tools/testing/selftests/seccomp/seccomp_bpf.c:3134:18-19: WARNING: sum of probable bitmasks, consider | > tools/testing/selftests/seccomp/seccomp_bpf.c:3135:18-19: WARNING: sum of probable bitmasks, consider | Applied, thanks! [1/1] selftests/seccomp: Use bitwise instead of arithmetic operator for flags https://git.kernel.org/kees/c/76993fe3c1e4 Sorry for the massive delay on this one! I lost this email in my inbox. :) -- Kees Cook