Bug 20444 - recvmsg: PF_LOCAL sockets and msg_name lead to SIGLOST
Summary: recvmsg: PF_LOCAL sockets and msg_name lead to SIGLOST
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: hurd (show other bugs)
Version: 2.23
: P2 normal
Target Milestone: 2.25
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-05 21:59 UTC by Christian Seiler
Modified: 2016-11-16 14:07 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
[PATCH] sysdeps/mach/hurd/recvmsg.c: don't try to resolve invalid address (674 bytes, text/plain)
2016-08-05 21:59 UTC, Christian Seiler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Seiler 2016-08-05 21:59:18 UTC
Created attachment 9426 [details]
[PATCH] sysdeps/mach/hurd/recvmsg.c: don't try to resolve invalid address

When using recvmsg in combination with PF_LOCAL SOCK_STREAM sockets, and msg_name and msg_namelen in the message parameter are non-NULL/zero, SIGLOST is generated if a message is received. I had already reported this to the bug-hurd mailing list, together with a simple reproducer:
https://lists.gnu.org/archive/html/bug-hurd/2016-08/msg00000.html
(This is problem 1 there; problem 2 I describe is a bug in Hurd's pflocal server, as I've found out and reported.)

I've attached a simple patch that fixes the issue (tested on Debian GNU against Debian's glibc 2.23, but the patch also applies against current git master).
Comment 1 Samuel Thibault 2016-08-08 23:47:02 UTC
Applied, thanks!
Comment 2 Adhemerval Zanella 2016-08-10 21:04:14 UTC
Fixed by a194625ef31f0c33afae9b53e2dfaa17c2517606.