Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1850776pxa; Sun, 16 Aug 2020 13:27:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOm3N35stZcKYVcUxGFTGDKeYnz5Iosr1tbbq8MHIiBtcQIJVOSbVxus+kZ4ybKXgqzji5 X-Received: by 2002:a17:906:1e85:: with SMTP id e5mr11976529ejj.76.1597609623518; Sun, 16 Aug 2020 13:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597609623; cv=none; d=google.com; s=arc-20160816; b=JFKarEtU0z1aJ/X1GMI8gyCc45nnw+QAYHb6Y3QbcVugBSCBtKf72he4yyxFyezomy AHtVc+RNMt7rCAVMC2DC5jPPkVZ0Supnlk58SVYj3N2qpqmqqFrzZZA5n8xoJcRWjs2s 50hN2zNTEGzqQkxKJsM/UfJG3DxebaqvOomP+t3MzSrwC3mEYShCdDz8gvTsqf/lq+zO tUa+IF3Ruh7ItN1pu1UuXix3SR28M+k8pXdivIlSzQtkd+A3yeXW/VgZrcw6sSKloHvP kRb01eHuFDBqVF3IX7EMGpQa0s6K4huvbkdjpQBp6cYqdE0m/3tMQrQi85tgXijSjAXK Fxiw== 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=e0fU4VrqgZlTgwb4wRJnx5ZqxP+E94HxLzwK2cUn8RQ=; b=sa7p0Ctv9uPKLOYj6UaPjpLvEGmbVlge+tDwL+oCswigRv067PaUBvcDYg4U6GfXux w389tx79B5n9gAI56hhZ0RzsvfnsAi2JqVzi/Ekn8a9B0C0HVJXiWKHhTBjQ4tuMW9CZ 3rss5GTVRF+1tn5F8mjBeTlXAC99faVs8nHTSRn5rXSNeotwGyszULfjvv9b8/d6I1nt yT/10ivS7+oZOiEwxlY7+Yi5j8MT66ZyK2hpr0P6xIdvSDsfgRjqsA2DYC8vf+V6WMIu Nkh13rvlGfPiiBxxzo1AS5MIIM2/VMGJknrxoZj0mClfyllrFsg+bHMERT/+4yBwYMW2 O5rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=aRuBjBtf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si9552222edu.319.2020.08.16.13.26.07; Sun, 16 Aug 2020 13:27:03 -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=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=aRuBjBtf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729719AbgHPTai (ORCPT + 99 others); Sun, 16 Aug 2020 15:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729688AbgHPTag (ORCPT ); Sun, 16 Aug 2020 15:30:36 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72B3C061388 for ; Sun, 16 Aug 2020 12:30:35 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id c15so12817807wrs.11 for ; Sun, 16 Aug 2020 12:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tfz-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e0fU4VrqgZlTgwb4wRJnx5ZqxP+E94HxLzwK2cUn8RQ=; b=aRuBjBtfZr5au/mqaUr6qu4OjMSiJUdP7VIISIQTUUBlgts7MESDv0nEvlMnw91QMs T84O3kdAYAFn/LFeMoiYKLXrpbQD4DVEEIY2M09APJjpNONd7OkZBTBj6vwOAyDC1kMA hnIDEvpJ1PJ6XsFJ49fSB63z5Vi3KXLDFOxW3mq/Ir3tHVK/HJJck4lVFrECLVAYZyzR hpF8AiTOCXhR3zvAYMAhfMdeG/RPh9cMpCAz5zj9mZA9s2nAaZE9Ut/Idaqxvu295T6f Ri/QWSRpROECHS7Ob7FsQuoELa0TMJAflxPvPyZPdsMHoT7EuZYX5VMZXnz3yziDfVTC IWlg== 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=e0fU4VrqgZlTgwb4wRJnx5ZqxP+E94HxLzwK2cUn8RQ=; b=d9RhJ5PTKUHBFciil9aBez60dStPsJuAiaFx5hjSlH2CJLZMatN2E+SvMfgn8zqWyv YnOauvNusSy/QDyAJbC0KZbwKTJurQR3V1XRXb5Ryz2vKowab2ECnUzvOB8FZl3EzzQV 3JNi4kb7jkHUzlVoftxySJrGh200yxYN1Ld1IIkiWI0RkUC+OFP/f0yH1StoU4WOOceH uZ7NCsn+i8ccLo//Cs3048SLbG1455IyS9EcAD07cLjKA6q0kU0XZL2q8TLOp3BtEPA1 PF7HzYaeySrYWnGVrfbQDJpKrO2OkjkTkzxfs7OxnB/FcI5xirVlOOM1k8p9PZMaCsSG H4Cg== X-Gm-Message-State: AOAM5302E2K2zaD6LUhapOy3aainW/dA28+FRDhcSFIzg91Dym8YrKvs AHIQasjVkMx8gu8VnLbDhA/TPc+OvXOKeWRdMmoRQAqig6LBjMoO X-Received: by 2002:adf:a102:: with SMTP id o2mr11600431wro.319.1597606234590; Sun, 16 Aug 2020 12:30:34 -0700 (PDT) MIME-Version: 1.0 References: <20200815182344.7469-1-kalou@tfz.net> <20200815182344.7469-3-kalou@tfz.net> <7c910594-b297-646e-9410-f133fd62a902@gmail.com> In-Reply-To: <7c910594-b297-646e-9410-f133fd62a902@gmail.com> From: Pascal Bouchareine Date: Sun, 16 Aug 2020 12:30:23 -0700 Message-ID: Subject: Re: [PATCH 2/2] net: socket: implement SO_DESCRIPTION To: Eric Dumazet Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Andrew Morton , Alexey Dobriyan , Al Viro 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 Sun, Aug 16, 2020 at 11:15 AM Eric Dumazet wrote: > > 1) You also ignored what would happen at accept() time. > > Please test your patches with ASAN. Ouch, I will look into it - thanks for pointing that out & 3/ > > 2) Also, why is that description specific to sockets ? fcntl on struct file was deemed too intrusive - as far as fds are concerned, regular files and pipes have names and local processes to match against anyway we're left with mostly remote targets - one example was to preserve target host names after resolution (alas, I don't think there's a clean flow to hook that transparently)