Date: Tue, 26 Dec 2017 12:52:34 +0300 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Harsh Jain <harsh@chelsio.com>, freebsd-net@freebsd.org Subject: Re: [freebsd-current]Who should reset M_PKTHDR flag in m_buf when IP packets are fragmented. m_unshare panic throw when IPSec is enabled Message-ID: <993c58bb-3bf2-d6a3-9a05-13e1631aec87@yandex.ru> In-Reply-To: <73302ead-b2e9-c25b-4d11-475f38dec1a1@chelsio.com> References: <73302ead-b2e9-c25b-4d11-475f38dec1a1@chelsio.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --giudNWLMnbHfGdEAqIVvhWbiDTvOIjcC9 Content-Type: multipart/mixed; boundary="cdUnNoLdFC1fNs7dmKTdNXiod0W9CeqdP"; protected-headers="v1" From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Harsh Jain <harsh@chelsio.com>, freebsd-net@freebsd.org Message-ID: <993c58bb-3bf2-d6a3-9a05-13e1631aec87@yandex.ru> Subject: Re: [freebsd-current]Who should reset M_PKTHDR flag in m_buf when IP packets are fragmented. m_unshare panic throw when IPSec is enabled References: <73302ead-b2e9-c25b-4d11-475f38dec1a1@chelsio.com> In-Reply-To: <73302ead-b2e9-c25b-4d11-475f38dec1a1@chelsio.com> --cdUnNoLdFC1fNs7dmKTdNXiod0W9CeqdP Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 26.12.2017 07:43, Harsh Jain wrote: > Hi All, >=20 > If I try to run ping of size say 6000 in IPSec transport mode, m_unshar= e() panic with following trace. It seems that while re-assembly of IP pac= ket "ip_reass" missed re-setting of "M_PKTHDR". After applying below pat= ch things work fine. Can some one suggest Is it a BUG or I am missing som= ethings. >=20 > panic: m_unshare: m0 0xfffff80020f82600, m 0xfffff8005d054100 has M_PKT= HDR > cpuid =3D 15 > time =3D 1495578455 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2c/frame 0xfffffe044= e9bb890 > kdb_backtrace() at kdb_backtrace+0x53/frame 0xfffffe044e9bb960 > vpanic() at vpanic+0x269/frame 0xfffffe044e9bba30 > kassert_panic() at kassert_panic+0xc7/frame 0xfffffe044e9bbac0 > m_unshare() at m_unshare+0x578/frame 0xfffffe044e9bbbc0 > esp_output() at esp_output+0x44c/frame 0xfffffe044e9bbe40 > ipsec4_perform_request() at ipsec4_perform_request+0x5df/frame 0xfffffe= 044e9bbff0 Hi, it seems unusual that IP reassembly happens on outbound path. Do you have some packet normalization using firewall? --=20 WBR, Andrey V. Elsukov --cdUnNoLdFC1fNs7dmKTdNXiod0W9CeqdP-- --giudNWLMnbHfGdEAqIVvhWbiDTvOIjcC9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlpCG+IACgkQAcXqBBDI oXpoUwgAoyNBFvmFW2bgLl6Xx9krr38ZQ7Iz9m1CE3n+uOvpBjTSd5xeh54xFyOd zqwas/0C4OCTZTo7+QOJ4SeUAUxwQiZEEzpvZHkisjWb7E1gxiCREGAFexLgJ1DP B2RTJzw7+oHlFEItk0MiluW4PAIl8KvtbJTrdKec2VgTbsy+pMYSNx5v62o5K6/6 evvKMjc2Hu3VVUBQYcVh6yO9+fJ33Z4judyyF78vsS6tsuMv0rgyGpaTjT6OFp8Y qf6i0w11ALivMj/UUryFly6yk1xMsyguuo1EvmkmpAqC7udhrhUqSJB/dM45eS+/ 6iP9xRLP1RDfLA/c7OEZeiof2CL/1Q== =iB3v -----END PGP SIGNATURE----- --giudNWLMnbHfGdEAqIVvhWbiDTvOIjcC9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?993c58bb-3bf2-d6a3-9a05-13e1631aec87>