From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CBE58385842E; Mon, 27 Sep 2021 18:15:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBE58385842E From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/28350] ping receives SIGABRT on lib32-qemux86-64 caused by recvmsg() Date: Mon, 27 Sep 2021 18:15:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 18:15:12 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28350 Adhemerval Zanella changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adhemerval.zanella at lina= ro dot o | |rg --- Comment #2 from Adhemerval Zanella --- (In reply to Florian Weimer from comment #1) > We need to disable recvmsg time64 emulation for time32 calls, it causes t= oo > many issues. I don't think we need to resort on this change, the issue is in fact that __convert_scm_timestamps does not correctly update the last cmsg. With the following patch it fixes the regression: diff --git a/sysdeps/unix/sysv/linux/convert_scm_timestamps.c b/sysdeps/unix/sysv/linux/convert_scm_timestamps.c index 00c934c413..4da2c60799 100644 --- a/sysdeps/unix/sysv/linux/convert_scm_timestamps.c +++ b/sysdeps/unix/sysv/linux/convert_scm_timestamps.c @@ -55,7 +55,10 @@ __convert_scm_timestamps (struct msghdr *msg, socklen_t msgsize) cmsg =3D CMSG_NXTHDR (msg, cmsg)) { if (cmsg->cmsg_level !=3D SOL_SOCKET) - continue; + { + last =3D cmsg; + continue; + } switch (cmsg->cmsg_type) { I will work on a patch along with a testcase. --=20 You are receiving this mail because: You are on the CC list for the bug.=