From nobody Thu Jul 01 08:27:23 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CFC5A11E4B02 for ; Thu, 1 Jul 2021 08:27:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GFrtM5LFKz4r0g for ; Thu, 1 Jul 2021 08:27:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A04F71D315 for ; Thu, 1 Jul 2021 08:27:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1618RNhm091213 for ; Thu, 1 Jul 2021 08:27:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1618RN1j091212 for bugs@FreeBSD.org; Thu, 1 Jul 2021 08:27:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256917] ftp-proxy doesn't work properly Date: Thu, 01 Jul 2021 08:27:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sasaki@fcc.ad.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256917 Bug ID: 256917 Summary: ftp-proxy doesn't work properly Product: Base System Version: 12.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: sasaki@fcc.ad.jp stable/12-n233341-43a58daffe72 I have recently updated my server to the above. Since then, ftp-proxy doesn= 't work properly. When I connect to the ftp server, login succeeds. However, when I type ls, = the connection is closed. # ftp xxx Connected to xxx 220 XXX FTP server ready Name (xxx:xxx): 331 Please specify the password. Password:=20 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 421 Service not available, remote server has closed connection. 257 "/" is the current directory The result of truss -p PID_OF_FTP_PROXY after typing ls is as follows. kevent(6,{ },0,{ 7,EVFILT_READ,EV_ONESHOT,0,0x6,0x8014dd1c0 },64,{ 86399.998605000 }) =3D 1 (0x1) ioctl(7,FIONREAD,0x7fffffffe6ec) =3D 0 (0x0) read(7,"EPSV\r\n",6) =3D 6 (0x6) kevent(6,{ 7,EVFILT_READ,EV_DELETE,0,0,0x0 7,EVFILT_READ,EV_ADD|EV_ONESHOT,0,0,0x8014dd1c0 8,EVFILT_WRITE,EV_ADD|EV_ONESHOT,0,0,0x8014dd098 },3,{ 7,EVFILT_READ,EV_ERROR,0,0x2,0x0 },64,{ 86394.255447000 }) =3D 1 (0x1) kevent(6,{ },0,{ 8,EVFILT_WRITE,EV_ONESHOT,0,0x832c,0x8014dd098 },64,{ 86394.255383000 }) =3D 1 (0x1) write(8,"EPSV\r\n",6) =3D 6 (0x6) kevent(6,{ 8,EVFILT_WRITE,EV_DELETE,0,0,0x0 },1,{ 8,EVFILT_WRITE,EV_ERROR,0,0x2,0x0 },64,{ 86394.255268000 }) =3D 1 (0x1) kevent(6,{ },0,{ 8,EVFILT_READ,EV_ONESHOT,0,0x30,0x8014dd000 },64,{ 86394.255214000 }) =3D 1 (0x1) ioctl(8,FIONREAD,0x7fffffffe6ec) =3D 0 (0x0) read(8,"229 Entering Extended Passive Mo"...,48) =3D 48 (0x30) getpid() =3D 7802 (0x1e7a) ioctl(4,DIOCXBEGIN,0x102d958) =3D 0 (0x0) getpid() =3D 7802 (0x1e7a) ioctl(4,DIOCBEGINADDRS,0x102d4e8) =3D 0 (0x0) ioctl(4,DIOCADDRULENV,0x7fffffffe560) ERR#22 'Invalid argument' __sysctl("kern.hostname",2,0x7fffffffe0c0,0x7fffffffd368,0x0,0) =3D 0 (0x0) getpid() =3D 7802 (0x1e7a) sendto(5,"<26>1 2021-07-01T17:22:03.310854"...,129,0,NULL,0) =3D 129 (0x81) ioctl(4,DIOCXROLLBACK,0x102d958) =3D 0 (0x0) write(7,0x8014e4000,0) =3D 0 (0x0) write(8,0x8014e4200,0) =3D 0 (0x0) close(7) =3D 0 (0x0) close(8) =3D 0 (0x0) getpid() =3D 7802 (0x1e7a) ioctl(4,DIOCXBEGIN,0x102d958) =3D 0 (0x0) ioctl(4,DIOCXCOMMIT,0x102d958) =3D 0 (0x0) kevent(6,{ 8,EVFILT_READ,EV_DELETE,0,0,0x0 8,EVFILT_READ,EV_ADD|EV_ONESHOT,0,0,0x8014dd000 7,EVFILT_READ,EV_DELETE,0,0= ,0x0 8,EVFILT_READ,EV_DELETE,0,0,0x0 },4,{ 8,EVFILT_READ,EV_ERROR,0,0x9,0x0 8,EVFILT_READ,EV_ERROR,0,0x9,0x8014dd000 7,EVFILT_READ,EV_ERROR,0,0x9,0x0 8,EVFILT_READ,EV_ERROR,0,0x9,0x0 },64,{ 5.000000000 }) =3D 4 (0x4) kevent(6,{ },0,{ },64,{ 5.000000000 }) =3D 0 (0x0) I changed the source back to 0d71f9f36e6c and the issue has gone. I think t= he following commit is causing this issue. commit 95be9288f01f30a50440ea56d11468a2c6e18fed (HEAD) Author: Kristof Provost Date: Mon Mar 29 14:03:39 2021 +0200 (t)ftp-proxy: use libpfctl Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29641 --=20 You are receiving this mail because: You are the assignee for the bug.=