2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 19:23:57 +08:00
linux-next/net/sctp
Neil Horman 408f22e81e SCTP: update sctp_getsockopt helpers to allow oversized buffers
I noted the other day while looking at a bug that was ostensibly
in some perl networking library, that we strictly avoid allowing getsockopt
operations to complete if we pass in oversized buffers.  This seems to make
libraries like Perl::NET malfunction since it seems to allocate oversized
buffers for use in several operations.  It also seems to be out of line with
the way udp, tcp and ip getsockopt routines handle buffer input (since the
*optlen pointer in both an input and an output and gets set to the length
of the data that we copy into the buffer).  This patch brings our getsockopt
helpers into line with other protocols, and allows us to accept oversized
buffers for our getsockopt operations.  Tested by me with good results.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
2007-06-19 09:46:34 -04: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
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
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: update sctp_getsockopt helpers to allow oversized buffers 2007-06-19 09:46:34 -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