network deadlock in Linux kernel 4.9 (IPSEC)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

network deadlock in Linux kernel 4.9 (IPSEC)

1,351 次查看
wolfgang_muees
Contributor II

Hi,

I am using Linux kernel 4.9 on the i.MX6 series.

If using ethernet MAC and IPSEC (for VPN), sometimes the system goes into deadlock.

The problem is in xfrm_input.c, in the  xfrm_input() function.

This function is called for each incomming network packet, and also for each decrypted packet.

Both calls came from (different) soft irqs, and as the resources were protected with spin_lock(), there will be a deadlock if both calls came at the same time.

The solution is to convert all spinlock functions in  xfrm_input() to use spinlock_bh() funktions.

Look at this patch:

https://patchwork.ozlabs.org/project/netdev/patch/20090511184739.6e497f29@penta.localdomain/

regards

Wolfgang

标签 (1)
0 项奖励
回复
1 回复

1,337 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello wolfgang,

You should try one of the latest BSP 5.4.47 or 5.9 since it has more stable network, and must include the ethernet bug patch.

 

Regards

 

0 项奖励
回复