android_kernel_xiaomi_sm8350/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
chunk.c Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
command.c
crc32c.c
debug.c [NET]: Fix comparisons of unsigned < 0. 2007-06-03 18:08:47 -07:00
endpointola.c
input.c [SCTP] Flag a pmtu change request 2007-06-13 20:44:42 +00:00
inqueue.c
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
objcnt.c
output.c
outqueue.c
primitive.c
proc.c
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
sysctl.c
transport.c [SCTP] Don't disable PMTU discovery when mtu is small 2007-06-13 20:44:42 +00:00
tsnmap.c
ulpevent.c [SCTP]: Do not include ABORT chunk header in the notification. 2007-05-10 23:45:31 -07:00
ulpqueue.c