From owner-freebsd-net@freebsd.org Mon May 4 00:12:53 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDF1B2BE297 for ; Mon, 4 May 2020 00:12:53 +0000 (UTC) (envelope-from john@saltant.com) Received: from twaddle.saltant.net (twaddle.saltant.net [72.78.188.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Fjx10FHdz4TSF; Mon, 4 May 2020 00:12:52 +0000 (UTC) (envelope-from john@saltant.com) Received: from statler.priv.n.saltant.net (unknown [IPv6:2001:470:8d6f:0:a502:aedf:6835:9d2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by twaddle.saltant.net (Postfix) with ESMTPSA id 3C0BD14A9; Sun, 3 May 2020 20:12:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=saltant.com; s=twaddle; t=1588551165; bh=EwyXfrjwbyhdPOB52xazAQO2MQUCEoiOW4zJ1ZvnuVQ=; h=To:From:Subject:Date; b=LwXRgB1+43UQTbUPAakOlxl5/a3KdyTt8XlffAMoBohlleR3QiP+lkxPlecutBtuV OLY/ETkqv7yYXidCgeVP3HNCrzi+6LQkI2jKKMFKj5ER1IEo1fkSL+/Y38iJcMeyTy 7bvCEeIIDoJz3kyxYH/0v2SFLPq0xkmpL9Nm3YJm4VB6hgXIzGQCKTYy3AUoBEcCYg ukMGCmZxvgyzsJTt0w4nkRdwIcuVh4ZeJ6Ks3XeZQP4K37A+bB4Yz+Re+s3T9LW1ui i3kIgOtWLPY+lGWsWHqdR5A78NEuEn9NnXoARSGlrjRXUOIzoBKuTOXNsH4GbmYiJA YuVSpoDE0eGMg== To: FreeBSD Net , "Andrey V. Elsukov" From: "John W. O'Brien" Subject: RUNNING flag remains unset upon reinserting a gre into VNET jail Autocrypt: addr=john@saltant.com; prefer-encrypt=mutual; keydata= mQINBFpcMG0BEACeAEQ0ZTUEH+6B8XIBid2H8g1yY+niHxVphqz8JwnQtYX+bS+Kl3vr783F HH81DEbfPtYgHY53NF9FjSzCyj13lXVnEGQOdxXzZVKsN1nyuXCN2hDOFH7Yc5yQ8h85T4Hv sqPIGIXOztu4MX14iUAcTgLhfibNQBeKDeNI+BBeaE9lPuNVeiM+xsI4JYcjmDbjFzAHRpBo ull0koUFh6RZAKE7u17yLej1pTIQQVjQpWdK37BAq4hdkLwjGDY8mDGo3ZwGdNibxIAxv/wi KU6u2DfUg8+kLHIhOqk/+kFQ/uK5YA1azsyD5eIbNAs4W7LglA6SkiGBglTwkP0VCrkPdD14 6sx3U7uFgexDWbVuhLIkcPQ0SRmnjgUKHgk7px/jMvAPKSKoL0JQNdP/+pnO9CDLGmoHx9gE 5kVr5dQK8c/WauEfimAdE9qLuN6vb0Iei73q3e3OOHAUusR5wC5SwXt4iilbaK4r04NKXyfb SB3+qWST07F9cmMscfEStSBhpez3awB+1jz8gr40tkEGsFZGvD2KKAgZdKpoxv6IrZepclWz HpqHF01SRFORYMsd1d83XlEu/S1/Z9YJ87RoCdZuYCkjnoRPtpTi9d+JD/u3ZiQFwLUz/Ne3 VqiGKvY66EGcO3tvANMg6GWD9sqlnBDp9Lls0ChEY3dgDYd6DQARAQABtCJKb2huIFcuIE8n QnJpZW4gPGpvaG5Ac2FsdGFudC5jb20+iQJUBBMBCAA+AhsDBQsJCAcCBhUKCQgLAgQWAgMB Ah4BAheAFiEENPkbBr3zmPAVSH2HM8TWS4ldvzsFAlpcMTMFCQX2qcYACgkQM8TWS4ldvztT xQ//eHb1mgd40Z0fN2GnJti6/9uJ771IO6slFQ02GZcXZI+FIQo8Yd1dHe0e0Codu78qvJNr ggUtqdx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7oKQbwyavH6YHPcF/aix0DArvCh7nwW0CR/B5YgwD7FtTgE9ZcTof7am IR0ZVQ40kCyanLXp/qHiY9mR0g8Ggy9/rGA5fUsu1/ugyvJPBU/usmQfz3TcTNiuefVrh+Xh cuTc5dDP0d2MHfnKPxnj9F9+9sjJIgD1TbMDtbDhhCw3xkRnR3tbXM2hfDm2CyGKsCYIqDhb Isguy0R5IoW4gL2fHztgtFu3kvYbd45QUuopJhqK/fyRPaEhDx0FE2/jhYdFPJo90DmqL5Pm LJPsa12ActP1cArwAeXFLejxsjfTZeQ49Ww7GK2ZXnoEXFp5fmy2zoCUy12f9245Hvx8ea2y Z9nB+f1CWOPLRctjUqqBWXyQI1cErN9lhJIaCbDFGs61JOBzgFq2q+VnYtWmUJzOtGOGcEfX Nckeve7ALaUiFxGje9zepN2d/xKj Message-ID: Date: Sun, 3 May 2020 20:12:40 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xqNwfezJN2dnf21jtcUAtHagGZBJLvdSL" X-Rspamd-Queue-Id: 49Fjx10FHdz4TSF X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=saltant.com header.s=twaddle header.b=LwXRgB1+; dmarc=none; spf=pass (mx1.freebsd.org: domain of john@saltant.com designates 72.78.188.147 as permitted sender) smtp.mailfrom=john@saltant.com X-Spamd-Result: default: False [-7.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[saltant.com:s=twaddle]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:72.78.188.144/29]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; DMARC_NA(0.00)[saltant.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[saltant.com:+]; RCPT_COUNT_TWO(0.00)[2]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; IP_SCORE(-2.86)[ip: (-9.91), ipnet: 72.78.0.0/16(-4.91), asn: 701(0.60), country: US(-0.05)]; ASN(0.00)[asn:701, ipnet:72.78.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 00:12:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xqNwfezJN2dnf21jtcUAtHagGZBJLvdSL Content-Type: multipart/mixed; boundary="R1t7uOqxOd5bvgHjWv8ihzCsIfv5eork0" --R1t7uOqxOd5bvgHjWv8ihzCsIfv5eork0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hello Andrey and FreeBSD Net, Today I stumbled upon what may be zero, one, or maybe two bugs. If it's one bug, then I think there might be a case the fine work in r339552 [0] to keep the RUNNING flag consistent with whether or not the gre source address exists does not accommodate. I'm still working on a minimal test case, so bear with me. If I create gre0 on the host, then start a VNET jail which gets gre0 and a physical interface (msk1, in my case) and inside which both are configured, all is well inside the jail. Upon stopping the jail, the "tunnel" setting is not removed from the gre (I'm not sure whether to consider this a bug, too, or not), so when the dust settles back on the host, msk1 has no address, and the gre is not RUNNING, which is fine. However, if I start the jail again, then the gre is not RUNNING inside the jail even though msk1 again has the appropriate source address. I worked around this by creating gre0 inside the jail where it is destroyed upon jail stop. It would be nice if it either worked the other way, or failed with less astonishment. Am I missing something that should be obvious? If this does seem like a bug, shall I submit something now or wait until I have a cleaner demo? [0] https://svnweb.freebsd.org/changeset/base/339552 (thank you!) Regards, --=20 John W. O'Brien OpenPGP keys: 0x33C4D64B895DBF3B --R1t7uOqxOd5bvgHjWv8ihzCsIfv5eork0-- --xqNwfezJN2dnf21jtcUAtHagGZBJLvdSL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEUgT925O8rsvNs2oHIjgwc/pAJtYFAl6vXfkACgkQIjgwc/pA Jta6xAgA2AT0QyPQhSkjblKpAA/FdDz5SUV5wvuExITJJ6RgGqicY8QXh4ptkS2o Qw80B/UrJembf6ktUU84n9d/9cMFtCPtgeXbCyFOtRDkcUO5mOqUZ21TA1k57dIH l3IHJsCopL1oGdJBjCdoiMLT2SZuRDSesKo5MZ3Q//aKuskboj+FxVZd06ieIGSp 5aSstPydTZh5gynHFF82aKr7eB3boMoxzRj9Q7ZMCviILvVuuHDQqRo5LyAlVoW8 h1fLg9wz9sAIhzsUtKB+HsauO5CpgsxEGykP/n/iVb7e+u4O+cYIL87k/5bWojlW 6xS15ZbQc64SgU+J0DhB9Mgnyc1O4A== =bCgB -----END PGP SIGNATURE----- --xqNwfezJN2dnf21jtcUAtHagGZBJLvdSL--