Date: Thu, 29 Jun 2017 13:12:55 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 220217] deadlock on enc and pf Message-ID: <bug-220217-8-2sKc2Uzx6z@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-220217-8@https.bugs.freebsd.org/bugzilla/> References: <bug-220217-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220217 Andrey V. Elsukov <ae@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ae@FreeBSD.org --- Comment #4 from Andrey V. Elsukov <ae@FreeBSD.org> --- (In reply to Kristof Provost from comment #3) > I'm not quite sure how to fix this though. In fact, right now I don't > understand how this ever works. I think we can extend ipsec_ctx_data structure by adding inpcb pointer. It = will be initialized for IPSEC_ENC_BEFORE+HHOOK_TYPE_IPSEC_OUT case, and will be = NULL for other cases. Then pass this pointer to the pfil_run_hooks(). In this ca= se, I think, pf_test_rule() will not invoke pf_socket_lookup() due to pd->lookup.done =3D 1. And for other cases pf_socket_lookup() can be called, because we don't hold any inpcbs. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220217-8-2sKc2Uzx6z>