Re: [PATCH] rose: af_rose: avoid overflows in rose_setsockopt()

2019-06-04 Thread Eric Dumazet
On 6/4/19 5:11 AM, Young Xiao wrote: > Check setsockopt arguments to avoid overflows and return -EINVAL for > too large arguments. > > See commit 32288eb4d940 ("netrom: avoid overflows in nr_setsockopt()") > for details. > > Signed-off-by: Young Xiao <92siuy...@gmail.com> > --- >

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: