1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-22 16:06:04 -05:00
linux/net/rxrpc
Michal Luczaj 0202005664 rxrpc: Improve setsockopt() handling of malformed user input
copy_from_sockptr() does not return negative value on error; instead, it
reports the number of bytes that failed to copy. Since it's deprecated,
switch to copy_safe_from_sockptr().

Note: Keeping the `optlen != sizeof(unsigned int)` check as
copy_safe_from_sockptr() by itself would also accept
optlen > sizeof(unsigned int). Which would allow a more lenient handling
of inputs.

Fixes: 17926a7932 ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-11-28 08:57:42 +01:00
..
af_rxrpc.c rxrpc: Improve setsockopt() handling of malformed user input 2024-11-28 08:57:42 +01:00
ar-internal.h
call_accept.c
call_event.c
call_object.c
call_state.c
conn_client.c
conn_event.c
conn_object.c
conn_service.c
input.c
insecure.c
io_thread.c
Kconfig
key.c
local_event.c
local_object.c
Makefile
misc.c
net_ns.c
output.c
peer_event.c
peer_object.c
proc.c
protocol.h
recvmsg.c
rtt.c
rxkad.c
rxperf.c
security.c
sendmsg.c rxrpc: Add a tracepoint for aborts being proposed 2024-11-11 15:27:46 -08:00
server_key.c
skbuff.c
sysctl.c
txbuf.c
utils.c