Re: [PATCH net] net/x25: fix a race in x25_bind()

2019-02-23 Thread David Miller
From: Eric Dumazet Date: Sat, 23 Feb 2019 13:24:59 -0800 > syzbot was able to trigger another soft lockup [1] > > I first thought it was the O(N^2) issue I mentioned in my > prior fix (f657d22ee1f "net/x25: do not hold the cpu > too long in x25_new_lci()"), but I eventually found > that x25_bind

[PATCH net] net/x25: fix a race in x25_bind()

2019-02-23 Thread Eric Dumazet
syzbot was able to trigger another soft lockup [1] I first thought it was the O(N^2) issue I mentioned in my prior fix (f657d22ee1f "net/x25: do not hold the cpu too long in x25_new_lci()"), but I eventually found that x25_bind() was not checking SOCK_ZAPPED state under socket lock protection. Th