On 8/15/20 11:23 AM, Pascal Bouchareine wrote: > 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/<pid>/fdinfo/<fd>). > > 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 > > 1) You also ignored what would happen at accept() time. Please test your patches with ASAN. 2) Also, why is that description specific to sockets ? 3) When a new socket option is added, it is customary to implement both setsockopt() and getsockopt() for things like CRIU.
- [RFC PATCH 0/2] proc,socket: attach description to sock... Pascal Bouchareine
- [PATCH 1/2] mm: add GFP mask param to strndup_user Pascal Bouchareine
- Re: [PATCH 1/2] mm: add GFP mask param to strn... Al Viro
- Re: [PATCH 1/2] mm: add GFP mask param to ... Alexey Dobriyan
- [PATCH 2/2] net: socket: implement SO_DESCRIPTION Pascal Bouchareine
- Re: [PATCH 2/2] net: socket: implement SO_DESC... kernel test robot
- [RFC PATCH] net: socket: sock_set_description(... kernel test robot
- Re: [PATCH 2/2] net: socket: implement SO_DESC... kernel test robot
- Re: [PATCH 2/2] net: socket: implement SO_DESC... kernel test robot
- Re: [PATCH 2/2] net: socket: implement SO_DESC... Eric Dumazet
- Re: [PATCH 2/2] net: socket: implement SO_... Pascal Bouchareine
- [PATCH v2 1/2] mm: add GFP mask param to strndup_u... Pascal Bouchareine
- [PATCH v2 2/2] net: socket: implement SO_DESCR... Pascal Bouchareine
- Re: [PATCH v2 2/2] net: socket: implement ... kernel test robot
- Re: [PATCH v2 2/2] net: socket: implement ... David Miller
- Re: [PATCH v2 2/2] net: socket: implem... Pascal Bouchareine
- Re: [PATCH v2 2/2] net: socket: i... Pascal Bouchareine
- Re: [PATCH v2 2/2] net: socke... Pascal Bouchareine
- Re: [PATCH v2 2/2] net: s... David Miller
- Re: [PATCH v2 2/2] net: s... Pascal Bouchareine