[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] [glibc] sysdeps/mach/hurd/recvmsg.c: don't try to resolve invali
From: |
Christian Seiler |
Subject: |
[PATCH] [glibc] sysdeps/mach/hurd/recvmsg.c: don't try to resolve invalid address |
Date: |
Sat, 6 Aug 2016 00:01:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 |
On 08/01/2016 12:08 PM, Christian Seiler wrote:
> Problem 1 (causing SIGLOST):
>
> When msg_name and msg_namelen are filled for a SOCK_STREAM AF_LOCAL
> socket (maybe also other AF_LOCAL, didn't check) upon calling
> recvmsg, SIGLOST is generated.
So this is actually a bug in glibc, in that recvmsg (in contrast to
recvfrom) doesn't properly handle the case when __recv returns
MACH_PORT_NULL as the source port (which is the case when using
PF_LOCAL). I've attached a trivial patch that fixes this issue.
I've reported this to the glibc bugtracker:
https://sourceware.org/bugzilla/show_bug.cgi?id=20444
Regards,
Christian
recvmsg-SIGLOST.diff
Description: Text Data