This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug hurd/20444] New: recvmsg: PF_LOCAL sockets and msg_name lead to SIGLOST


https://sourceware.org/bugzilla/show_bug.cgi?id=20444

            Bug ID: 20444
           Summary: recvmsg: PF_LOCAL sockets and msg_name lead to SIGLOST
           Product: glibc
           Version: 2.23
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: hurd
          Assignee: unassigned at sourceware dot org
          Reporter: christian+glibc at iwakd dot de
                CC: roland at gnu dot org, tschwinge at sourceware dot org
  Target Milestone: ---

Created attachment 9426
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9426&action=edit
[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).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]