Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp252819rdh; Tue, 13 Feb 2024 16:18:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVHg0HSdcQeMafjEtEfzRoC/Nfr95OBJ5X/ffxcBKU/16JmE4UkI5WkiFzOEowW+r4HBxRE1JNNICehp+Msw4759poO6XzPnCybOKvPg== X-Google-Smtp-Source: AGHT+IHlkiL3h8swGlGzgF1jAhBfEmpgM4TGapE6tvIzXwOMYBVymOqch06VQ4djJO/V7MheLiZ2 X-Received: by 2002:a17:90a:c381:b0:296:452a:9662 with SMTP id h1-20020a17090ac38100b00296452a9662mr563429pjt.2.1707869917667; Tue, 13 Feb 2024 16:18:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707869917; cv=pass; d=google.com; s=arc-20160816; b=igIU6fq8FSk+q3F54SPdZpv3gNQJSWFf6E4r8wUFO+JWLb6JSSWvyiDS3pQnOryv5c ACgcJoRkLAjX6JGw+7x1swMMEO1JOWK/Y/hnE87WFVvL9Ihd0bFymgMy0lfEDic8invr ggrecK0E7zYMcr9MinqoSoI/djNfqXqeYdk35zh8DtdwkCVQVV3AAOi9MMmNs3WLvB2H yHTgbkJoYq+MNgC7BO9UmNQRDK94fibU2YJaoY70V2tHaUsfkrhxwn5pVtjPXwTXPhKd oyZymDPa1AvrXO3gvaNS9qZ7dn0vF2ntrN2H4iIUddjNG6libtcF7EqlO3AmFVkW0I+m TsKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=dV6c9Kxgc2BZuaDPGNbAUxKGIn3whIFP96peZqimM+M=; fh=wdW10zA82ae8/5xv53JVY+f9kTSot9F+/QprWbH9Kgo=; b=dOpvji9vyYB4pmiNgDjnEUQPvvSn6rbb6fWNSkH7ozpi9o3EIedIvdSz5xLPxWQQZG dbhfqtXpFHHiKaO+6riLooWaMLxoc8INKeXmfS9rfetqYJ+Rcumi2p2d7obsput/T9d/ LfexT3peNrqrDqXRVNWRYtPzmpXNCeJ3uXJx6ZV3Su1gtc5JGp/r0ItbR4HAVRNAV41b 7imW/LuiIP/eLXhlztTQNXM9970buPJ4PWOiCzpPJWxkJFxdhs4oKX98ARkE3Mwp4W7n N0kC3LejiFu3FwQM05fcLPYyZIVN2LZgBM00qCpiPhxWvwyiOXbvQsQKGotOjNQ/z0ft XK2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rxxtW7HM; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-64563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCXm9dwVkat+EzYj+EhaYwuXbxzCikpTXlInQ8FQfbynbvI3WljXex/wrb7BZ/MP/1t10Xd1E5BtqUP/b/80OThZTZZWmHcLGWogLkSHkQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c3-20020a633503000000b005dbec1f4dd1si2732809pga.367.2024.02.13.16.18.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 16:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rxxtW7HM; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-64563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E7D8B23482 for ; Tue, 13 Feb 2024 23:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B95962177; Tue, 13 Feb 2024 23:47:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="rxxtW7HM" Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E96062810 for ; Tue, 13 Feb 2024 23:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868061; cv=none; b=i9JxU/SdtwKF+rPUsAbIAzgf7IWd2mwbpls3tqOHtiUK7szZTPdfDB52XPM8ORWFrln0RY2pXGL2uK6X4OibHMl1y6FaLkq12fDcIIVEfiTuFBs6dK5NSGspZLBO/pAI9IEtXy08nhWrNbFh6T51WivhCxbvqLKn1glTA38TWZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868061; c=relaxed/simple; bh=1OBCRnlZJiUNgmqrqru5Gnm9jN5M8aBjgnUT/VYI22w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UwVITXHIUbtUDZfo7CtB1Nw15Qx17QITX6CFZN1LEITYw9wd4N2VGswtvm7zIVjh0lk+bD9oGxKO2RS4RgfMNGl3vYdCU8TejRjWM6Jmw497SYUUQfvai2QyNluu4loUkj1UQ1wZaeNw1ajMflFMnxFflRW0G6+/EaZdLPGBWVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=rxxtW7HM; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <1fa358e9-5a39-4d03-83b4-310a08aeedd7@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707868057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dV6c9Kxgc2BZuaDPGNbAUxKGIn3whIFP96peZqimM+M=; b=rxxtW7HMEYuiMkDdQcmBD3AGEttDQgWs/eXaNnHrJwOyeAVnF4LvUGpKFQM7b1QP4qq9TB dWJdl7JkZFTfaMXX0Mbq9uv4NyjPPOL20RX3JGMFqq/AXT/WgWoiJKiWqHOnLNeAqnicz1 BT+Zb+gBPBCIQpKUFZaxgvPlj/mJhHQ= Date: Tue, 13 Feb 2024 15:47:29 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v4 bpf-next] net: remove check in __cgroup_bpf_run_filter_skb Content-Language: en-US To: Oliver Crumrine , Stanislav Fomichev Cc: ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, andrii@kernel.org, song@kernel.org, yonghong.song@linux.dev, kpsingh@kernel.org, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <7lv62yiyvmj5a7eozv2iznglpkydkdfancgmbhiptrgvgan5sy@3fl3onchgdz3> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2/13/24 10:37 AM, Oliver Crumrine wrote: > On Mon, Feb 12, 2024 at 08:49:14AM -0800, Stanislav Fomichev wrote: >> On 02/09, Oliver Crumrine wrote: >>> Originally, this patch removed a redundant check in >>> BPF_CGROUP_RUN_PROG_INET_EGRESS, as the check was already being done in >>> the function it called, __cgroup_bpf_run_filter_skb. For v2, it was >>> reccomended that I remove the check from __cgroup_bpf_run_filter_skb, >>> and add the checks to the other macro that calls that function, >>> BPF_CGROUP_RUN_PROG_INET_INGRESS. >>> >>> To sum it up, checking that the socket exists and that it is a full >>> socket is now part of both macros BPF_CGROUP_RUN_PROG_INET_EGRESS and >>> BPF_CGROUP_RUN_PROG_INET_INGRESS, and it is no longer part of the >>> function they call, __cgroup_bpf_run_filter_skb. >>> >>> Signed-off-by: Oliver Crumrine >> >> Acked-by: Stanislav Fomichev > > Quick question: My subject had "net:" in it. Should it have had "bpf:" in > the subject instead? > > If yes, would this warrant another version of this patch or resending it > with a different subject? I fixed it up with "bpf:". Applied. Thanks.