Re: [PATCH] net: llc: add lock_sock in llc_ui_bind to avoid a race condition

2017-05-26 Thread David Miller
From: Lin Zhang Date: Thu, 25 May 2017 14:07:18 +0800 > There is a race condition in llc_ui_bind if two or more processes/threads > try to bind a same socket. > > If more processes/threads bind a same socket success that will lead to > two problems, one is this action

[PATCH] net: llc: add lock_sock in llc_ui_bind to avoid a race condition

2017-05-25 Thread Lin Zhang
There is a race condition in llc_ui_bind if two or more processes/threads try to bind a same socket. If more processes/threads bind a same socket success that will lead to two problems, one is this action is not what we expected, another is will lead to kernel in unstable status or oops(in my