From owner-svn-src-all@freebsd.org Fri Apr 14 23:29:29 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 934CBD3E563; Fri, 14 Apr 2017 23:29:29 +0000 (UTC) (envelope-from peter@wemm.org) Received: from smtp2.wemm.org (smtp2.wemm.org [192.203.228.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp2.wemm.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 76A2066B; Fri, 14 Apr 2017 23:29:28 +0000 (UTC) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (canning.wemm.org [192.203.228.65]) by smtp2.wemm.org (Postfix) with ESMTP id 1B4E344A; Fri, 14 Apr 2017 16:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=m20140428; t=1492212568; bh=cMcMeJoAYRoCXlg7oUSdKI58oKccAOyLqdzRHi3f+Uw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=p4+fnF8e9p/ARQRzq7V01xxzIaKjlGcjYfJQ1PZLgejrCNlegGAr0k+D/xwM1ggJW WR8tlDksw0pClcG9JJgZTZAXPvDrqI55QOCgOKHCX56m/+XucTq0MjpHegDJtpiApl oWFdhxlf8BHq0qu/wacp8w5LTvWM5W6EDXj3NYew= From: Peter Wemm To: Maxim Sobolev Cc: "Ngie Cooper (yaneurabeya)" , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers , Hiren Panchasara Subject: Re: svn commit: r316874 - head/sys/kern Date: Fri, 14 Apr 2017 16:29:23 -0700 Message-ID: <3928506.Yjk9xjcQnh@overcee.wemm.org> User-Agent: KMail/4.14.10 (FreeBSD/12.0-CURRENT; KDE/4.14.10; amd64; ; ) In-Reply-To: References: <201704141723.v3EHNS3B043902@repo.freebsd.org> <513B1846-02E3-49E0-BAA2-CA923EDC5DFF@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9883833.pL1s3BkVMp"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 23:29:29 -0000 --nextPart9883833.pL1s3BkVMp Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On Friday, April 14, 2017 02:10:56 PM Maxim Sobolev wrote: > Peter, Ngie, >=20 > Looks like out of that refactoring came a logical bug that is present= in > the head, which causes syslod to first to shutdown the socket for rea= ding > and then try to select/recv on it (which is somewhat stupid). And tha= t > issue has been masked by shutdown() on datagram socket becoming effec= tively > a NOP in 11 & head 20 months ago. It only affects head though, 11-sta= ble > still has the old code which does not include that half-closed socket= into > the select list. Attached patch is expected to fix head, Peter, it wo= uld be > nice if you can give it a try (restoring latest changes into > uipc_sockets.c) and let me know if it helps. Confirmed - resting uipc_socket.c to HEAD and applying the patch to sys= logd=20 does solve the problem we encountered. Thanks! > Thanks! >=20 > On Fri, Apr 14, 2017 at 12:48 PM, Ngie Cooper (yaneurabeya) < >=20 > yaneurabeya@gmail.com> wrote: > > > On Apr 14, 2017, at 12:46, Peter Wemm wrote: > > >=20 > > > On Friday, April 14, 2017 12:41:52 PM Maxim Sobolev wrote: > > >> Thanks, Peter. I will try to look into this asap. > > >=20 > > > I don't understand what is going on yet. Presumably there must be= other > > > changes in play that affect udp/select sometime between the origi= nal > > > 2015 > > > change and this. The syslogd -s code is Old(TM). I'm also wonder= ing > >=20 > > whether > >=20 > > > the -s code even works at all since the 2015 / r285910 change... > >=20 > > syslogd has been refactored a lot on ^/head. I don=E2=80=99t think = it=E2=80=99s safe to > > say that the ^/head and ^/stable/11 and earlier copies will functio= n the > > same. > > Thanks, > > -Ngie =2D-=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI= 6FJV UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246 --nextPart9883833.pL1s3BkVMp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEBgrA0Vr/vfNVuPoUNdaXCeyAngQFAljxW1MACgkQNdaXCeyA ngTWkQf+O4ofbVLIQ6jlydSdqRO5AgThl07dr4cjRUMzZzldtqkjj/Zk5/SvvvwS 82aYqorZfxapvJIz13Vw0QXIJPeZbWII805+6KACbmWMkqYk9bNC/FhO0NKbfDeq wH/138PvFA6iyDhTmqknvLVyjvJFElanVJB6bLbBpcTAVqSqjyhJ5EyKYlZotscO ciP3yRxHRDKmhfsOsgG3PSIw48e1PR/KJmuYrnFb1UigEXFV35yonMxebPZbHIHQ oLWbk1re3oxGYoQYn7ZMk93O2wqohCR7HjOKOILIKNOCI5mhmz7JiKrPADUqr98e hfWEIR7+2IWPj0c9RMmbnUuIk1ZDkQ== =VKpE -----END PGP SIGNATURE----- --nextPart9883833.pL1s3BkVMp--