Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp234825pxf; Wed, 17 Mar 2021 04:09:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2+zGKkmeC3ikYqON4qck0oPjUHez/VC0k+VEvF/8ZSfsi+x/1nkZuJgFrHW0j3aWty2y+ X-Received: by 2002:a05:6402:3047:: with SMTP id bu7mr41314908edb.227.1615979385657; Wed, 17 Mar 2021 04:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615979385; cv=none; d=google.com; s=arc-20160816; b=OCpYwtyozQbxu5WVsTZI5zdAbFkDJ8IXgfmZpD4TGQ5QA67IGwbnpwwJA+4eOoaVuo VCOIVVhg9nzgZcNCMzG3ntukOczw5Xu047y3YCJPb+zJdXVQRmVEfTsUyhqbs6sSG11P NnmZhW/tTqJNJeD2818QI/A8pVwa8Ah13Yx0gBzbwdkkSBTlSvx5EpA88DlT2E1dT8F+ T5djfYm4YXOO+rnuxIvMBzDxYnBy6+I+fRSh7t3ZEK3VrMSzYAZYzN4NHX5H9/G1Ug9B t9lqedtVX9RARJKlKIa3XAHzXeqp7A8XAkTpaMXeNv3HX4v4RH4Us/t8PfXyhT2H14Xi lHuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=sFmaH41LDlPjG9Ynwp45uLWY+uwr7N1DcuUG5izOuw8=; b=obZ2LWD6sha7Lb2fktIcsRMJQNTjZ7k8+C46bTlBYUH3i09G8uyCHYdtyDjCkX0xEl f6pdHk2+27xFrllHMvP9WaBrxUc3Wv5yjhRlepEQi4lietwcNloEnIj75r7s0Ips5LCx ZGp3/2m36/w0Dn+3bhtj8gxCMiu+YgDAauvdruoBw60Ug+LwH6OaTSUC8ygm/UiWCKEX Z5YUWeqGJKIS21jTmcAxzFgOOjQEEQH9Hp6VVIFsrT67rW5o3MWxlFULAjlwZRjx168H eP4emyD7CXLT4a/HsgwEgAZCTfY31Ci6L0CB7/K5iOdehKmuUj98mYPfvLcCv+f8EOem 4o1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OLgkObXW; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si8148643ede.520.2021.03.17.04.09.23; Wed, 17 Mar 2021 04:09:45 -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=@redhat.com header.s=mimecast20190719 header.b=OLgkObXW; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231348AbhCQLII (ORCPT + 99 others); Wed, 17 Mar 2021 07:08:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:22326 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhCQLHo (ORCPT ); Wed, 17 Mar 2021 07:07:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615979263; 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: in-reply-to:in-reply-to:references:references; bh=sFmaH41LDlPjG9Ynwp45uLWY+uwr7N1DcuUG5izOuw8=; b=OLgkObXWJ7fGt+ohsMwHrhWMqQFtagOkSVoDENf8RAVzuSr7W/8iO3zEjISyAsH3i/tyc8 fTUUiu4wWr+fWatg57+1V9Gm1/mmL0MwaTHH6X9uHr3vickMxUn0htqZPP5mDpeMZZKYR3 qTOecSjjHqgVinlYbZGWZU8sE5vEW2g= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-HoriL-B2NOOzhtcMMVINAA-1; Wed, 17 Mar 2021 07:07:42 -0400 X-MC-Unique: HoriL-B2NOOzhtcMMVINAA-1 Received: by mail-ed1-f71.google.com with SMTP id q25so4422973eds.16 for ; Wed, 17 Mar 2021 04:07:41 -0700 (PDT) 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:in-reply-to:references:date :message-id:mime-version; bh=sFmaH41LDlPjG9Ynwp45uLWY+uwr7N1DcuUG5izOuw8=; b=ekq/+ec+EvHmUAS7jIV/TRWQYZKspLuqlQlrq4QqZSvIbfoj9BfXfiXeXVXrhcFWbT hQ6puRGBo4Gd82ZJrd7dEGVB1q9gwU+u0WONeNzS/FYldgA41mI8kfFMxv+b2O84854u hQ2QBzTBhjJIcTWVQXFozi1flo0wySvn94qGBd5ww6cmEUSbFOQw0gRsjPaCGrFhnvcU Z/TC+6XEuME+S3BmRkPdgkbBCsJNjTGpGCYBoPI/InHtj6kJH2uazHxPmk7NklO8fDoz +zoZCNnL1i6LVoEgjqF7cqrglJWUmZXSSeMm/dzlfErAJqIWUOpdB8jI7jzVQNVfD5Cb pikw== X-Gm-Message-State: AOAM531SctwBvAg3QokSFgaUnNJu9u1eu3lAELgYFQHZbeBtNXamsWIr F/An9gpePspz/2oKvjwrsEKfbYNJt234P+gSTAnkFxKyGSwlSfiQr8tXR1hmPXzHIxDMql2pIt5 UMXhriYm9iQ3/s+KVXZeJaTJq X-Received: by 2002:a17:906:2314:: with SMTP id l20mr35375422eja.178.1615979260625; Wed, 17 Mar 2021 04:07:40 -0700 (PDT) X-Received: by 2002:a17:906:2314:: with SMTP id l20mr35375374eja.178.1615979260206; Wed, 17 Mar 2021 04:07:40 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id a22sm11341585ejr.89.2021.03.17.04.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 04:07:39 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 36DC8181F55; Wed, 17 Mar 2021 12:07:39 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Kumar Kartikeya Dwivedi Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] libbpf: use SOCK_CLOEXEC when opening the netlink socket In-Reply-To: <20210317104512.4705-1-memxor@gmail.com> References: <20210317104512.4705-1-memxor@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 17 Mar 2021 12:07:39 +0100 Message-ID: <87y2emca2s.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kumar Kartikeya Dwivedi writes: > Otherwise, there exists a small window between the opening and closing > of the socket fd where it may leak into processes launched by some other > thread. > > Signed-off-by: Kumar Kartikeya Dwivedi FYI, you should be tagging patches with the tree they are targeting. In this case probably the 'bpf' tree (so [PATCH bpf] in the subject). Also, a Fixes: tag would be nice here? -Toke