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