* [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description @ 2022-11-27 10:38 Vladislav Ivanishin 2022-12-11 16:09 ` Alejandro Colomar 0 siblings, 1 reply; 8+ messages in thread From: Vladislav Ivanishin @ 2022-11-27 10:38 UTC (permalink / raw) To: linux-man; +Cc: Alejandro Colomar, Michael Kerrisk [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: 0001-recv.2-Mention-SOCK_SEQPACKET-in-MSG_TRUNC-descripti.patch --] [-- Type: text/x-patch, Size: 917 bytes --] unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles MSG_TRUNC. This has been the case since the support for this flag was implemented in the latter; the sequential-packet socket type seems to have been left out from the description by an oversight. Signed-off-by: Vladislav Ivanishin <vlad@ispras.ru> --- man2/recv.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/recv.2 b/man2/recv.2 index d492976c4..c5f1a9d70 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -226,7 +226,8 @@ subsequent receive call will return the same data. For raw .RB ( AF_PACKET ), Internet datagram (since Linux 2.4.27/2.6.8), -netlink (since Linux 2.6.22), and UNIX datagram +netlink (since Linux 2.6.22), +and UNIX datagram as well as sequenced-packet .\" commit 9f6f9af7694ede6314bed281eec74d588ba9474f (since Linux 3.4) sockets: return the real length of the packet or datagram, -- 2.37.3 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2022-11-27 10:38 [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description Vladislav Ivanishin @ 2022-12-11 16:09 ` Alejandro Colomar 2023-02-12 13:38 ` Vladislav Ivanishin 0 siblings, 1 reply; 8+ messages in thread From: Alejandro Colomar @ 2022-12-11 16:09 UTC (permalink / raw) To: Vladislav Ivanishin, linux-man [-- Attachment #1.1: Type: text/plain, Size: 1245 bytes --] Hi Vladislav, On 11/27/22 11:38, Vladislav Ivanishin wrote: > unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles > MSG_TRUNC. This has been the case since the support for this flag was > implemented in the latter; the sequential-packet socket type seems to > have been left out from the description by an oversight. > > Signed-off-by: Vladislav Ivanishin<vlad@ispras.ru> Could you please point to the relevant kernel commits, or quote the relevant lines of code, in the commit message? Thanks, Alex > --- > man2/recv.2 | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/man2/recv.2 b/man2/recv.2 > index d492976c4..c5f1a9d70 100644 > --- a/man2/recv.2 > +++ b/man2/recv.2 > @@ -226,7 +226,8 @@ subsequent receive call will return the same data. > For raw > .RB ( AF_PACKET ), > Internet datagram (since Linux 2.4.27/2.6.8), > -netlink (since Linux 2.6.22), and UNIX datagram > +netlink (since Linux 2.6.22), > +and UNIX datagram as well as sequenced-packet > .\" commit 9f6f9af7694ede6314bed281eec74d588ba9474f > (since Linux 3.4) sockets: > return the real length of the packet or datagram, > -- 2.37.3 -- <http://www.alejandro-colomar.es/> [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2022-12-11 16:09 ` Alejandro Colomar @ 2023-02-12 13:38 ` Vladislav Ivanishin 2023-02-12 19:14 ` Alejandro Colomar 0 siblings, 1 reply; 8+ messages in thread From: Vladislav Ivanishin @ 2023-02-12 13:38 UTC (permalink / raw) To: Alejandro Colomar; +Cc: linux-man unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles MSG_TRUNC. This has been the case since the handling was added in 9f6f9af7694ede6314bed281eec74d588ba9474f; see net/unix/af_unix.c: static int unix_seqpacket_recvmsg([...]) { [...] return unix_dgram_recvmsg(iocb, sock, msg, size, flags); } The sequential-packet socket type seems to have been left out from the description by an oversight. Signed-off-by: Vladislav Ivanishin <vlad@ispras.ru> --- Hi Alex, On Sun, Dec 11 2022, Alejandro Colomar <alx.manpages@gmail.com> wrote: > Hi Vladislav, > > On 11/27/22 11:38, Vladislav Ivanishin wrote: >> unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles >> MSG_TRUNC. This has been the case since the support for this flag was >> implemented in the latter; the sequential-packet socket type seems to >> have been left out from the description by an oversight. >> Signed-off-by: Vladislav Ivanishin<vlad@ispras.ru> > > Could you please point to the relevant kernel commits, or quote the relevant > lines of code, in the commit message? > > Thanks, > > Alex Sure, here's an updated version. Vlad man2/recv.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/recv.2 b/man2/recv.2 index 5298a2745..81cd1957c 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -226,7 +226,8 @@ subsequent receive call will return the same data. For raw .RB ( AF_PACKET ), Internet datagram (since Linux 2.4.27/2.6.8), -netlink (since Linux 2.6.22), and UNIX datagram +netlink (since Linux 2.6.22), +and UNIX datagram as well as sequenced-packet .\" commit 9f6f9af7694ede6314bed281eec74d588ba9474f (since Linux 3.4) sockets: return the real length of the packet or datagram, -- 2.39.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2023-02-12 13:38 ` Vladislav Ivanishin @ 2023-02-12 19:14 ` Alejandro Colomar 2023-02-13 5:38 ` Vladislav Ivanishin 0 siblings, 1 reply; 8+ messages in thread From: Alejandro Colomar @ 2023-02-12 19:14 UTC (permalink / raw) To: Vladislav Ivanishin Cc: linux-man, Eric Dumazet, Piergiorgio Beruto, David S. Miller [-- Attachment #1.1: Type: text/plain, Size: 2219 bytes --] Hi Vladislav! On 2/12/23 14:38, Vladislav Ivanishin wrote: > > unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles > MSG_TRUNC. This has been the case since the handling was added in > 9f6f9af7694ede6314bed281eec74d588ba9474f; see net/unix/af_unix.c: > > static int unix_seqpacket_recvmsg([...]) > { > [...] > return unix_dgram_recvmsg(iocb, sock, msg, size, flags); > } > > The sequential-packet socket type seems to have been left out from the > description by an oversight. > > Signed-off-by: Vladislav Ivanishin <vlad@ispras.ru> > --- > > Hi Alex, > > On Sun, Dec 11 2022, Alejandro Colomar <alx.manpages@gmail.com> wrote: >> Hi Vladislav, >> >> On 11/27/22 11:38, Vladislav Ivanishin wrote: >>> unix_seqpacket_recvmsg() calls unix_dgram_recvmsg() which handles >>> MSG_TRUNC. This has been the case since the support for this flag was >>> implemented in the latter; the sequential-packet socket type seems to >>> have been left out from the description by an oversight. >>> Signed-off-by: Vladislav Ivanishin<vlad@ispras.ru> >> >> Could you please point to the relevant kernel commits, or quote the relevant >> lines of code, in the commit message? >> >> Thanks, >> >> Alex > > Sure, here's an updated version. Thanks! I CCd those involved in the referred commit. I'll give them a week or so to have a look. Could you please ping me again in a week or so? Cheers, Alex > > Vlad > > man2/recv.2 | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/man2/recv.2 b/man2/recv.2 > index 5298a2745..81cd1957c 100644 > --- a/man2/recv.2 > +++ b/man2/recv.2 > @@ -226,7 +226,8 @@ subsequent receive call will return the same data. > For raw > .RB ( AF_PACKET ), > Internet datagram (since Linux 2.4.27/2.6.8), > -netlink (since Linux 2.6.22), and UNIX datagram > +netlink (since Linux 2.6.22), > +and UNIX datagram as well as sequenced-packet > .\" commit 9f6f9af7694ede6314bed281eec74d588ba9474f > (since Linux 3.4) sockets: > return the real length of the packet or datagram, -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5 [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2023-02-12 19:14 ` Alejandro Colomar @ 2023-02-13 5:38 ` Vladislav Ivanishin 2023-02-20 5:37 ` Vladislav Ivanishin 0 siblings, 1 reply; 8+ messages in thread From: Vladislav Ivanishin @ 2023-02-13 5:38 UTC (permalink / raw) To: Alejandro Colomar Cc: linux-man, Eric Dumazet, Piergiorgio Beruto, David S. Miller On Sun, Feb 12 2023, Alejandro Colomar <alx.manpages@gmail.com> wrote: > Thanks! I CCd those involved in the referred commit. I'll give them > a week or so to have a look. Great, thank you! > Could you please ping me again in a week or so? No problem, will do. Vlad ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2023-02-13 5:38 ` Vladislav Ivanishin @ 2023-02-20 5:37 ` Vladislav Ivanishin 2023-03-05 18:06 ` Vladislav Ivanishin 0 siblings, 1 reply; 8+ messages in thread From: Vladislav Ivanishin @ 2023-02-20 5:37 UTC (permalink / raw) To: Alejandro Colomar Cc: linux-man, Eric Dumazet, Piergiorgio Beruto, David S. Miller Hi Alex; ping! On Mon, Feb 13 2023, Vladislav Ivanishin <vlad@ispras.ru> wrote: > On Sun, Feb 12 2023, Alejandro Colomar <alx.manpages@gmail.com> wrote: >> Thanks! I CCd those involved in the referred commit. I'll give them >> a week or so to have a look. > > Great, thank you! > >> Could you please ping me again in a week or so? > > No problem, will do. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2023-02-20 5:37 ` Vladislav Ivanishin @ 2023-03-05 18:06 ` Vladislav Ivanishin 2023-03-05 18:33 ` Alejandro Colomar 0 siblings, 1 reply; 8+ messages in thread From: Vladislav Ivanishin @ 2023-03-05 18:06 UTC (permalink / raw) To: Alejandro Colomar Cc: linux-man, Eric Dumazet, Piergiorgio Beruto, David S. Miller Ping (there haven't been any objections to the current version of the patch at https://lore.kernel.org/linux-man/87cz6fqa0z.fsf@ispras.ru/). On Mon, Feb 20 2023, Vladislav Ivanishin <vlad@ispras.ru> wrote: > Hi Alex; ping! > > On Mon, Feb 13 2023, Vladislav Ivanishin <vlad@ispras.ru> wrote: >> On Sun, Feb 12 2023, Alejandro Colomar <alx.manpages@gmail.com> wrote: >>> Thanks! I CCd those involved in the referred commit. I'll give them >>> a week or so to have a look. >> >> Great, thank you! >> >>> Could you please ping me again in a week or so? >> >> No problem, will do. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description 2023-03-05 18:06 ` Vladislav Ivanishin @ 2023-03-05 18:33 ` Alejandro Colomar 0 siblings, 0 replies; 8+ messages in thread From: Alejandro Colomar @ 2023-03-05 18:33 UTC (permalink / raw) To: Vladislav Ivanishin Cc: linux-man, Eric Dumazet, Piergiorgio Beruto, David S. Miller [-- Attachment #1.1: Type: text/plain, Size: 867 bytes --] Hi Vlad, On 3/5/23 19:06, Vladislav Ivanishin wrote: > Ping (there haven't been any objections to the current version of the > patch at https://lore.kernel.org/linux-man/87cz6fqa0z.fsf@ispras.ru/). > > On Mon, Feb 20 2023, Vladislav Ivanishin <vlad@ispras.ru> wrote: >> Hi Alex; ping! Thanks for both pings, and sorry for the delay :) Patch applied. Cheers, Alex >> >> On Mon, Feb 13 2023, Vladislav Ivanishin <vlad@ispras.ru> wrote: >>> On Sun, Feb 12 2023, Alejandro Colomar <alx.manpages@gmail.com> wrote: >>>> Thanks! I CCd those involved in the referred commit. I'll give them >>>> a week or so to have a look. >>> >>> Great, thank you! >>> >>>> Could you please ping me again in a week or so? >>> >>> No problem, will do. -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5 [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-03-05 18:33 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-11-27 10:38 [patch] recv.2: Mention SOCK_SEQPACKET in MSG_TRUNC flag description Vladislav Ivanishin 2022-12-11 16:09 ` Alejandro Colomar 2023-02-12 13:38 ` Vladislav Ivanishin 2023-02-12 19:14 ` Alejandro Colomar 2023-02-13 5:38 ` Vladislav Ivanishin 2023-02-20 5:37 ` Vladislav Ivanishin 2023-03-05 18:06 ` Vladislav Ivanishin 2023-03-05 18:33 ` Alejandro Colomar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox