From owner-freebsd-ports-bugs@freebsd.org Tue Jul 12 16:23:19 2016 Return-Path: Delivered-To: freebsd-ports-bugs@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 374DEB83299 for ; Tue, 12 Jul 2016 16:23:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 184E012F2 for ; Tue, 12 Jul 2016 16:23:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6CGNIEW066914 for ; Tue, 12 Jul 2016 16:23:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 211038] security/xinetd: Broken with dgram udp services (e.g. tftpd, tftp-proxy) Date: Tue, 12 Jul 2016 16:23:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: garga@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sem@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 16:23:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211038 Bug ID: 211038 Summary: security/xinetd: Broken with dgram udp services (e.g. tftpd, tftp-proxy) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sem@FreeBSD.org Reporter: garga@FreeBSD.org Assignee: sem@FreeBSD.org Flags: maintainer-feedback?(sem@FreeBSD.org) xinetd is not working on FreeBSD 10.3 and 12.0-CURRENT with dgram UDP servi= ces like tftp server or tftp-proxy. Sample config: service tftp { disable =3D no port =3D 69 socket_time =3D dgram protocol =3D udp wait =3D yes user =3D root group =3D wheel server =3D /usr/libexec/tftpd server_args =3D -d 15 -l -s /tftpboot } xinetd logs: 16/7/12@12:36:10: DEBUG: 15844 {main_loop} select returned 1 16/7/12@12:36:10: DEBUG: 15844 {svc_suspend} Suspended service tftp 16/7/12@12:36:10: DEBUG: 15844 {server_start} Starting service tftp 16/7/12@12:36:10: DEBUG: 15844 {main_loop} active_services =3D 0 16/7/12@12:36:10: DEBUG: 15845 {exec_server} duping 0 16/7/12@12:36:10: DEBUG: 15844 {main_loop} active_services =3D 0 16/7/12@12:36:10: DEBUG: 15844 {main_loop} select returned 1 16/7/12@12:36:10: DEBUG: 15844 {check_pipe} Got signal 20 (Child exited) 16/7/12@12:36:10: DEBUG: 15844 {child_exit} waitpid returned =3D 15845 16/7/12@12:36:10: DEBUG: 15844 {server_end} tftp server 15845 exited 16/7/12@12:36:10: DEBUG: 15844 {drain} UDP socket should be empty 16/7/12@12:36:10: DEBUG: 15844 {svc_resume} Resumed service tftp 16/7/12@12:36:10: DEBUG: 15844 {child_exit} waitpid returned =3D -1 16/7/12@12:36:10: DEBUG: 15844 {main_loop} active_services =3D 1 tftpd logs: Jul 12 12:36:10 tp tftpd[15845]: recvfrom: Resource temporarily unavailable tftp-proxy logs: Jul 11 17:12:39 test-ce-23-amd64 tftp-proxy[38884]: setsockopt(IP_RECVDSTAD= DR): Protocol not available It was first reported on pfSense, then I reproduced it on stock FreeBSD as well. Ref: https://redmine.pfsense.org/issues/6315 --=20 You are receiving this mail because: You are the assignee for the bug.=