Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1145892pxa; Sat, 22 Aug 2020 13:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwys0QBSGgQKLb0CWK9v/olmV5CSa9f05qaq5SA3HpxUSPOblgVDBQUMYy8ekMq0cJQA8l4 X-Received: by 2002:a17:906:3acb:: with SMTP id z11mr6055817ejd.530.1598126487592; Sat, 22 Aug 2020 13:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598126487; cv=none; d=google.com; s=arc-20160816; b=i3VqWCKMILrmMMar5khxmenBRDiUIXXTgVlJcDTjiMi9wl+HYomA1ipQFXKcaN7cGh vNHqNfcwGXqdrTJaUfCum13ibuOjPnAjDKkJgle3pyQXfl7j5fLS9/sqW0/AEXGnhgW4 ycQbls/j4wftn7esIzqjL/2CiVRu/iFq5zg9mVopq6qmjXT4fnUgxzaOjHfDu+sbEv/T Rcghbj+g9WW1ws/sW/uSIGbBhEhhTpZ91Aw9nCQyqbcyHWhrwAz5gn9gJz8eeDK2pmos ZbFrmI5r3qBIxk+9Sb+LhS98rJwyTLJJQrSHAJ58JZRIrnWwue15uOj2JWnX4C/zJv8Q lc6w== 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=tdwBhPhtCsN/JQvKp7YTOpn4Lpk5w39RK5RYDO92HW4=; b=pt3FD1H6tiqExHhnXniwJ7Dpghujylkm6UiNAqJdi7YnXSOHz+Oc37D9chgoThRg61 SwfjcIkFkL+PVTzprl8OQYwu20YGG/+KQ3wy6hVxjG6+ukywX/v/1eeAzct0nzOoqIW0 BoPcG50KwvfQ4Iu/YyOi1rmmJbHs1sKmS9bgK8Syf4k75GGtNk9CQLCi7JoRUElD2mkL JiHbny+4uDiuhlLZQq9UQAUwGyNEPlfRWPc3AHhVeU8A0lhOaMfMMjNQ19Z70TEC4/1w kgInK5BMfCnbMlAn5OHcaDTXXy34tbLc2ijURJA20NX90zexfwTGC29KF/dDcseiZZt1 KnMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=aBihwtoX; 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 s20si3575693eji.313.2020.08.22.13.00.52; Sat, 22 Aug 2020 13:01:27 -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=aBihwtoX; 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 S1728697AbgHVT7X (ORCPT + 99 others); Sat, 22 Aug 2020 15:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728654AbgHVT7V (ORCPT ); Sat, 22 Aug 2020 15:59:21 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9DEC061574 for ; Sat, 22 Aug 2020 12:59:20 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id t14so4823112wmi.3 for ; Sat, 22 Aug 2020 12:59:20 -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=tdwBhPhtCsN/JQvKp7YTOpn4Lpk5w39RK5RYDO92HW4=; b=aBihwtoX6UoEawRpRhnhZTU/EV/u5sm2Bvg49HAx4AffL36z8qH992WqOJtRoW7ijR +Pa72oGUyYoEONL6qFHeziXobK/N2EfK1x2OAjX+fs7acb2Nkj/PdUQD2Hlami5+GC/j Mtmp+9aL7T5iitXJ2GjTxw0Er2lI81dIGxt4QJ15/4MVXVrV1sQ3zWZz3gy3PVbt5+vL PfoeXezTX2KvpLiqe8sbsK48nlPJzOPnY2m5QoeBSK1Gd/QO/kYbQJ05kK7PlKvjFiQM xXncdZVpykLqVTam6OQDiP4UjJjJF8MVPndp4iUVoN0nIIjrB54j81WX5xu8/6DYiVzI na6Q== 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=tdwBhPhtCsN/JQvKp7YTOpn4Lpk5w39RK5RYDO92HW4=; b=AnyoLoq9RrAVIhwRmfTiP+ofFa5Rj+uBgbTV0XoApyiC9sSDQncfFLWCIcfboMo0PT CidpiaBZQE1RqezLan/vAIdQD6REh0XWvyST4Z8ZETLwF/3Uc7A6G+1jRC+a0YGTYHk+ a05oRdlTMk/g7SUCDi0NqXlEhL6NLm9bDEVMTkjsnjRK8CKVL4n9FoAQbD/IgOutfyY3 TvE9FhbX1eUv/tP0xA3y0sT+aacslsAsNcONxwfXkPqAzonjJ8kbkOVs73Td9r3qYsR6 oMgZAT95ZP5meVx4g2f6BbJeDNqbqlDalNTtpVk11E6lQkRsFRAETYHTTsCYyp+Od1gC 8D+w== X-Gm-Message-State: AOAM531O4Oy/dt6IUdNQgYwF+P7QvDSw939/kEo/5mGvWh9ZLOB5T2MV gUHPV413D+Iaery3UqcXn+RKIMRDLSm5f+iAUh+5/Q== X-Received: by 2002:a7b:c308:: with SMTP id k8mr9273324wmj.90.1598126358713; Sat, 22 Aug 2020 12:59:18 -0700 (PDT) MIME-Version: 1.0 References: <20200815182344.7469-1-kalou@tfz.net> <20200822032827.6386-1-kalou@tfz.net> <20200822032827.6386-2-kalou@tfz.net> <20200822.123650.1479943925913245500.davem@davemloft.net> In-Reply-To: <20200822.123650.1479943925913245500.davem@davemloft.net> From: Pascal Bouchareine Date: Sat, 22 Aug 2020 12:59:08 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] net: socket: implement SO_DESCRIPTION To: David Miller Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, 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 Thank you, On Sat, Aug 22, 2020 at 12:36 PM David Miller wrote: > > We ignore optlen and constrain the string to a static max size > > > > Signed-off-by: Pascal Bouchareine > > This change is really a non-starter unless the information gets > published somewhere where people actually look at dumped sockets, and > that's inet_diag and friends. Would it make sense to also make UDIAG_SHOW_NAME use sk_description? (And keep the existing change - setsockopt + show_fd_info via /proc/.../fdinfo/..) I would feel like adding a pid information (and what else am I missing here) to inet_diag might also be a good improvement then? I understand that users have to scan /proc to find the FDs, matching the inode number for the socket to find the owning process today. If that's of interest I can explore that too