diff options
| author | WANG Cong <[email protected]> | 2017-01-23 19:17:35 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-01-24 19:30:56 +0000 |
| commit | 0fb44559ffd67de8517098b81f675fa0210f13f0 (patch) | |
| tree | 4fe2e2d2f415b7b831e8c3ee999a1915a24d2d4e /net/tipc/node.c | |
| parent | mlxsw: spectrum_router: Correctly reallocate adjacency entries (diff) | |
| download | kernel-0fb44559ffd67de8517098b81f675fa0210f13f0.tar.gz kernel-0fb44559ffd67de8517098b81f675fa0210f13f0.zip | |
af_unix: move unix_mknod() out of bindlock
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 <[email protected]>
Tested-by: Dmitry Vyukov <[email protected]>
Cc: Rainer Weikusat <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
