serenity/Kernel/Net
Avery 06218a4074 IPv4: Truncate raw socket reads past buffer length
In addition to being the proper POSIX etiquette, it seems like a bad idea
for issues like the one seen in #3428 to result in a kernel crash. This patch
replaces the current behavior of failing on insufficient buffer size to truncating
SOCK_RAW messages to the buffer size. This will have to change if/when MSG_PEEK
is implemented, but for now this behavior is more compliant and logical than
just bailing.
2020-09-10 12:03:56 +02:00
..
ARP.h AK: Add Endian.h header to replace NetworkOrdered.h. 2020-08-25 16:22:14 +02:00
E1000NetworkAdapter.cpp Kernel: Add more detailed debug output for E1000 {in,out}{8,16,32} 2020-08-31 18:54:04 +02:00
E1000NetworkAdapter.h Kernel: Use AK::Span a bunch in the network adapter code 2020-07-28 20:19:22 +02:00
EthernetFrameHeader.h AK: Add Endian.h header to replace NetworkOrdered.h. 2020-08-25 16:22:14 +02:00
EtherType.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ICMP.h Kernel+AK: Separate out MACAddress and move it into AK 2020-04-05 09:50:48 +02:00
IPv4.h AK: Add Endian.h header to replace NetworkOrdered.h. 2020-08-25 16:22:14 +02:00
IPv4Socket.cpp IPv4: Truncate raw socket reads past buffer length 2020-09-10 12:03:56 +02:00
IPv4Socket.h Kernel: Use Userspace<T> for the recvfrom syscall, and Socket implementation 2020-08-19 21:05:28 +02:00
IPv4SocketTuple.h AK: Remove bitrotted Traits::dump() mechanism 2020-02-10 11:55:34 +01:00
LocalSocket.cpp Kernel: Unbreak building with extra debug macros, part 1 2020-08-30 09:43:49 +02:00
LocalSocket.h Kernel: Use Userspace<T> for the recvfrom syscall, and Socket implementation 2020-08-19 21:05:28 +02:00
LoopbackAdapter.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
LoopbackAdapter.h Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
NetworkAdapter.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
NetworkAdapter.h Kernel: Use AK::Span a bunch in the network adapter code 2020-07-28 20:19:22 +02:00
NetworkTask.cpp AK: Rename KB, MB, GB to KiB, MiB, GiB 2020-08-16 16:33:28 +02:00
NetworkTask.h Kernel: Move NetworkTask startup into NetworkTask::spawn() 2020-04-09 13:31:05 +02:00
Routing.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
Routing.h Kernel: Add the SO_BINDTODEVICE socket option 2020-04-05 09:50:48 +02:00
RTL8139NetworkAdapter.cpp Kernel: Unbreak building with extra debug macros, part 2 2020-08-30 09:43:49 +02:00
RTL8139NetworkAdapter.h Kernel: Use AK::Span a bunch in the network adapter code 2020-07-28 20:19:22 +02:00
Socket.cpp Kernel: Virtualize the File::stat() operation 2020-09-06 18:31:51 +02:00
Socket.h Kernel: Virtualize the File::stat() operation 2020-09-06 18:31:51 +02:00
TCP.h Kernel: Move all code into the Kernel namespace 2020-02-16 01:27:42 +01:00
TCPSocket.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
TCPSocket.h Kernel: Make File weakable 2020-09-06 18:46:46 +02:00
UDP.h Kernel: Move all code into the Kernel namespace 2020-02-16 01:27:42 +01:00
UDPSocket.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
UDPSocket.h Kernel: Make File::write() and File::read() return KResultOr<size_t> 2020-08-04 18:17:16 +02:00