Re: [Patch net] af_key: relax availability checks for skb size calculation

2021-01-05 Thread Steffen Klassert
On Sat, Dec 26, 2020 at 04:50:20PM -0800, Cong Wang wrote: > From: Cong Wang > > xfrm_probe_algs() probes kernel crypto modules and changes the > availability of struct xfrm_algo_desc. But there is a small window > where ealg->available and aalg->available get changed between > count_ah_combs()/c

[Patch net] af_key: relax availability checks for skb size calculation

2020-12-26 Thread Cong Wang
From: Cong Wang xfrm_probe_algs() probes kernel crypto modules and changes the availability of struct xfrm_algo_desc. But there is a small window where ealg->available and aalg->available get changed between count_ah_combs()/count_esp_combs() and dump_ah_combs()/dump_esp_combs(), in this case we