Your message dated Tue, 23 Aug 2016 22:53:03 +0000
with message-id <e1bckz5-0004r7...@franck.debian.org>
and subject line Bug#833558: fixed in glibc 2.23-5
has caused the Debian Bug report #833558,
regarding libc0.3: [hurd] recvmsg: PF_LOCAL sockets and msg_name lead to SIGLOST
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
833558: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833558
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libc0.3
Version: 2.23-4
Severity: normal
Tags: patch upstream
Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=20444

Dear Maintainer,

When using recvmsg on a PF_LOCAL socket, if msg_name and msg_namelen
are set, the process receives SIGLOST. This is due to glibc's recvmsg
implementation assuming that the peer address returned by __socket_recv
is always valid, when in fact that function returns MACH_PORT_NULL when
used in combination with PF_LOCAL sockets. Passing that to
__socket_whatis_address will generate SIGLOST.

recvfrom is not affected, that already checks for MACH_PORT_NULL.

I've attached a patch that fixes that issue for me, adding a check in
the same way recvfrom does it currently.

I've also reported this issue upstream:
https://sourceware.org/bugzilla/show_bug.cgi?id=20444

I've also forwarded this patch to the bug-hurd and debian-hurd mailing
lists:
https://lists.debian.org/debian-hurd/2016/08/msg00010.html
https://lists.gnu.org/archive/html/bug-hurd/2016-08/msg00012.html

Regards,
Christian

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.7+git20160607-486/Hurd-0.8
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to C.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libc0.3 depends on:
ii  hurd-libs0.3  1:0.8.git20160522-4+b1
ii  libgcc1       1:6.1.1-9

libc0.3 recommends no packages.

Versions of packages libc0.3 suggests:
ii  debconf [debconf-2.0]  1.5.59
pn  glibc-doc              <none>
pn  libc-l10n              <none>

-- debconf information excluded
Description: [hurd] recvmsg: don't try to resolve invalid address
 Hurd's PF_LOCAL implementation doesn't return an address when calling
 __recv. recvmsg wasn't catching that and tried to call
 __socket_whatis_address on MACH_PORT_NULL, causing Hurd to send
 SIGLOST to the process. Properly handle this, analogously to how
 recvfrom does it.
Author: Christian Seiler <christ...@iwakd.de>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20444
Last-Update: 2016-08-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sysdeps/mach/hurd/recvmsg.c
+++ b/sysdeps/mach/hurd/recvmsg.c
@@ -202,7 +202,7 @@ __libc_recvmsg (int fd, struct msghdr *m
 					       &message->msg_flags, amount)))
     return __hurd_sockfail (fd, flags, err);
 
