diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2017-01-23 19:17:35 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-04 08:47:10 (GMT) |
commit | 93ff5e03bcba0761055491dc6bf52b1e0e33bbe6 (patch) | |
tree | bc0f152a616a2bc07c6c1c4b44bce468710eea12 /drivers/misc/isl29003.c | |
parent | 37b27b20a8a948ce5dfbd6e47272fd59e8bd0232 (diff) | |
download | linux-93ff5e03bcba0761055491dc6bf52b1e0e33bbe6.tar.xz |
af_unix: move unix_mknod() out of bindlock
[ Upstream commit 0fb44559ffd67de8517098b81f675fa0210f13f0 ]
Dmitry reported a deadlock scenario:
unix_bind() path:
u->bindlock ==> sb_writer
do_splice() path:
sb_writer ==> pipe->mutex ==> u->bindlock
In the unix_bind() code path, unix_mknod() does not have to
be done with u->bindlock held, since it is a pure fs operation,
so we can just move unix_mknod() out.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Rainer Weikusat <rweikusat@mobileactivedefense.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/isl29003.c')
0 files changed, 0 insertions, 0 deletions