Commit Graph

281 Commits

Author SHA1 Message Date
henrik karlsson
612fd20109 [UBA]
* Added so server listens on wifi adapters

[CL 32482666 by henrik karlsson in ue5-main branch]
2024-03-25 16:30:15 -04:00
henrik karlsson
084130e5b8 [UBA]
* Fixed bug in Detoured_NtQueryDirectoryFile when folder had deleted files and you could end up in infinite loops

[CL 32459316 by henrik karlsson in ue5-main branch]
2024-03-23 00:02:00 -04:00
joe kirchoff
982ba96b04 UBA: Don't increment the file list handle in NtQueryDirectoryFile if the next entry would overflow the buffer
#rnx

[CL 32414676 by joe kirchoff in ue5-main branch]
2024-03-21 16:44:21 -04:00
henrik karlsson
a45170b9dc [UBA]
* Refactored out uba horde integration to its own module called UbaCoordinatorHorde. This required some changes like callback registration to register helpers to uba host
* Added UbaCoordinatorHorde target in uba to be able to compile a coordinator for horde that can be used in UbaCli or other custom written uba tools

#rb laura.hermanns

[CL 32347975 by henrik karlsson in ue5-main branch]
2024-03-20 01:20:59 -04:00
henrik karlsson
ee70da6f22 [UBA]
* Changed so only non-windows platforms need 128kb message buffer... right now only macos creates those super long command lines

[CL 32317060 by henrik karlsson in ue5-main branch]
2024-03-18 20:24:28 -04:00
henrik karlsson
3971e1cefd [UBA]
* Fixed badly formatted printf
* Added so failing to write output files return fail
* Moved a couple of message handlers to separate functions to solve stack complains from submit tool

[CL 32316873 by henrik karlsson in ue5-main branch]
2024-03-18 20:08:25 -04:00
zack neyland
8982d4c65b UBA: Bumping size limits for commandlines as some projects need >64k when building, due to all of the args/flags/paths/includes/etc.
[CL 32304771 by zack neyland in ue5-main branch]
2024-03-18 13:32:47 -04:00
henrik karlsson
ce9ea2da6a [UBA]
* Added retry code for opening file for write. Will retry 5 times with one second in between. We have seen fails to open files for write randomly over the last five months (only a few times).. have no idea what could cause this.. have never seen it locally myself
* Fixed non unity compile error

[CL 32281959 by henrik karlsson in ue5-main branch]
2024-03-15 15:28:20 -04:00
henrik karlsson
f98fe6f4eb [UBA]
* Fixed exit race condition for posix processes... session can end up in a situation where it sees the process as exited without getting an exit message.. we have assumed this was a crash but it is actually just a matter of message wait event timing out just before the exit message is written, and then the detoured process manages to exit before the isProcessAlive-checking happens..

Solution is simply to do one more check for messages in the shared memory if an exit has happened without an exit message

[CL 32268295 by henrik karlsson in ue5-main branch]
2024-03-15 01:05:02 -04:00
henrik karlsson
b94573ce62 [Uba]
* Fixed linux compile error

[CL 32262970 by henrik karlsson in ue5-main branch]
2024-03-14 18:32:37 -04:00
henrik karlsson
428298308f [UBA]
* Fixed so NetworkMessage can be created without initialized
* Removed unused code
* Fixed StorageClient::SendBatchMessages so it deletes correct number of messages if it disconnects in the middle of transfer

[CL 32262740 by henrik karlsson in ue5-main branch]
2024-03-14 18:21:41 -04:00
henrik karlsson
85b8ffef2c [UBA]
* Enabled file writing using memory maps (we've tested on two machines that behaves very different with file writing and mmap is the only path that makes write fast on both machines)
* Changed from lock to bottleneck for creating file mappings and allow four at the time.

[CL 32262457 by henrik karlsson in ue5-main branch]
2024-03-14 18:14:50 -04:00
henrik karlsson
668a0db77c [UBA]
* Added _RDATA section to callback in detoured ImageGetDigestStream.. Needed to new dxil.dll to match hash on linux/wine

[CL 32262272 by henrik karlsson in ue5-main branch]
2024-03-14 18:10:36 -04:00
henrik karlsson
fabf93ee7c [Uba]
* Added lots of more logging around processes disappearing without exit message
* Added descriptions to lots of asserts since macos refuse to give us good line numbers
* Added more error handling

[CL 32255038 by henrik karlsson in ue5-main branch]
2024-03-14 15:26:23 -04:00
henrik karlsson
3799cdb157 [UBA]
* Some minor fixes in uba visualizer

[CL 32232310 by henrik karlsson in ue5-main branch]
2024-03-13 18:45:42 -04:00
henrik karlsson
004da771ce [UBA]
* Added description to error message when process exits before getting exit message
* Changed NtQueryDirectoryFile usage in UbaDirectoryIterator to use ReturnSingleEntry=false to reduce number of kernel calls. It now uses a 64k buffer to receive as many entries as possible at the time
* Fixed bug in detoured NtQueryDirectoryFile after learning how it works by implementing ReturnSingleEntry=false

[CL 32227289 by henrik karlsson in ue5-main branch]
2024-03-13 16:35:01 -04:00
henrik karlsson
099c4852e5 [UBA]
* Re-added use for ftruncate on mac because it still didn't work after the fix for linux

[CL 32198795 by henrik karlsson in ue5-main branch]
2024-03-12 19:46:15 -04:00
henrik karlsson
28aca8842c [UBA]
* Proper fix for setting size of file mapping.. bug was that it tried to set file mapping size on files that were readonly and error was confusing

[CL 32198674 by henrik karlsson in ue5-main branch]
2024-03-12 19:42:15 -04:00
Evtihevich
548c478c7d PR #11565: [PVS-Studio] Added a new format of the analyzer report
#jira UE-208643

[CL 32198434 by Evtihevich in ue5-main branch]
2024-03-12 19:33:22 -04:00
henrik karlsson
bfa825a87d [Uba]
* Fixed bug where NtQueryDirectoryFile did not handle buffer overflow properly

[CL 32196981 by henrik karlsson in ue5-main branch]
2024-03-12 18:49:48 -04:00
henrik karlsson
1c70c24b63 [Uba]
* Fixed stack overflow issue on mac silicon machines

[CL 32195720 by henrik karlsson in ue5-main branch]
2024-03-12 18:16:36 -04:00
henrik karlsson
280abc07b7 [Uba]
* Added missing check for if AppendDir actually contains a dir

[CL 32192267 by henrik karlsson in ue5-main branch]
2024-03-12 17:04:23 -04:00
henrik karlsson
b9ec730a06 [UBA]
* Changed so macos is using ftruncate instead of lseek+write.  This fixes failed unit test on some macs
* Removed locks in UbaNetworkBackendMemory to fix potential deadlock
* Added StringBuffer::GetFileName since it is a common usecase when doing debug printing
* Added missing close of file descriptor in error situation

[CL 32191183 by henrik karlsson in ue5-main branch]
2024-03-12 16:37:13 -04:00
henrik karlsson
5b63e2a3e9 [UBA]
* Added support for running individual unit tests from command line

[CL 32188443 by henrik karlsson in ue5-main branch]
2024-03-12 15:22:34 -04:00
henrik karlsson
6a027cfd06 [UBA]
* Fixed so ref count of remote process is kept up in order to prevent it from being deleted at wrong point in time

[CL 32158427 by henrik karlsson in ue5-main branch]
2024-03-11 13:12:54 -04:00