答复: [PATCH] net: ax25: replace bh_lock_sock with lock_sock_fast in ax25_rt_autobind

2019-04-04 Thread Li,Rongqing
> -邮件原件- > 发件人: Eric Dumazet [mailto:eric.duma...@gmail.com] > 发送时间: 2019年4月4日 11:52 > 收件人: Li,Rongqing ; r...@linux-mips.org; > linux-hams@vger.kernel.org; net...@vger.kernel.org > 主题: Re: [PATCH] net: ax25: replace bh_lock_sock with lock_sock_fast in > ax25_rt_auto

Re: [PATCH] net: ax25: replace bh_lock_sock with lock_sock_fast in ax25_rt_autobind

2019-04-03 Thread Eric Dumazet
On 04/03/2019 05:51 PM, Li RongQing wrote: > ax25_rt_autobind is always called in user context, so lock_sock_fast > should be used, and bh_lock_sock should only be used in BH context > this replacement fixes a possible deadlock > > > Reported-by:

[PATCH] net: ax25: replace bh_lock_sock with lock_sock_fast in ax25_rt_autobind

2019-04-03 Thread Li RongQing
ax25_rt_autobind is always called in user context, so lock_sock_fast should be used, and bh_lock_sock should only be used in BH context this replacement fixes a possible deadlock inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. ksoftirqd/1/16 [HC0[0]:SC1[1]:HE1:SE0] takes: 8282a7d4