From owner-freebsd-current@freebsd.org Wed Sep 30 11:52:56 2020 Return-Path: Delivered-To: freebsd-current@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 320C1425B75 for ; Wed, 30 Sep 2020 11:52:56 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4C1ZPz068qz4Bfn; Wed, 30 Sep 2020 11:52:54 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b165146.dip0.t-ipconnect.de [91.22.81.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 1396829A6; Wed, 30 Sep 2020 13:52:45 +0200 (CEST) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 4F7377482; Wed, 30 Sep 2020 13:52:26 +0200 (CEST) Date: Wed, 30 Sep 2020 13:52:25 +0200 Message-ID: <20200930135225.Horde.nVCxwqfnkoJfolbDU0hqqXf@webmail.leidinger.net> From: Alexander Leidinger To: Kristof Provost Cc: Shawn Webb , FreeBSD Current Subject: Re: iflib/bridge kernel panic References: <58CADEBB-64FD-414E-AB19-E4F8D3CABCA5@FreeBSD.org> <20200921121627.3dovpumnl6xub3kn@mutt-hbsd> <7FE1F106-2CEE-4692-95D0-14C5229ED768@FreeBSD.org> <20200928124531.Horde.0EjsBzIG5ktLzby_tFcoPPS@webmail.leidinger.net> <33903BFF-4158-4CD9-AD79-360BCD81F1C9@FreeBSD.org> <20200928164410.Horde.mYBkuEeD_Q6xgnKnwNomv7P@webmail.leidinger.net> <6A5EFCFA-C0DC-4DEF-834B-2F9E4FCC8812@FreeBSD.org> In-Reply-To: <6A5EFCFA-C0DC-4DEF-834B-2F9E4FCC8812@FreeBSD.org> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_1uAUeyzQyrPQ04N48YH6bX_"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4C1ZPz068qz4Bfn X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.09 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-1.01)[-1.015]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.98)[-0.980]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_SPAM_SHORT(0.01)[0.007]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; RECEIVED_SPAMHAUS_PBL(0.00)[91.22.81.70:received] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2020 11:52:56 -0000 This message is in MIME format and has been PGP signed. --=_1uAUeyzQyrPQ04N48YH6bX_ Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Kristof Provost (from Tue, 29 Sep 2020=20=20 23:20:44=20+0200): > On 28 Sep 2020, at 16:44, Alexander Leidinger wrote: > >> Quoting Kristof Provost (from Mon, 28 Sep 2020=20=20 >>=2013:53:16 +0200): >> >>> On 28 Sep 2020, at 12:45, Alexander Leidinger wrote: >>>> Quoting Kristof Provost (from Sun, 27 Sep 2020=20=20 >>>>=2017:51:32 +0200): >>>>> Here=E2=80=99s an early version of a task queue based approach:=20=20 >>>>>=20http://people.freebsd.org/~kp/0001-bridge-Cope-with-if_ioctl-s-that= -sleep.patch >>>>> >>>>> That still needs to be cleaned up, but this should resolve the=20=20 >>>>>=20sleep issue and the LOR. >>>> >>>> There are some issues... seems like inside a jail I can't ping=20=20 >>>>=20systems outside of the hardware. >>>> >>>> Bridge setup: >>>> - member jail A >>>> - member jail B >>>> - member external_if of host >>>> >>>> If I ping the router from the host, it works. If I ping from one=20=20 >>>>=20jail to another, it works. If I ping from the jail to the IP of=20= =20 >>>>=20the external_if, it works. If I ping from a jail to the router, I=20= =20 >>>>=20do not get a response. >>>> >>> Can you check for 'failed ifpromisc' error messages in dmesg? And=20=20 >>>=20verify that all bridge member interfaces are in promiscuous mode? >> >> I have a panic for you...: >> - startup still in progress =3D 22 jails in startup, somewhere after=20= =20 >>=20a few jails started the panic happened >> - tcpdump was running on the external interface >> - a ping to a jail IP from another system was running, the first=20=20 >>=20ping went through, then it paniced >> >> First regarding your questions about promisc mode: no error, but=20=20 >>=20the promisc mode is directly disabled again on all interfaces. >> > I think I see why you had issues with the promiscuous setting. I=E2=80=99= ve=20=20 >=20updated the patch to be even more horrific than it was before. Hmmm.... same behavior as before. I haven't kept the old version of the patch, so I can't compare if I=20=20 somehow=20downloaded the old version again, or if I got the updated one... # md5 0001-bridge-Cope-with-if_ioctl-s-that-sleep.patch MD5 (0001-bridge-Cope-with-if_ioctl-s-that-sleep.patch) =3D=20=20 9f107739e29fad5c9bb5e75e2dae7bcc >=20I can=E2=80=99t explain the panic, and the backtrace also doesn=E2=80= =99t appear to=20=20 >=20be directly related to this patch. Not sure what=E2=80=99s going on wit= h that. Then let's hope for now it is some kind of defect which is not showing=20= =20 up=20when it works as it should... we can have a look at it again in=20=20 case=20it reproduces with the final patch. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_1uAUeyzQyrPQ04N48YH6bX_ Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJfdHF5AAoJEBINsJsD+NiGBQsP/2K1tZOhSU+WVhVE+HHINFjx 4LCV6Ee8leUtPG4oMpWcSB22rO8sgGqidG8VAl0zpM2NPBDUTV6+DFtJC7lLgy5h WIl3W9vLE9andH5qDXKf1qFiFLW4FvyfPI0Z9HGhXboIOqd1ANAMC9ompwQvGZSi LIAlDp9fss7vWTk7nmXCQ9HnblROue4UYsKQP+Q4YmZfTfL1ByULuGuATC4GbEfb hPamlMuioKbOWxpvzMdZ321AU5IuPoDEpu3AneAZ+UmbwTtlDnGWG1gbM4F3VKgx uy4WjHE672lcPdzWRFNYUmR5lmIVOLZ9KCf2Wfk1D9ojJwU4+2CCZJfZGGEyubdo tGkxy4bUx2/mCbwR2SizAnevYpSFwkLXWGMLQMa6oFPstHEb+Bir1rO8bDgaqu7n GuujmbMUnl468snxWc/BZiuNwB3jGcmqr37StIi/5igl4RuFTzkEQYojCm+F+txs inI2Ir3A1wjeOCwR2ISN4hnhuOwIVvFrjeEwnTP1R0mnPH49rlijQjVzynojfXjZ GIDrRmCLRsivKzpHCyqK9gABcqlkD8tPlyvroeBpX5/J4Yt85kvDDxFiY+llvFY8 sj2uQHsxNMZh/JCoJ2LwCMpxwoIFp1yEOrX7RIX3SjCC3NcWwGJLlWfhodKe8vLV mu1Uu4AGjP1CMALDH0JD =zDy6 -----END PGP SIGNATURE----- --=_1uAUeyzQyrPQ04N48YH6bX_--