Date: Sun, 3 May 2020 20:12:40 -0400 From: "John W. O'Brien" <john@saltant.com> To: FreeBSD Net <freebsd-net@freebsd.org>, "Andrey V. Elsukov" <ae@freebsd.org> Subject: RUNNING flag remains unset upon reinserting a gre into VNET jail Message-ID: <eeee7437-2ed9-1d75-1750-82a9babf2e83@saltant.com>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eeee7437-2ed9-1d75-1750-82a9babf2e83>