/[base]
ViewVC logotype

Revision 322741


Jump to revision: Previous Next
Author: ae
Date: Mon Aug 21 09:03:20 2017 UTC (6 years, 10 months ago)
Changed paths: 6
Log Message:
MFC r321779:
  Add inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hook
  from enc_hhook().

  This should solve the problem when pf is used with if_enc(4) interface,
  and outbound packet with existing PCB checked by pf, and this leads to
  deadlock due to pf does its own PCB lookup and tries to take rlock when
  wlock is already held.

  Now we pass PCB pointer if it is known to the pfil hook, this helps to
  avoid extra PCB lookup and thus rlock acquiring is not needed.
  For inbound packets it is safe to pass NULL, because we do not held any
  PCB locks yet.

  PR:		220217
  Sponsored by:	Yandex LLC


Changed paths

Path Details
Directorystable/11/ modified , props changed
Directorystable/11/sys/net/if_enc.c modified , text changed
Directorystable/11/sys/net/if_enc.h modified , text changed
Directorystable/11/sys/netipsec/ipsec.h modified , text changed
Directorystable/11/sys/netipsec/ipsec_input.c modified , text changed
Directorystable/11/sys/netipsec/ipsec_output.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27