OpenCloudOS-Kernel/net/sctp
Zach Brown 5131a184a3 SCTP: lock_sock_nested in sctp_sock_migrate
sctp_sock_migrate() grabs the socket lock on a newly allocated socket while
holding the socket lock on an old socket.  lockdep worries that this might
be a recursive lock attempt.

 task/3026 is trying to acquire lock:
  (sk_lock-AF_INET){--..}, at: [<ffffffff88105b8c>] sctp_sock_migrate+0x2e3/0x327 [sctp]
 but task is already holding lock:
  (sk_lock-AF_INET){--..}, at: [<ffffffff8810891f>] sctp_accept+0xdf/0x1e3 [sctp]

This patch tells lockdep that this locking is safe by using
lock_sock_nested().

Signed-off-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
2007-06-26 09:29:09 -04:00
..
Kconfig [SCTP]: Use menuconfig objects. 2007-05-24 16:36:48 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
associola.c [SCTP] Flag a pmtu change request 2007-06-13 20:44:42 +00:00
bind_addr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
chunk.c Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
command.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crc32c.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
debug.c [NET]: Fix comparisons of unsigned < 0. 2007-06-03 18:08:47 -07:00
endpointola.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
input.c [SCTP] Flag a pmtu change request 2007-06-13 20:44:42 +00:00
inqueue.c [SK_BUFF]: Convert skb->tail to sk_buff_data_t 2007-04-25 22:26:28 -07:00
ipv6.c [SCTP]: Re-order SCTP initializations to avoid race with sctp_rcv() 2007-05-04 13:36:30 -07:00
objcnt.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
output.c [NET]: cleanup extra semicolons 2007-04-25 22:29:24 -07:00
outqueue.c [NET]: cleanup extra semicolons 2007-04-25 22:29:24 -07:00
primitive.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
proc.c [PATCH] mark struct file_operations const 8 2007-02-12 09:48:46 -08:00
protocol.c [SCTP]: Re-order SCTP initializations to avoid race with sctp_rcv() 2007-05-04 13:36:30 -07:00
sm_make_chunk.c [SCTP]: Set assoc_id correctly during INIT collision. 2007-05-04 13:55:27 -07:00
sm_sideeffect.c [SCTP]: Set assoc_id correctly during INIT collision. 2007-05-04 13:55:27 -07:00
sm_statefuns.c [SCTP]: Set assoc_id correctly during INIT collision. 2007-05-04 13:55:27 -07:00
sm_statetable.c [NET]: Fix comparisons of unsigned < 0. 2007-06-03 18:08:47 -07:00
socket.c SCTP: lock_sock_nested in sctp_sock_migrate 2007-06-26 09:29:09 -04:00
ssnmap.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
sysctl.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
transport.c [SCTP] Don't disable PMTU discovery when mtu is small 2007-06-13 20:44:42 +00:00
tsnmap.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
ulpevent.c [SCTP]: Do not include ABORT chunk header in the notification. 2007-05-10 23:45:31 -07:00
ulpqueue.c [NET]: cleanup extra semicolons 2007-04-25 22:29:24 -07:00