Date: Tue, 18 Apr 2017 12:32:14 +0300 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: "Julian K." <jk@kornberger.name>, freebsd-net@freebsd.org Subject: Re: Deadlock in ifaddr_change() while removing IPFW rules Message-ID: <b1de6f31-38b0-8dd8-1523-190f15b819b5@yandex.ru> In-Reply-To: <1ae1a996-7218-77b3-3617-b9ed4e45621b@kornberger.name> References: <1ae1a996-7218-77b3-3617-b9ed4e45621b@kornberger.name>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QpAKSMIitA7Gbp3cfUbTtkIQan0i0Xj6D Content-Type: multipart/mixed; boundary="l59gSRQ8ac2vO7XPwV19wWUix64tkIAgC"; protected-headers="v1" From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: "Julian K." <jk@kornberger.name>, freebsd-net@freebsd.org Message-ID: <b1de6f31-38b0-8dd8-1523-190f15b819b5@yandex.ru> Subject: Re: Deadlock in ifaddr_change() while removing IPFW rules References: <1ae1a996-7218-77b3-3617-b9ed4e45621b@kornberger.name> In-Reply-To: <1ae1a996-7218-77b3-3617-b9ed4e45621b@kornberger.name> --l59gSRQ8ac2vO7XPwV19wWUix64tkIAgC Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 18.04.2017 01:49, Julian K. wrote: > I wrote a kernel module [1] for a the fastd UDP tunneling protocol. Lik= e > the if_tun it calls if_purgeaddrs() on destruction of interfaces. When = I > delete IPFW rules a the same time the kernel runs into a deadlock. It > seems to be a general problem that also affects other network drivers. >=20 > Could someone please take a closer look at this issue? Below I attached= > some debugging outputs. > ipfw_chk() at ipfw_chk+0xa42/frame 0xfffffe0098192ee0 > ipfw_check_packet() at ipfw_check_packet+0xeb/frame 0xfffffe0098193040 > pfil_run_hooks() at pfil_run_hooks+0x83/frame 0xfffffe00981930d0 > ip_output() at ip_output+0xdd7/frame 0xfffffe0098193220 > icmp_reflect() at icmp_reflect+0x553/frame 0xfffffe00981932e0 > icmp_error() at icmp_error+0x525/frame 0xfffffe0098193330 > ipfw_chk() at ipfw_chk+0x30bb/frame 0xfffffe0098193520 > ipfw_check_packet() at ipfw_check_packet+0xeb/frame 0xfffffe0098193680 > pfil_run_hooks() at pfil_run_hooks+0x83/frame 0xfffffe0098193710 > ip_input() at ip_input+0x39d/frame 0xfffffe0098193770 > netisr_dispatch_src() at netisr_dispatch_src+0xa5/frame 0xfffffe0098193= 7d0 What FreeBSD version do you use? There were several changes in head/ and stable/11, that could change this behavior. Can you try the same on recent revision? --=20 WBR, Andrey V. Elsukov --l59gSRQ8ac2vO7XPwV19wWUix64tkIAgC-- --QpAKSMIitA7Gbp3cfUbTtkIQan0i0Xj6D 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/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlj13R4ACgkQAcXqBBDI oXoqZggAt6yX9/9SRUoAZ8glvGdsXIV7ePsf3ClnsaJmWs/B+q5vX3rqjsyEzABv aoqtmE6RdhFjdWHYrZJAQoJ+lQ4UIH+kPtHA/r2uFia/TvaEIDt85W2cA+ZNRulz CBePyAQF86+9q6LP45wm6V7qT07hvCF5QVVMCrgA0bNfrBc+Ni5cjuEQ5jb5Hkkl HKj5giVnaalMNTLG9eRRRYu8mNW2nrSnUKHkZFn776dJvo8EzbqpgmwppywZXVQF NzJc5kXiR3Bgywy5KP11+otWvituYJFjnOTfZ9JtjAASniQD15W7b6P7qwSxn5vK JudyNF3BLoWmGjPLl7QYOE59XIIxvQ== =GhgS -----END PGP SIGNATURE----- --QpAKSMIitA7Gbp3cfUbTtkIQan0i0Xj6D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b1de6f31-38b0-8dd8-1523-190f15b819b5>