Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
4 days | Linux/macOS: Simplify sudo session detection logic and extend it to macOS | Mounir IDRASSI | 5 | -44/+23 | |
This update simplifies the logic for detecting active sudo sessions by checking the exit code of the sudo -n -l command, which reliably returns 0 if a session is active. Additionally, this approach is now applicable to recent macOS versions, as they no longer have the sudo bug that previously prevented us from using this method. | |||||
5 days | Linux: Fix "Password too long" error message not expanded to include max ↵ | Mounir IDRASSI | 1 | -2/+2 | |
length (#1456) | |||||
6 days | Linux/macOS: check if volume doesn't exist before starting the mount operation. | Mounir IDRASSI | 2 | -0/+25 | |
2024-11-27 | Windows: Increment version to 1.26.17.2. Update signed drivers. | Mounir IDRASSI | 14 | -21/+21 | |
2024-11-27 | Windows Setup: Fix the implementation of backup/restore of file permission ↵ | Mounir IDRASSI | 2 | -13/+4 | |
during update | |||||
2024-11-25 | Windows: don't test sign driver by default in Release mode. | Mounir IDRASSI | 2 | -0/+6 | |
2024-11-25 | Windows Setup: Fix "Access Denied" issue during VeraCrypt update after a ↵ | Mounir IDRASSI | 3 | -2/+256 | |
Windows upgrade During a Windows upgrade, ownership of veracrypt.sys is set to TrustedInstaller, preventing VeraCrypt from accessing the file during an update. This commit resolves the issue by temporarily taking ownership of the file to rename it, allowing the new file to be copied. The setup process now obtains additional privileges for this operation, which are properly dropped once the file copying is complete. | |||||
2024-11-24 | Set 1.26.17 release date to November 24th | Mounir IDRASSI | 1 | -1/+1 | |
2024-11-24 | Windows Driver: Set version to 1.26.17.1. Update signed drivers. | Mounir IDRASSI | 7 | -7/+7 | |
2024-11-23 | Windows Driver: Make max work items count configurable. Increase default to ↵ | Mounir IDRASSI | 5 | -38/+56 | |
1024. Queue write IRPs. - Made the maximum work items count configurable to allow flexibility based on system needs. - Increased the default value of max work items count to 1024 to better handle high-throughput scenarios. - Queue write IRPs in system worker thread to avoid potential deadlocks in write scenarios. | |||||
2024-11-22 | Windows Driver: Optimize spinlock usage in CompleteIrpWorkItemRoutine | Mounir IDRASSI | 1 | -8/+4 | |
Reduce the critical section protected by spinlock to only cover the list manipulation operation. Move the ActiveWorkItems counter decrement outside the spinlock using InterlockedDecrement, and separate event signaling from the locked section. This change minimizes time spent at raised IRQL (DISPATCH_LEVEL) and reduces potential for lock contention. | |||||
2024-11-20 | Windows: Update signed Windows drivers. | Mounir IDRASSI | 5 | -1/+1 | |
2024-11-20 | Windows driver: use correct WDM type. Increment version to 1.26.17 | Mounir IDRASSI | 41 | -65/+71 | |
2024-11-18 | Increment version to 1.26.16. Update Release Notes. Update signed Windows ↵ | Mounir IDRASSI | 46 | -59/+59 | |
drivers. | |||||
2024-11-17 | Windows Driver: Use system functions directly instead of dynamic loading ↵ | Mounir IDRASSI | 6 | -223/+53 | |
since we are targeting Windows 10 | |||||
2024-11-17 | Windows Driver: Fix deadlock in EncryptedIoQueue due to re-entrant IRP ↵ | Mounir IDRASSI | 2 | -17/+167 | |
completions There was a deadlock issue in the driver caused by the CompletionThreadProc function in EncryptedIoQueue.c: https://sourceforge.net/p/veracrypt/discussion/general/thread/f6e7f623d0/?page=20&limit=25#8362 The driver uses a single thread (CompletionThreadProc) to process IRP completions. When IoCompleteRequest is called within this thread, it can result in new IRPs being generated (e.g., for pagefile operations) that are intercepted by the driver and queued back into the CompletionThreadQueue. Since CompletionThreadProc is the only thread processing this queue and is waiting on IoCompleteRequest, these new IRPs are not handled, leading to a system freeze. To resolve this issue, the following changes have been made: Deferred IRP Completion Using Pre-allocated Work Items: - Introduced a pool of pre-allocated work items (COMPLETE_IRP_WORK_ITEM) to handle IRP completions without causing additional resource allocations that could trigger new IRPs. - The CompletionThreadProc now queues IRP completions to these work items, which are processed in a different context using IoQueueWorkItem, preventing re-entrant IRPs from blocking the completion thread. Thread-Safe Work Item Pool Management: - Implemented a thread-safe mechanism using a semaphore (WorkItemSemaphore), spin lock (WorkItemLock), and a free list (FreeWorkItemsList) to manage the pool of work items. - Threads acquire and release work items safely, and if all work items are busy, threads wait until one becomes available. Reference Counting and Improved Stop Handling: - Added an ActiveWorkItems counter to track the number of active work items. - Modified EncryptedIoQueueStop to wait for all active work items to complete before proceeding with cleanup, ensuring a clean shutdown. These changes address the deadlock issue by preventing CompletionThreadProc from being blocked by re-entrant IRPs generated during IoCompleteRequest. By deferring IRP completion to a different context using pre-allocated work items and managing resources properly, we avoid the deadlock and ensure that all IRPs are processed correctly. | |||||
2024-11-17 | Linux/macOS: make binary symbols visible in crash report. | Mounir IDRASSI | 1 | -1/+4 | |
2024-11-16 | Windows Driver: Add Unicode define to build and enhance tracing in debug mode | Mounir IDRASSI | 2 | -151/+83 | |
2024-11-16 | Windows: Fix driver crash caused by 32-bit leftover code in ↵ | Mounir IDRASSI | 1 | -3/+0 | |
derive_key_blake2s function | |||||
2024-11-16 | Windows: Avoid modifying BootArguments structure and use __unaligned keyword ↵ | Mounir IDRASSI | 4 | -5/+4 | |
to inform compiler that pointer is unaligned. This avoids issues with existing bootloaders | |||||
2024-11-16 | Windows: remove 32-bit logic from the code since we support only 64-bit. ↵ | Mounir IDRASSI | 41 | -521/+127 | |
remove 32-bit EFI bootloader files. We also fix intermediary files folder for Portable and Setup projects | |||||
2024-11-16 | Windows: Fix output directory configuration of COMREG project | Mounir IDRASSI | 1 | -4/+4 | |
2024-11-16 | Windows: Fix regression in self-test of hash algorithms that caused them to fail | Mounir IDRASSI | 1 | -2/+2 | |
2024-11-15 | Windows: Fix VS 2022 projects references | Mounir IDRASSI | 4 | -26/+30 | |
2024-11-15 | Windows: remove VS 2019 solution and project files since we migrated to VS 2022. | Mounir IDRASSI | 28 | -7285/+0 | |
2024-11-15 | Windows: Fix delayload link warning about comdlg32.dll not used. Remove ↵ | Mounir IDRASSI | 8 | -866/+29 | |
unused old project files | |||||
2024-11-15 | Windows: move main project files and solution from VS 2010 to VS 2022. ↵ | Mounir IDRASSI | 28 | -6847/+1810 | |
Delete unused files. | |||||
2024-11-15 | Windows: Fix warning when building Setup and Portable. No file elevation is ↵ | Mounir IDRASSI | 1 | -0/+8 | |
used for them. | |||||
2024-11-15 | Windows: Upgrade VS 2019 solution/projects to VS 2022. Remove Win32 ↵ | Mounir IDRASSI | 14 | -1816/+880 | |
configuration for driver and binaries. Only setup remains 32-bit to be compatible with both x64 and arm64 Windows. | |||||
2024-11-15 | Windows: Fix build of MBR bootloader | Mounir IDRASSI | 1 | -1/+1 | |
2024-11-15 | Windows: Fix warning in driver build by make get_pkcs5_iteration_count have ↵ | Mounir IDRASSI | 1 | -40/+36 | |
a single return statement at the end | |||||
2024-11-15 | Windows: Use VS builtin __fastfail intrinsic for fatal exception instead of ↵ | Mounir IDRASSI | 1 | -0/+3 | |
affecting NULL pointer | |||||
2024-11-15 | Windows: Fix various compiler warnings | Mounir IDRASSI | 17 | -287/+301 | |
2024-11-15 | Windows: Fix MBR bootload compilation error following latest changes | Mounir IDRASSI | 1 | -3/+3 | |
2024-11-13 | Use portable alignment macro to be compatible with Linux/macOS | Mounir IDRASSI | 1 | -1/+2 | |
2024-11-13 | Use adequate const qualifiers for pbkdf2 functions arguments | Mounir IDRASSI | 2 | -16/+16 | |
2024-11-13 | Linux: Fix build error following latest code cleanup | Mounir IDRASSI | 2 | -10/+10 | |
2024-11-13 | Windows: Remove support for 32-bit driver code. Set build target as Windows ↵ | Mounir IDRASSI | 31 | -777/+512 | |
10. Simplify code and fix all warnings in driver. | |||||
2024-11-13 | Windows: Use BCryptGenRandom instead of deprecated CryptGenRandom to ↵ | Mounir IDRASSI | 1 | -27/+21 | |
generate secure random bytes | |||||
2024-11-11 | Linux: Fix build error caused by changes for dynamic CPU SHA support detection | Mounir IDRASSI | 2 | -56/+61 | |
2024-11-10 | Linux: Fix detection of SHA CPU support on virtualized environment by trying ↵ | Mounir IDRASSI | 1 | -0/+66 | |
SHA instruction | |||||
2024-11-10 | Linux: Fix build error following SHA intrinsic support changes | Mounir IDRASSI | 2 | -4/+7 | |
2024-11-10 | Add support for SHA-256 x86 instrinsic for enhance performance of ↵ | Mounir IDRASSI | 16 | -3/+333 | |
PBKDF2-HMAC-SHA256 | |||||
2024-09-24 | Linux: Improve directory opening logic by prioritizing xdg-open and adding ↵ | Mounir IDRASSI | 1 | -46/+52 | |
fallback mechanisms (#1420) - Use xdg-open as the primary method for opening directories, ensuring compatibility with most Linux environments. - Implemented fallback logic to try other known file managers (e.g., nautilus, dolphin, caja, thunar) if xdg-open is unavailable or fails. Based on proposal by @bugtracker2019 | |||||
2024-09-22 | Linux: Add Fedora as supported distribution in CMakeLists.txt | Mounir IDRASSI | 1 | -2/+13 | |
2024-09-19 | Windows: Fix EFI configuration editor various issues | Mounir IDRASSI | 2 | -7/+47 | |
We always using Unicode functions to interact with UI. We convert UTF8 string to UTF16 and vis-versa. Overwrite input string instead of using resize that caused old test to remain. Fix case of readOnly by using correct message. change position of OK/cancel button to match other dialogs. Activate translation on this dialog. | |||||
2024-09-18 | Linux: fix assert by wxWidgets library included in Ubuntu. | Mounir IDRASSI | 1 | -1/+4 | |
2024-09-17 | Windows: Simplify error message related to IsEfiBoot since it always fail ↵ | Mounir IDRASSI | 1 | -20/+6 | |
with ERROR_INVALID_FUNCTION Proposed by @kriegste on https://github.com/veracrypt/VeraCrypt/issues/360 | |||||
2024-09-17 | macOS: fix regression in build script that caused it to ignore fuset switch | Mounir IDRASSI | 1 | -1/+1 | |
fixed by Mattoje #1417 | |||||
2024-09-17 | macOS: restrict --allow-screencapture switch to macOS only since screen ↵ | Mounir IDRASSI | 1 | -0/+2 | |
protection doesn't work on Linux In the code we also enable it for TC_WINDOWS but actually we don't use wxWidgets for Windows build. |