https://github.com/torvalds/linux
Revision 24b95685ffcdb3dc28f64b9e8af6ea3e8360fbc5 authored by James Chapman on 04 June 2008, 22:54:07 UTC, committed by David S. Miller on 04 June 2008, 22:54:07 UTC
Some problems have been experienced in the field which cause an oops in the pppol2tp driver if L2TP tunnels fail while passing data. The pppol2tp driver uses private data that is referenced via the sk->sk_user_data of its UDP and PPPoL2TP sockets. This patch makes sure that the driver uses sock_hold() when it holds a reference to the sk pointer. This affects its sendmsg(), recvmsg(), getname(), [gs]etsockopt() and ioctl() handlers. Tested by ISP where problem was seen. System has been up 10 days with no oops since running this patch. Without the patch, an oops would occur every 1-2 days. Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 293ad60
Tip revision: 24b95685ffcdb3dc28f64b9e8af6ea3e8360fbc5 authored by James Chapman on 04 June 2008, 22:54:07 UTC
l2tp: Fix possible oops if transmitting or receiving when tunnel goes down
l2tp: Fix possible oops if transmitting or receiving when tunnel goes down
Tip revision: 24b9568
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 88 bytes |
Kconfig | -rw-r--r-- | 16.2 KB |
Makefile | -rw-r--r-- | 2.5 KB |
adummy.c | -rw-r--r-- | 3.0 KB |
ambassador.c | -rw-r--r-- | 67.2 KB |
ambassador.h | -rw-r--r-- | 16.0 KB |
atmsar11.data | -rw-r--r-- | 28.5 KB |
atmsar11.regions | -rw-r--r-- | 145 bytes |
atmsar11.start | -rw-r--r-- | 83 bytes |
atmtcp.c | -rw-r--r-- | 11.4 KB |
eni.c | -rw-r--r-- | 60.9 KB |
eni.h | -rw-r--r-- | 4.5 KB |
firestream.c | -rw-r--r-- | 54.2 KB |
firestream.h | -rw-r--r-- | 14.7 KB |
fore200e.c | -rw-r--r-- | 89.0 KB |
fore200e.h | -rw-r--r-- | 39.0 KB |
fore200e_firmware_copyright | -rw-r--r-- | 1.8 KB |
fore200e_mkfirm.c | -rw-r--r-- | 3.1 KB |
he.c | -rw-r--r-- | 81.6 KB |
he.h | -rw-r--r-- | 20.7 KB |
horizon.c | -rw-r--r-- | 83.9 KB |
horizon.h | -rw-r--r-- | 16.7 KB |
idt77105.c | -rw-r--r-- | 11.4 KB |
idt77105.h | -rw-r--r-- | 3.7 KB |
idt77252.c | -rw-r--r-- | 90.9 KB |
idt77252.h | -rw-r--r-- | 33.6 KB |
idt77252_tables.h | -rw-r--r-- | 44.9 KB |
iphase.c | -rw-r--r-- | 108.9 KB |
iphase.h | -rw-r--r-- | 55.9 KB |
lanai.c | -rw-r--r-- | 82.3 KB |
midway.h | -rw-r--r-- | 7.5 KB |
nicstar.c | -rw-r--r-- | 84.3 KB |
nicstar.h | -rw-r--r-- | 24.5 KB |
nicstarmac.c | -rw-r--r-- | 6.5 KB |
nicstarmac.copyright | -rw-r--r-- | 2.7 KB |
pca200e.data | -rw-r--r-- | 44.8 KB |
pca200e_ecd.data | -rw-r--r-- | 47.7 KB |
sba200e_ecd.data | -rw-r--r-- | 48.9 KB |
suni.c | -rw-r--r-- | 8.1 KB |
suni.h | -rw-r--r-- | 8.7 KB |
tonga.h | -rw-r--r-- | 694 bytes |
uPD98401.h | -rw-r--r-- | 11.7 KB |
uPD98402.c | -rw-r--r-- | 6.4 KB |
uPD98402.h | -rw-r--r-- | 4.4 KB |
zatm.c | -rw-r--r-- | 43.4 KB |
zatm.h | -rw-r--r-- | 3.5 KB |
zeprom.h | -rw-r--r-- | 944 bytes |
Computing file changes ...