James Chapman 199f7d24ae lt2p: Fix possible WARN_ON from socket code when UDP socket is closed
If an L2TP daemon closes a tunnel socket while packets are queued in
the tunnel's reorder queue, a kernel warning is logged because the
socket is closed while skbs are still referencing it. The fix is to
purge the queue in the socket's release handler.

WARNING: at include/net/sock.h:351 udp_lib_unhash+0x41/0x68()
Pid: 12998, comm: openl2tpd Not tainted 2.6.25 #8
 [<c0423c58>] warn_on_slowpath+0x41/0x51
 [<c05d33a7>] udp_lib_unhash+0x41/0x68
 [<c059424d>] sk_common_release+0x23/0x90
 [<c05d16be>] udp_lib_close+0x8/0xa
 [<c05d8684>] inet_release+0x42/0x48
 [<c0592599>] sock_release+0x14/0x60
 [<c059299f>] sock_close+0x29/0x30
 [<c046ef52>] __fput+0xad/0x15b
 [<c046f1d9>] fput+0x17/0x19
 [<c046c8c4>] filp_close+0x50/0x5a
 [<c046da06>] sys_close+0x69/0x9f
 [<c04048ce>] syscall_call+0x7/0xb

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-04 15:07:32 -07:00
..
2008-05-13 01:31:37 -04:00
2008-05-30 22:07:19 -04:00
2008-03-26 00:18:44 -04:00
2008-03-17 08:11:03 -04:00
2008-03-26 00:18:43 -04:00
2008-03-26 00:18:43 -04:00
2008-05-22 06:20:14 -04:00
2008-04-29 01:56:14 -04:00
2008-01-31 19:27:17 -08:00
2008-05-02 16:58:18 -07:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:57:55 -08:00
2008-05-22 06:20:02 -04:00
2008-03-26 00:18:43 -04:00
2008-02-01 20:54:03 +11:00
2008-04-29 08:06:27 -07:00
2008-04-29 01:56:01 -04:00
2008-03-05 18:51:19 -08:00
2008-05-01 08:08:36 -07:00
2008-04-29 08:06:27 -07:00
2008-02-03 04:26:12 -08:00
2008-03-17 08:11:41 -04:00
2008-05-21 16:55:59 -07:00
2008-04-25 02:08:51 -04:00
2008-02-03 04:28:10 -08:00
2008-03-17 07:56:33 -04:00
2008-03-26 00:18:04 -04:00
2008-03-26 00:18:00 -04:00
2008-03-05 16:34:41 -06:00
2008-05-22 06:03:29 -04:00
2008-03-17 07:56:27 -04:00
2008-04-16 20:41:44 -04:00
2008-05-22 06:18:55 -04:00
2008-05-30 22:07:17 -04:00
2008-04-27 18:19:08 +02:00
2008-05-13 01:31:44 -04:00
2008-04-30 08:29:47 -07:00
2008-04-16 20:06:50 -04:00
2008-02-03 04:26:15 -08:00
2008-03-23 03:35:12 -07:00
2008-02-03 04:26:14 -08:00
2008-04-17 15:31:31 -04:00
2008-05-02 16:49:50 -07:00
2008-04-25 02:45:23 -04:00