ladybird/Tests/Kernel
Idan Horowitz 863e8c30ad Kernel: Ensure sockets_by_tuple table entry is up to date on connect
Previously we would incorrectly handle the (somewhat uncommon) case of
binding and then separately connecting a tcp socket to a server, as we
would register the socket during the manual bind(2) in the sockets by
tuple table, but our effective tuple would then change as the result of
the connect updating our target peer address. This would result in the
the entry not being removed from the table on destruction, which could
lead to a UAF.

We now make sure to update the table entry if needed during connects.
2023-12-26 18:36:43 +01:00
..
bind-local-socket-to-symlink.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CMakeLists.txt Kernel: Stop modifying peer address/port in sendto on a TCP socket 2023-12-26 18:36:43 +01:00
crash-fcntl-invalid-cmd.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
crash.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
elf-execve-mmap-race.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
elf-symbolication-kernel-read-exploit.cpp Userland+Tests: Add initial riscv64 support 2023-11-10 10:30:08 -07:00
fuzz-syscalls.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
kill-pidtid-confusion.cpp Everywhere: Refer to pthread.h by its non-prefixed name 2022-07-19 11:00:35 +01:00
mmap-write-into-running-programs-executable-file.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
mprotect-multi-region-mprotect.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
munmap-multi-region-unmapping.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
nanosleep-race-outbuf-munmap.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
null-deref-close-during-select.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
null-deref-crash-during-pthread_join.cpp Tests+Userland: Prefer using __builtin_trap() instead of UD2 2022-10-14 13:01:13 +02:00
path-resolution-race.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
pthread-cond-timedwait-example.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
setpgid-across-sessions-without-leader.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
siginfo-example.cpp Tests: Fix new GCC 12 warnings 2022-05-12 13:12:37 +02:00
stress-truncate.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
stress-writeread.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestEFault.cpp Tests/Kernel: Make sure inaccessible area in TestEFault is actually that 2022-08-24 18:35:41 +02:00
TestEmptyPrivateInodeVMObject.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
TestEmptySharedInodeVMObject.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
TestExt2FS.cpp Kernel/Ext2: Avoid overflow when updating UID and GID values 2023-10-24 07:21:11 +02:00
TestInvalidUIDSet.cpp Kernel: Return EINVAL when specifying -1 for setuid and similar syscalls 2021-12-20 11:32:16 +01:00
TestKernelAlarm.cpp AK: Rename Time to Duration 2023-05-24 23:18:07 +02:00
TestKernelFilePermissions.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestKernelPledge.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestKernelUnveil.cpp Kernel: Use FixedStringBuffer for fixed-length strings in syscalls 2023-08-09 21:06:54 -06:00
TestMemoryDeviceMmap.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
TestMunMap.cpp Kernel: Unmapping a non-mapped region with munmap() should be a no-op 2021-07-30 13:16:55 +02:00
TestPosixFallocate.cpp Tests/Kernel: Add a very simple test for posix_fallocate() 2022-11-29 11:09:19 +01:00
TestPrivateInodeVMObject.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
TestProcFS.cpp Tests: TestProcFs cannot assume stdin/stdout/stderr are the same 2021-06-30 08:18:28 +04:30
TestProcFSWrite.cpp Kernel+Userland: Remove the {get,set}_thread_name syscalls 2023-08-25 11:51:52 +02:00
TestSharedInodeVMObject.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
TestSigAltStack.cpp AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most places 2022-10-04 23:35:07 +01:00
TestSigHandler.cpp Tests: Add tests for inheriting signal handlers 2022-07-05 20:58:38 +03:00
TestSigWait.cpp Tests: Add tests for sigwait/sigwaitinfo/sigtimedwait 2021-12-12 08:34:19 +02:00
TestTCPSocket.cpp Kernel: Ensure sockets_by_tuple table entry is up to date on connect 2023-12-26 18:36:43 +01:00
uaf-close-while-blocked-in-read.cpp Tests: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
unveil-symlinks.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00