Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1137594pxa; Sat, 22 Aug 2020 12:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuhwu1ogRso1jK1XLpfTSZ8ZHOhI4MO7ELVtYocB1I+HRoNdFqTKBmfcpXLJnWioTD6P2a X-Received: by 2002:aa7:d88b:: with SMTP id u11mr2581723edq.21.1598125075292; Sat, 22 Aug 2020 12:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598125075; cv=none; d=google.com; s=arc-20160816; b=LDiy+3eb9+HOJmU707MFJJTAfZ9phW/NpbfiA7wxkM98go1s5y3sHR8i2w0jfT5jXP Q2R1sndrcZe0KViqeeqbYUVgJnYP8pYOh7pqr+AcUd0tnZLl1JuagFznjflvP6K453mY eTDFSsC0E85Yed8K+zNUt+omq29bJhpPxAm9pGo8ti+EXUmEle3qISLaNlS6Qw3vx/xT 3w42Ks5et7ZP1RZf43smfXT+UOkNutLdWyJqJpKloRRD/JDQJNgS1K3sjplRLS4zPYyt 7ZWFCbD/+UxABaiQu+Bb3jOJiMbD2VQHeD5k9yZOFGe4pUG8OucDJN6AXolavJlhNEe2 qk/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=kfk6pVkSVQ04KQyauaCCp+LJmR8jptr1e32YvHurbR8=; b=BHm0OEkG1W01ALwLYiAYb7+MhfcxyRV2I0tH8eibMlbASt8MjkEKYnaNPDxxnN8kZg COiOWsoF2xqoPl6qDXx4N6Id1ubfLo0riku90BtWi6SZzSAZSEDCrbPVg3F8PSXA3zKA NHh0q8akv1QZ5rBJL3G3FXKCSGaVP72uV766K5Vg62T5uxdgS2g9BTt9GF0aWvogu7jM XUAcDV9afYtI4t1ukthp7glVldTonG25JEQ8jRKNSBKtGcgMvmAQbhVw3Lwm4SWeouZ6 r5GQ+Lg66VzCGfRqdMQX19fzB9B0T3BmviS8Lx0zby9HiQvhACfrA9yyP1xegq478vMr NfTw== ARC-Authentication-Results: i=1; mx.google.com; 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 bd9si3909213edb.340.2020.08.22.12.37.31; Sat, 22 Aug 2020 12:37:55 -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; 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 S1728690AbgHVTgy (ORCPT + 99 others); Sat, 22 Aug 2020 15:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728671AbgHVTgw (ORCPT ); Sat, 22 Aug 2020 15:36:52 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 383DEC061574; Sat, 22 Aug 2020 12:36:52 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 60D3215CED94F; Sat, 22 Aug 2020 12:20:05 -0700 (PDT) Date: Sat, 22 Aug 2020 12:36:50 -0700 (PDT) Message-Id: <20200822.123650.1479943925913245500.davem@davemloft.net> To: kalou@tfz.net Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, kuba@kernel.org, akpm@linux-foundation.org, adobriyan@gmail.com, viro@zeniv.linux.org.uk Subject: Re: [PATCH v2 2/2] net: socket: implement SO_DESCRIPTION From: David Miller In-Reply-To: <20200822032827.6386-2-kalou@tfz.net> References: <20200815182344.7469-1-kalou@tfz.net> <20200822032827.6386-1-kalou@tfz.net> <20200822032827.6386-2-kalou@tfz.net> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 22 Aug 2020 12:20:05 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pascal Bouchareine Date: Fri, 21 Aug 2020 20:28:27 -0700 > This command attaches the zero terminated string in optval to the > socket for troubleshooting purposes. The free string is displayed in the > process fdinfo file for that fd (/proc//fdinfo/). > > One intended usage is to allow processes to self-document sockets > for netstat and friends to report > > 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.