Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1361124ybn; Wed, 2 Oct 2019 15:03:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5aWV/PefIqoAZFoz0+ZYRjcZDwzgOxqyEzpIkRQcpdPoMeYYgwfWWKt6yBo4hQolLC46B X-Received: by 2002:a50:d5c5:: with SMTP id g5mr6347836edj.57.1570053807728; Wed, 02 Oct 2019 15:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570053807; cv=none; d=google.com; s=arc-20160816; b=mYFSnvXRDJ3V1TwE0N9M4QHMxsekId9I/HL9l/urK/eU4qx8Efhd577hmRKsHBuzWM 9FxFqK0Ad0imDLYNCQcjRLcwa4zCg4+p383KeiVwXiqRj/jHpLknxzMrME42j3DZSFoA liZSNKxirFrhGKVwwSr5jW9P72yAiokiywe6acY1q2kFGyCJ8KqZI5i/OJkdrCEN/1uJ O+GPBoLWPDox82uame1nK0EuvDJe4IL+3X3Wff4Oj1PXQEiPrezmu8YQvPfxfmYGLhJw JA9j4j1CeE8yvPEE0CeIC3NKVRclwQd65Scz4vD1b1nmx7QYf60tiYxcOQ4HIyuUl9Gz 0bmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rzOcwXLPCPxOer2OQybfy1++8uKi5OM6q5fIBGrbztg=; b=TzkYrEfcXb26+amRoBZYK+KLfFUn3MlW23tNzGG/0TQMIZ7UUW4NEbylbmh7Fzolxb 8v0wXK6RdFxs5j1SMdwHdwzYHLKF75/yRjs/22jm+rXNVT5wkSMORK3VH6qW7UmfBwzg LaEKrucdxlES7Qamr6DLMci0/uyC/4fsJjoXF2s6nK0N5et31Vmc8Rcv4ommKqZPNNPP NsbkSyLBp167VBBFzYzXg1YGobFju0q+1/o9StSI0Vn3HcYqeG5LWCO2Lvf2d1Q0UyRP Z96L+YyrtmnSaUwWmybk4fP0BVs+o8OwWe8/T+TahblxLBhlEoaRxiMVzl2rppvVKxM9 bdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bt3VWZmA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i18si243030ejb.145.2019.10.02.15.03.00; Wed, 02 Oct 2019 15:03:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bt3VWZmA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727468AbfJBVyC (ORCPT + 99 others); Wed, 2 Oct 2019 17:54:02 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:33722 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbfJBVyB (ORCPT ); Wed, 2 Oct 2019 17:54:01 -0400 Received: by mail-qk1-f195.google.com with SMTP id x134so328939qkb.0; Wed, 02 Oct 2019 14:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rzOcwXLPCPxOer2OQybfy1++8uKi5OM6q5fIBGrbztg=; b=Bt3VWZmADHxaTGyi0q/esRUsSbOo55sfH7wTfotYnV+6N73XFIXvn3VSvg7sPPBXyV LB8j5V7u3aKyMKTLhyW7LqfSUoAqrFuS4caTEqMFe7rvD6cM0T91cwqW7aDCu3LB/VBp GiIiM7AmZk1sdo4jFj+5OXhW8e72L3QKg0uYhJN5gKH5w5QY/klGOKpAjEIEwZfJWS2D wdiCqYZWUt45PQULbfvpI9uFVioZORPVi0sv/9b/jiFZK+vCgypwBOIK1Hql+WDLRatx /8YRVZ4A3ExpLU1KzXwLNYFee0dRPQIIam09qzqcyC3Uep3hLnEULmhZA0wDlVStOEZW b6SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rzOcwXLPCPxOer2OQybfy1++8uKi5OM6q5fIBGrbztg=; b=PN815pF20f92v3h9rEIkshbFX1jHhx0Q52xHQSN5N4547nnMxHcY3jWsRNH8GsYGCL nY/Mn0WExDVKBVTL1KYR/2icoKiafH/Lz3oO3oaVYr9uu3UdggA3KMIKzwxoQZWC+nnc lVMoE++WjdTWNOxyvX55Ar2qciq8Aku6xW4qO2FSPBwEQhCgD0intF29dLCLEWDIK1xj IKxb3bzpijTRlcl++DENH5cPHddJHAz6TxUx0t9qJWGayY02CrY9r9JkmtgSiOBBMwvg f7t0vowQp9z/zPzc2P5gXPnnuqZKqkNA6xzZPonPlM1x/czLUCx7K77Wk2fou51OD14O /8LQ== X-Gm-Message-State: APjAAAVop0aw8bvcSJwniCdAtu7p7r+l/a1OTVRKEBWFAomDzlWvy29s GMSKXTEnIxNkvtFymTr0vo5/f+oVaNu6Z0UrmH8= X-Received: by 2002:a37:9fcd:: with SMTP id i196mr1165959qke.92.1570053238615; Wed, 02 Oct 2019 14:53:58 -0700 (PDT) MIME-Version: 1.0 References: <20191001173728.149786-1-brianvv@google.com> <20191001173728.149786-3-brianvv@google.com> <20191002085553.GA6226@pc-66.home> <20191002215051.GB9196@pc-66.home> In-Reply-To: <20191002215051.GB9196@pc-66.home> From: Andrii Nakryiko Date: Wed, 2 Oct 2019 14:53:47 -0700 Message-ID: Subject: Re: [PATCH bpf 2/2] selftests/bpf: test_progs: don't leak server_fd in test_sockopt_inherit To: Daniel Borkmann Cc: Brian Vazquez , Brian Vazquez , Alexei Starovoitov , "David S . Miller" , Stanislav Fomichev , open list , Networking , bpf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 2, 2019 at 2:51 PM Daniel Borkmann wrote: > > On Wed, Oct 02, 2019 at 01:30:14PM -0700, Andrii Nakryiko wrote: > > On Wed, Oct 2, 2019 at 1:56 AM Daniel Borkmann wrote: > > > On Tue, Oct 01, 2019 at 08:42:30PM -0700, Brian Vazquez wrote: > > > > Thanks for reviewing the patches Andrii! > > > > > > > > Although Daniel fixed them and applied them correctly. > > > > > > After last kernel/maintainer summit at LPC, I reworked all my patchwork scripts [0] > > > which I use for bpf trees in order to further reduce manual work and add more sanity > > > checks at the same time. Therefore, the broken Fixes: tag was a good test-case. ;-) > > > > Do you scripts also capitalize first word after libbpf: prefix? Is > > that intentional? Is that a recommended subject casing: > > > > "libbpf: Do awesome stuff" vs "libbpf: do awesome stuff"? > > Right now we have a bit of a mix on that regard, and basically what the > pw-apply script from [0] is doing, is the following to provide some more > context: > > - Pulls the series mbox specified by series id from patchwork, dumps all > necessary information about the series, e.g. whether it's complete and > all patches are present, etc. > - Pushes the mbox through mb2q which is a script that x86 maintainers and > few others use for their patch management and spills out a new mbox. > This is effectively 'normalizing' the patches from the mbox to bring in > some more consistency, meaning it adds Link: tags to every patch based > on the message id and checks whether the necessary mailing list aka > bpf was in Cc, so we always have lore BPF archive links, sorts tags so > they all have a consistent order, it allows to propagate Acked-by, > Reviewed-by, Tested-by tags from cover letter into the individual > patches, it also capitalizes the first word after the subsystem prefix. > - It applies and merges the resulting mbox, and performs additional checks > for the newly added commit range, that is, it checks whether Fixes tags > are correctly formatted, whether the commit exists at all in the tree or > whether subject / sha is wrong, and throws warnings to me so I can fix > them up if needed or toss out the series again worst case, as well as > checks whether SOB from the patch authors is present and matches their > name. > - It allows to set the patches from the series into accepted state in > patchwork. > > So overall less manual work / checks than what used to be before while > improving / ensuring more consistency in the commits at the same time. > If you have further suggestions / improvements / patches to pw.git, > happy to hear. :) > "libbpf: Captilized subj" looks weird, but I can live with that. I'll post subsequent patches with that casing. I'm glad a lot of that stuff is semi-automated, it's terrible to have to always check all that manually :) > Thanks, > Daniel > > > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/pw.git/ > > > > > > > On Tue, Oct 1, 2019 at 8:20 PM Andrii Nakryiko > > > > wrote: > > > > > > > > > > On Tue, Oct 1, 2019 at 10:40 AM Brian Vazquez wrote: > > > > > > > > > > > > > > > > I don't think there is a need to add "test_progs:" to subject, " > > > > > test_sockopt_inherit" is specific enough ;) > > > > > > > > > > > server_fd needs to be close if pthread can't be created. > > > > > > > > > > typo: closed > > > > > > > > > > > Fixes: e3e02e1d9c24 ("selftests/bpf: test_progs: convert test_sockopt_inherit") > > > > > > Cc: Stanislav Fomichev > > > > > > Signed-off-by: Brian Vazquez > > > > > > --- > > > > > > > > > > Acked-by: Andrii Nakryiko > > > > > > > > > > > tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c | 2 +- > > > > > > 1 file changed, 1 insertion(+), 1 deletion(-)