-  if (message->msg_name != NULL)
+  if (message->msg_name != NULL && aport != MACH_PORT_NULL)
     {
       char *buf = message->msg_name;
       mach_msg_type_number_t buflen = message->msg_namelen;
@@ -236,6 +236,8 @@ __libc_recvmsg (int fd, struct msghdr *m
       if (buflen > 0)
 	((struct sockaddr *) message->msg_name)->sa_family = type;
     }
+  else if (message->msg_name != NULL)
+    message->msg_namelen = 0;
 
   __mach_port_deallocate (__mach_task_self (), aport);
 

--- End Message ---
--- Begin Message ---
Source: glibc
Source-Version: 2.23-5

We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 833...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Samuel Thibault <sthiba...@debian.org> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 23 Aug 2016 21:16:41 +0200
Source: glibc
Binary: libc-bin libc-dev-bin libc-l10n glibc-doc glibc-source locales 
locales-all nscd multiarch-support libc6 libc6-dev libc6-dbg libc6-pic 
libc6-udeb libc6.1 libc6.1-dev libc6.1-dbg libc6.1-pic libc6.1-udeb libc0.3 
libc0.3-dev libc0.3-dbg libc0.3-pic libc0.3-udeb libc0.1 libc0.1-dev 
libc0.1-dbg libc0.1-pic libc0.1-udeb libc6-i386 libc6-dev-i386 libc6-sparc 
libc6-dev-sparc libc6-sparc64 libc6-dev-sparc64 libc6-s390 libc6-dev-s390 
libc6-amd64 libc6-dev-amd64 libc6-powerpc libc6-dev-powerpc libc6-ppc64 
libc6-dev-ppc64 libc6-mips32 libc6-dev-mips32 libc6-mipsn32 libc6-dev-mipsn32 
libc6-mips64 libc6-dev-mips64 libc0.1-i386 libc0.1-dev-i386 libc6-x32 
libc6-dev-x32 libc6-xen libc0.3-xen libc6.1-alphaev67 libc0.1-i686 libc0.3-i686 
libc6-i686
Architecture: source all amd64
Version: 2.23-5
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Samuel Thibault <sthiba...@debian.org>
Description:
 glibc-doc  - GNU C Library: Documentation
 glibc-source - GNU C Library: sources
 libc-bin   - GNU C Library: Binaries
 libc-dev-bin - GNU C Library: Development binaries
 libc-l10n  - GNU C Library: localization files
 libc0.1    - GNU C Library: Shared libraries
 libc0.1-dbg - GNU C Library: detached debugging symbols
 libc0.1-dev - GNU C Library: Development Libraries and Header Files
 libc0.1-dev-i386 - GNU C Library: 32bit development libraries for AMD64
 libc0.1-i386 - GNU C Library: 32bit shared libraries for AMD64
 libc0.1-i686 - transitional dummy package
 libc0.1-pic - GNU C Library: PIC archive library
 libc0.1-udeb - GNU C Library: Shared libraries - udeb (udeb)
 libc0.3    - GNU C Library: Shared libraries
 libc0.3-dbg - GNU C Library: detached debugging symbols
 libc0.3-dev - GNU C Library: Development Libraries and Header Files
 libc0.3-i686 - transitional dummy package
 libc0.3-pic - GNU C Library: PIC archive library
 libc0.3-udeb - GNU C Library: Shared libraries - udeb (udeb)
 libc0.3-xen - GNU C Library: Shared libraries [Xen version]
 libc6      - GNU C Library: Shared libraries
 libc6-amd64 - GNU C Library: 64bit Shared libraries for AMD64
 libc6-dbg  - GNU C Library: detached debugging symbols
 libc6-dev  - GNU C Library: Development Libraries and Header Files
 libc6-dev-amd64 - GNU C Library: 64bit Development Libraries for AMD64
 libc6-dev-i386 - GNU C Library: 32-bit development libraries for AMD64
 libc6-dev-mips32 - GNU C Library: o32 Development Libraries for MIPS
 libc6-dev-mips64 - GNU C Library: 64bit Development Libraries for MIPS64
 libc6-dev-mipsn32 - GNU C Library: n32 Development Libraries for MIPS64
 libc6-dev-powerpc - GNU C Library: 32bit powerpc development libraries for 
ppc64
 libc6-dev-ppc64 - GNU C Library: 64bit Development Libraries for PowerPC64
 libc6-dev-s390 - GNU C Library: 32bit Development Libraries for IBM zSeries
 libc6-dev-sparc - GNU C Library: 32bit Development Libraries for SPARC
 libc6-dev-sparc64 - GNU C Library: 64bit Development Libraries for UltraSPARC
 libc6-dev-x32 - GNU C Library: X32 ABI Development Libraries for AMD64
 libc6-i386 - GNU C Library: 32-bit shared libraries for AMD64
 libc6-i686 - transitional dummy package
 libc6-mips32 - GNU C Library: o32 Shared libraries for MIPS
 libc6-mips64 - GNU C Library: 64bit Shared libraries for MIPS64
 libc6-mipsn32 - GNU C Library: n32 Shared libraries for MIPS64
 libc6-pic  - GNU C Library: PIC archive library
 libc6-powerpc - GNU C Library: 32bit powerpc shared libraries for ppc64
 libc6-ppc64 - GNU C Library: 64bit Shared libraries for PowerPC64
 libc6-s390 - GNU C Library: 32bit Shared libraries for IBM zSeries
 libc6-sparc - GNU C Library: 32bit Shared libraries for SPARC
 libc6-sparc64 - GNU C Library: 64bit Shared libraries for UltraSPARC
 libc6-udeb - GNU C Library: Shared libraries - udeb (udeb)
 libc6-x32  - GNU C Library: X32 ABI Shared libraries for AMD64
 libc6-xen  - GNU C Library: Shared libraries [Xen version]
 libc6.1    - GNU C Library: Shared libraries
 libc6.1-alphaev67 - GNU C Library: Shared libraries (EV67 optimized)
 libc6.1-dbg - GNU C Library: detached debugging symbols
 libc6.1-dev - GNU C Library: Development Libraries and Header Files
 libc6.1-pic - GNU C Library: PIC archive library
 libc6.1-udeb - GNU C Library: Shared libraries - udeb (udeb)
 locales    - GNU C Library: National Language (locale) data [support]
 locales-all - GNU C Library: Precompiled locale data
 multiarch-support - Transitional package to ensure multiarch compatibility
 nscd       - GNU C Library: Name Service Cache Daemon
Closes: 833558
Changes:
 glibc (2.23-5) unstable; urgency=medium
 .
   * patches/hurd-i386/git-recvmsg.diff: New patch, fixes recvmsg on PF_LOCAL
     sockets with msg_name != NULL.  Closes: #833558.
   * hurd-i386/libpthread_version.diff: Really fix pthread_setcancelstate
     aliasing.
   * libc0.3.symbols.hurd-i386: Update symbols.
   * hurd-i386/tg-sysvshm.diff: Update from topgit.
   * hurd-i386/cvs-check-local-headers.diff: Update from git.
   * hurd-i386/tg-extern_inline.diff: Fix using inlines in libc.
   * hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread functions from
     libc.
   * hurd-i386/tg-gsync-libc.diff: New patch, use gsync for libc
     synchronization primitives.
Checksums-Sha1:
 713236a759e10a39464d2e774d52db3f4af6223d 8285 glibc_2.23-5.dsc
 cbaf557f57e922de75d462af4ecce65c3d6e74b1 1206328 glibc_2.23-5.debian.tar.xz
 637e341abae273d349cd48cba08b26ba4b876ad9 2497248 glibc-doc_2.23-5_all.deb
 96978d641a3c57b0e3978a05a33f4d70ab4427d5 27778682 glibc-source_2.23-5_all.deb
 d1404f3db36c35dfc839f9af18b1e1c38968f205 1659640 
libc-bin-dbgsym_2.23-5_amd64.deb
 e864c9272078c0c06c2467df3c158b21ceec416a 769068 libc-bin_2.23-5_amd64.deb
 f3353592e3861bd6283e16c78ab5b201b7628ad1 114628 
libc-dev-bin-dbgsym_2.23-5_amd64.deb
 42d3669cc264c35e64dfdbf1eb401c94c9c5346d 253520 libc-dev-bin_2.23-5_amd64.deb
 01957fc3ed430aa2df8ac82227ff2c94fae5c330 813962 libc-l10n_2.23-5_all.deb
 b10141ff4ec8191deb9260a8e978de8467c3b480 6117182 libc6-dbg_2.23-5_amd64.deb
 5d0311e5bf38aee09942bd66b14aad5e5a95f594 1451010 
libc6-dev-i386_2.23-5_amd64.deb
 995271ae6ddd8fdd665a546c994a5a72e20d0e6b 1744268 libc6-dev-x32_2.23-5_amd64.deb
 337d3fbfc9c571d93eeb4bd7a207005d5d7a89a2 2167182 libc6-dev_2.23-5_amd64.deb
 6ca83d06b48cf7b9c116a649085e5f0960c35dd1 5329978 
libc6-i386-dbgsym_2.23-5_amd64.deb
 153053dc6f00164cbcfa56eb1d85f160e9d2759a 2513616 libc6-i386_2.23-5_amd64.deb
 a422e294d990669487d5b1edf95c334b89edeb4a 1571710 libc6-pic_2.23-5_amd64.deb
 a0b755ace4d8b0512ca8f7959dba6316c812837a 1157258 libc6-udeb_2.23-5_amd64.udeb
 f4e7ce48aa8575a089caa061ccd2febfe2ea10e2 5632044 
libc6-x32-dbgsym_2.23-5_amd64.deb
 b5d563f919ceef5900afe4633a80036b0817d47f 2732772 libc6-x32_2.23-5_amd64.deb
 2a2100a461bf8b192ad3217da8eb10d5801cb962 2669194 libc6_2.23-5_amd64.deb
 b4dc766ca7a39862fbcb7c695ec3386759911c47 3272778 locales-all_2.23-5_amd64.deb
 a640248cafcd2281cb24fdd6be5938012ac51f67 3385302 locales_2.23-5_all.deb
 db023e4d76bc55304a91fc632d6b18d082985c0a 194478 
multiarch-support_2.23-5_amd64.deb
 c19ddb074749df0a25d4250e4c747a0f89b870ac 218656 nscd-dbgsym_2.23-5_amd64.deb
 b204a41f3a5cd6ce6f7c338cf6b710ee718f31ca 258692 nscd_2.23-5_amd64.deb
Checksums-Sha256:
 d8d5b609b876183392013c052eb73fad182a6c1c0a82f0edc7ec40af75f269c9 8285 
glibc_2.23-5.dsc
 edc0e2a96562586f1238c5f558f6c7daa7c73ee40ab45ceaedba4a36b918a320 1206328 
glibc_2.23-5.debian.tar.xz
 282ae4a9b176ba4bd06a2ddecbd99b3db6f68522e6e7af446f440d19435f3e3e 2497248 
glibc-doc_2.23-5_all.deb
 65ade396c2e342a274690f2fa78e7a3633596b9e5a8b345a63d6fc407b60e838 27778682 
glibc-source_2.23-5_all.deb
 7aef6bcff0bbeb6929972734fc56bd5f4a77f5031067dfb6d26a367873c29ca9 1659640 
libc-bin-dbgsym_2.23-5_amd64.deb
 7702cb644e4e3253cd749392cd4191772974366cba9e980bcaa253a4d3f0a10e 769068 
libc-bin_2.23-5_amd64.deb
 ea0de4364398bbf8fbf73003f427db7ff0db032aa145ac123a0c1948525dae3b 114628 
libc-dev-bin-dbgsym_2.23-5_amd64.deb
 02ca70bbf5fa311407101c23bb2ece5aacdca737ba0b3774e2162569e94aebfd 253520 
libc-dev-bin_2.23-5_amd64.deb
 777da8ebb7598d28f3142ae21551a42a9c6aa3f03b5830d5cde770be55e4e33c 813962 
libc-l10n_2.23-5_all.deb
 4a1b28277dfc465ca907e3bec66f3cdb6cf099b27fa23bf408cafac6017b2cc2 6117182 
libc6-dbg_2.23-5_amd64.deb
 471afb188b0f19a8937392b2d76aed044f96bd907422bc07763ef91867b2fcf0 1451010 
libc6-dev-i386_2.23-5_amd64.deb
 f26cc0a1062da5c8d6dac355c2b9ba0ecbda144a2eeec04164dfe6ebcb107af1 1744268 
libc6-dev-x32_2.23-5_amd64.deb
 8384115bf86f4f4d019eead0c7f430b13838d11b2bcd3bcc6fdcf1cf3fcb9afa 2167182 
libc6-dev_2.23-5_amd64.deb
 998bc37d56bda05b4716cd2fe71e8df10a2e3cf272614644d49e15335ef78175 5329978 
libc6-i386-dbgsym_2.23-5_amd64.deb
 2a3c092e90308a74ae315e2ebedfe7f42d534b6eeb751925535ba940a4482ce9 2513616 
libc6-i386_2.23-5_amd64.deb
 17819adeaa8a24a8393a2600df59a6e8d70d7a84a91521803a6ddb54799895b1 1571710 
libc6-pic_2.23-5_amd64.deb
 34f9d9cf26d423e5dbb2f47da81e828dd78b60ed3c641e35e63c12c6352d61df 1157258 
libc6-udeb_2.23-5_amd64.udeb
 b6cb9469c21834d1e1f121a473688cd65746ad9c0139058c363fabe73e4d6665 5632044 
libc6-x32-dbgsym_2.23-5_amd64.deb
 ee0913d4ac601952fb2a35449002cb071f4bdaae1a9762e9eb8a98c87dd91056 2732772 
libc6-x32_2.23-5_amd64.deb
 b0488461665346b8f64b40e11c268cbe6d1c1c9bc5017da11110040173fbb41e 2669194 
libc6_2.23-5_amd64.deb
 7454021296bdeccdd49f97985daccf732a93ce21f349fb1534d88f13d3922597 3272778 
locales-all_2.23-5_amd64.deb
 7aedbaac1b67ce460c28d901baedd9806a00d0a0bc8d1ffb14aaeb1fe29d34f3 3385302 
locales_2.23-5_all.deb
 4df70fc26f1823de4186b51187c2474571abdfab0807b18dfbc3a05de78d3ebd 194478 
multiarch-support_2.23-5_amd64.deb
 43473b47fd8b550cdee01e4965fcdd76e86fa6ff32d93c8470f34935e9d07c3e 218656 
nscd-dbgsym_2.23-5_amd64.deb
 3d9703fdeeb774dd9737519b670f0faf4068946d62cdc635b80a05f1e7b83114 258692 
nscd_2.23-5_amd64.deb
Files:
 e74f0b198f5a113641088ad3b67cd377 8285 libs required glibc_2.23-5.dsc
 5bf0a5fd369215261a4b401cdd9f8651 1206328 libs required 
glibc_2.23-5.debian.tar.xz
 9654ff68cd31ea2bdc5eb8d911af02f0 2497248 doc optional glibc-doc_2.23-5_all.deb
 9ddf8e8a7a9daedc38d3833e70b70fae 27778682 devel optional 
glibc-source_2.23-5_all.deb
 83f15be0c648f977012084faeda1bf70 1659640 debug extra 
libc-bin-dbgsym_2.23-5_amd64.deb
 d1fa01677340a37a09117e3b78e03dd0 769068 libs required libc-bin_2.23-5_amd64.deb
 c74184008f5be5011c7ba5a6294dee9d 114628 debug extra 
libc-dev-bin-dbgsym_2.23-5_amd64.deb
 6fb4011894a1bc7f90e301d7fbeceec0 253520 libdevel optional 
libc-dev-bin_2.23-5_amd64.deb
 82a57965d733a8613ffc671f248af5ad 813962 localization standard 
libc-l10n_2.23-5_all.deb
 627f18303d38c4072a3f08bf1eab1e0a 6117182 debug extra libc6-dbg_2.23-5_amd64.deb
 0e9c00b3efb3fe46e751fd694a21eee7 1451010 libdevel optional 
libc6-dev-i386_2.23-5_amd64.deb
 83335d0b95f289886aaaa1da8d28e3b3 1744268 libdevel optional 
libc6-dev-x32_2.23-5_amd64.deb
 b4b3e19888e84bb25e7b30dcc0a100d9 2167182 libdevel optional 
libc6-dev_2.23-5_amd64.deb
 e784d7da7e2fb2d58dfeeae8611ac0ca 5329978 debug extra 
libc6-i386-dbgsym_2.23-5_amd64.deb
 c8e86a62d5c2cb533fc27b8877f88b6e 2513616 libs optional 
libc6-i386_2.23-5_amd64.deb
 a4aab2760574692e7fc85a745adfcd05 1571710 libdevel optional 
libc6-pic_2.23-5_amd64.deb
 20f5a959a35934ddfd79b83d6c049bee 1157258 debian-installer extra 
libc6-udeb_2.23-5_amd64.udeb
 feb20139fe202886dbfc467a187eaab7 5632044 debug extra 
libc6-x32-dbgsym_2.23-5_amd64.deb
 149c341ee09238986f5d55aeb1ea1834 2732772 libs optional 
libc6-x32_2.23-5_amd64.deb
 e51a5e8d49e157b46ee65d18ee280d89 2669194 libs required libc6_2.23-5_amd64.deb
 faed823185192c496df8b8bb7920b60d 3272778 localization extra 
locales-all_2.23-5_amd64.deb
 9c298c850504656c63643ad27a9a7e01 3385302 localization standard 
locales_2.23-5_all.deb
 af38415e5cec984775924aa670f5b440 194478 libs required 
multiarch-support_2.23-5_amd64.deb
 44a2ec2b7f32e1443f300a7d6069d483 218656 debug extra 
nscd-dbgsym_2.23-5_amd64.deb
 00affa1082ca889e45b6ba366c159db4 258692 admin optional nscd_2.23-5_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXvLLrAAoJEOPlHOj7ay8d4CgQALHLW1wlZXnVWtW/OVm1i94p
sLH3ORhV8JauAx1kK8bNoABJvaUuFyr7CBSOkjvDGiRH9zP19SSFsIx3enC/CgHX
8zECGJuegkh1H1TgiRewt0Dh/AQ37g0oLuldF5ocZ9SDyWgXIDHozvcYhZrxvqPb
E+Q5QtXXj3UYgdeUgPmipui/5+R+GPGXq+eMWg14HYF+hEDoETjjmfz5a8rW9k0D
85vNVSLfoxRpmPs+IyutvWquBNG7pgGWUQ0H3yG1c3waDL+Sgktjn1HdM9Ri0DGr
rSvTdCQ8fgsS5J93r1VR1FdGCK1BHmZFZRa4N+JmgRZr4e5FXuACd0EtaJQG9Q9N
LZr/Cb6EWl/Cg8qXrX8LMJ8muQDfVgP24Vi7EQAeC5pTK9YjDg56weleBvKkw8l4
ffmkM1XvzIVhCjIAt+J1bxUp2Zrg71XknJ5xTL8gF6WwY94eUV/4/JxuyYC1Qn4Q
WoB25FqUQSUTQsF2lz5iROWjuj0EhDNrdm2GEqlhaBYc7Ac8AIkhSL7Z1qPSV8wP
4HG5zRMZnuTHM+WtpCgQ/jMTuXzmfnJK5KNav60oMJxVqdTItzLT/A2L+PJBKhLl
T+RJdbAcmgqBdml3UgnGvtqG97llfeoeDZCEEKw+mSa5kl8SToQFATNJhsfnLQy0
xW1GwE0kM1sfYrFVAI+A
=Et6k
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to