- 30 6月, 2022 29 次提交
-
-
由 Pavel Savara 提交于
* new ref assembly System.Runtime.InteropServices.JavaScript - empty * new src assembly System.Runtime.InteropServices.JavaScript moved all implementation from System.Private.Runtime.InteropServices.JavaScript into it * added IMPORTS, EXPORTS to js API * refactored setup_managed_proxy and teardown_managed_proxy in JS * added more range assert for working with wasm memory in JS
-
由 David Mason 提交于
-
由 Vitek Karas 提交于
This makes the rsp file work regardless of the current directory and makes it much easier for reproducing issues. So far all of the other paths in the file are generated as absolute paths, except for the rd.xml file path.
-
由 Filip Navara 提交于
* Implement NTLM quirk in NegotiateStreamPal.Encrypt/Decrypt NegotiateStream on non-encrypted connections with NTLM sends the messages in a special `<signature token><plain text message>` format. That's not something that gss_wrap/gss_unwrap would produce. It can be produced through gss_get_mic/gss_verify_mic calls though so let's do that. * Remove MakeSignature/VerifySignature from SspiCli interop The method names were misleading since they wrapped the EncryptMessage and DecryptMessage native APIs and not the MakeSignature/VerifySignature APIs that also exist. * Remove unused sequenceNumber parameters in NegotiateStreamPal.Encrypt/Decrypt The SSPI / GSSAPI providers keep track of the sequence numbers themselves. * Replace NTAuthentication.MakeSignature/VerifySignature with Wrap/Unwrap This maps directly to the semantics of gss_wrap/gss_unwrap methods that are used in many specifications. It replaces the misleading name which in SSPI API is an equivalent of gss_get_mic/gss_verify_mic. It also fixes the declaration to actually decode the buffers both on Windows and Unix. In NTLM the content of the message is sealed and needs to be decoded. Note that previously on Unix the VerifySignature API didn't decode the content. On Windows it did decode the content inside a buffer that was passed as ReadOnlySpan<byte> but it didn't communicate back the offset of the decoded data. The SMTP GSSAPI authentication code was thus reading incorrect data. In case the underlying authentication was Kerberos the data were not encrypted and they were located at the beginning of the buffer so it was not an issue. In case the underlying authentication was NTLM it was looking at the NTLM signature token which luckily happens to always start with the bytes 01 00 00 00. That exactly matched the expected value by accident. * Fix processing of last SMTP GSSAPI token The last token in the GSSAPI SASL authentication mechanism is a bit mask that specifies the supported security protections offered by the server and the maximum token size. The client is supposed to choose one of the protections and reply back. Relax the check to actually support servers that offer anything but "no protection". As long as the server also offers no protection we can choose it. * Update unit test to use the new Wrap/Unwrap APIs * Reset NTLM keys after successful Negotiate authentication Updated the managed NTLM implementation and the fake servers to implement the specification quirk: MS-SPNG section 3.2.5.1 NTLM RC4 Key State for MechListMIC and First Signed Message specifies that the RC4 sealing keys are reset back to the initial state for the first message. Since the managed implementation doesn't expose encryption yet it didn't affect any observable behavior. Likewise the fake servers didn't need this code path yet. * Add GSSAPI authentication test to the loopback SMTP server * Workaround for https://github.com/gssapi/gss-ntlmssp/issues/77 * Expose the confidentiality flag from the native gss_wrap/unwrap APIs * Allow default credentials for NTLM server-side on Linux/macOS
-
由 Lakshan Fernando 提交于
* fixing a typo in copying pdb files * FB
-
由 Anton Firszov 提交于
Contributes to #70684
-
由 Ankit Jain 提交于
* [wasm][nodejs] Ensure that stdout/stderr have been flushed out before exiting When the results xml is large, and we are writing the base64 representation in one line, `node` can exit before all the output gets flushed out. This results in xharness getting an incomplete `STARTRESULTXML <len> <base64> ... ` with missing `ENDRESULTXML`, thus no `testResults.xml` is generated. This can be seen in the case of `Microsoft.Extensions.Primitives.Tests` which has xml ~140KB, and `System.Memory.Tests` which has a xml ~13MB. So, wait for the two streams to be flushed out, with a timeout of 3secs. * [wasm] Wasm.Build.Tests: improve reading output from processes - Fix to call `WaitForExit()` once `WaitForExit(int)` returns, which ensures that all the async handlers have been run. - Also, for non-browser xharness runs use the emitted `wasm-console.log` as the output, so we don't depend on xharness' stdout. * Wasm.Build.Tests: Run the crypto test only with browser. Other cases are covered in library tests * Enable WasmTemplateTests.ConsolePublishAndRun Fixes https://github.com/dotnet/runtime/issues/70675 * Wasm.Build.Tests: avoid unncessary copy when building locally Copy sdk for testing workloads only on CI. * Address feedback from @kg * Remove timeout on flushing stdout/stderr streams, for console templates, IOW, user apps
-
由 Jakob Botsch Nielsen 提交于
Adding GT_NULLCHECK nodes requires knowledge of which basic block the nullcheck will end up in. We do not have this easily available in all places this method is called, and regardless using GT_NULLCHECK here has minimal diffs. Fix #71193
-
由 Meri Khamoyan 提交于
* #71252 disable AtanPiTest on Android x86
-
由 Ankit Jain 提交于
* [wasm] InterpToNativeGenerator: use invariant culture when generating C .. functions. Fixes https://github.com/dotnet/runtime/issues/71149 * Add missing file
-
由 Jeremy Koritzinsky 提交于
Allow specifying the in/ref/out marshaller scenarios for the generator factory and use the element scenarios types for element scenarios. Also fix a typo in the CollectionsOfCollectionsStress test that implementing this exposed.
-
由 SwapnilGaikwad 提交于
* Implement NarrowUtf16ToAscii for AArch64 * Combine x64 and AArch64 implementations of NarrowUtf16ToAscii intrinsic * Improve comments in VectorContainsNonAsciiChar
-
由 Eric Erhardt 提交于
* Copy RijndaelManagedTransform from reference source Copied from https://github.com/microsoft/referencesource/blob/5697c29004a34d80acdaf5742d7e699022c64ecd/mscorlib/system/security/cryptography/rijndaelmanagedtransform.cs * Format document * Clean up RijndaelManagedTransform 1. Add copyright 2. Remove unnecessary attributes 3. Mark class as internal 4. Remove FEATURE_CRYPTO define. Only support CipherMode.CBC and PaddingMode.PKCS7. 5. Remove Contracts and replace with Debug.Assert. * Get RijndaelManagedTransform to compile successfully. * Make RijndaelManagedTransform implement ILiteSymmetricCipher And hook it up to AesImplementation for Browser. * Enable all the Aes tests on Browser. Mark Aes APIs as supported on Browser. * Mark all CipherModes and PaddingModes other than CBC and PKCS7 as unsupported on Browser * Make fields readonly and rename according to code style. * Replace RijndaelManagedTransformMode with bool encrypting. * Throw PNSE for unsupported CipherMode and PaddingMode. Remove unnecessary parameters and fields that aren't supported. * Fix DecryptorReuse_LeadsToSameResults test so it works on Browser and passes for all CipherModes on other platforms * Spanify the input buffer in RijndaelManagedTransform Transform and TransformFinal. * First round of PR feedback * Make _Nb constant BlockSizeInts * Get rid of unnecessary allocations * Remove unsafe pointers from RijndaelManagedTransform. * PR feedback Encrypt and Decrypt index arrays are constant values. Use CopyTo in more places. * Rename RijndaelManagedTransform => AesManagedTransform * Change AesManagedTransform to no longer do padding. Instead, reuse the UniversalCrypto infrastructure to do padding. * Remove UnsupportedPlatform for PaddingMode * PR feedback - clean up unnecessary changes * PR feedback Remove UnsupportedOSPlatform("browser") from CipherMode and the SymmetricAlgorithm base class. These create too many false positives and aren't technically accurate since other implementations may support these on browser.
-
由 Jan Vorlicek 提交于
* Use llvm-objcopy for regular and cross builds This change enables using llvm-objcopy instead of the gnu objcopy for building runtime. The benefit for cross build is that the host machine no longer needs to have cross-architecture gnu objcopy installed. There was an attempt to enable llvm objcopy in the past, but it was reverted due to a problem with objcopy in llvm 9 that incorrectly didn't strip debug symbols when `--strip-unneeded` option was specified. I have fixed that by adding `--strip-debug` in addition to the`--strip-unneeded`. * Fix OSX build, reflect PR feedback
-
由 Eduardo Velarde 提交于
-
由 Jeremy Koritzinsky 提交于
-
由 SingleAccretion 提交于
-
由 Aman Khalid 提交于
Currently, EH funclets are placed after the function's main body in memory. Via the heuristic that EH funclets are infrequently run, this enables a simple splitting implementation: * If we find a good split point in the function's main body, split there as usual. * Else if the function has exception handling, * Check that all the EH funclets are cold. If any of the funclets are frequently run, don't bother splitting at all. * If all of the EH funclets are cold, split at `fgFirstFuncletBB`, so that all EH funclets are placed in the cold section.
-
由 SingleAccretion 提交于
-
由 SingleAccretion 提交于
Check layout compatibility before morphing `OBJ(ADDR(LCL_VAR))` into a list of promoted fields (#71348) * Fix non-x86 targets * Fix x86 * Add tests
-
由 SingleAccretion 提交于
* Arm64: local morph * Arm64: morph * Fix MultiregStructArgs up
-
由 SingleAccretion 提交于
* Spill split args on non-ARM targets * Add a test * Work around vectors in varargs being broken
-
由 Drew Kersnar 提交于
* WIP: add AllBitsSet to BigInteger with the wrong DIM, add test case. * Implement AllBitsSet for every type inheriting from IBinaryNumber. Remove DIM for now. Adjust ref files. * Add tests for AllBitsSet on all types. * Apply suggestions from code review Co-authored-by: NTanner Gooding <tagoo@outlook.com> * Apply suggestions from code review * Update src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NFloatTests.GenericMath.cs Co-authored-by: NTanner Gooding <tagoo@outlook.com> * Change byte's implementation, remove unneeded casts * Adjust AllBitsSet tests to check that the ones compliment is 0 Co-authored-by: NTanner Gooding <tagoo@outlook.com>
-
由 Ankit Jain 提交于
* MonoAOTCompilerTask: Don't check for temp file if cache is disabled Prompted by https://github.com/dotnet/runtime/pull/70851#discussion_r909061233 * Emit a message when deleting tmp files
-
由 Theodore Tsirpanis 提交于
* Optimize `HashCode.AddBytes` for inputs larger than 16 bytes. * Address PR feedback, refactor control flow and inline UnsafeAddMany. Co-authored-by: NTanner Gooding <tagoo@outlook.com> * Add more asserts before memory reads and move one inside the main loop. * Address PR feedback. Co-authored-by: NStephen Toub <stoub@microsoft.com> Co-authored-by: NTanner Gooding <tagoo@outlook.com> Co-authored-by: NStephen Toub <stoub@microsoft.com>
-
由 Viktor Hofer 提交于
* Disable failing graphics tests on windows 7 Related: https://github.com/dotnet/runtime/issues/51097. Disables the failing tests on Windows 7 as well.
-
由 mikelle-rogers 提交于
* adding ProcessorCount Event to RuntimeEventSource * firing the event * Adding test for ProcessorCount event
-
由 Steve Pfister 提交于
https://github.com/dotnet/runtime/pull/70970 was merged with a field that was unused. This PR removes it. Co-authored-by: NSteve Pfister <steve.pfister@microsoft.com>
-
由 Theodore Tsirpanis 提交于
* Add `System.Drawing.Imaging.ImageFormat.Heif` and `Webp`. * Add these formats in the ImageConverterTests.
-
- 29 6月, 2022 11 次提交
-
-
由 Omair Majid 提交于
PR #67108 (commit 7d562f9d) tried to unify how -cmakeargs is passed to build.sh and build.cmd. That commit has modified src/coreclr/runtime.proj to always include an additional -cmakeargs argument. However, on Linux, the main ./build.sh command already includes one. That results in an additional -cmakeargs argument, which makes the build fail. Fix that by making build.sh do what build.cmd does: not add the additional -cmakeargs argument. Without this change: $ ./build.sh -cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE ... Commencing CoreCLR Repo build __DistroRid: linux-x64 Setting up directories for build Checking prerequisites... Commencing build of "install" target in "CoreCLR component" for Linux.x64.Debug in runtime/artifacts/obj/coreclr/Linux.x64.Debug Invoking "runtime/eng/native/gen-buildsys.sh" "runtime/src/coreclr" "runtime/artifacts/obj/coreclr/Linux.x64.Debug" x64 clang Debug "" -DCLR_CMAKE_PGO_INSTRUMENT=0 -DCLR_CMAKE_OPTDATA_PATH= -DCLR_CMAKE_PGO_OPTIMIZE=0 -DFEATURE_DISTRO_AGNOSTIC_SSL=1 -cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE ~/devel/dotnet/runtime/artifacts/obj/coreclr/Linux.x64.Debug ~/devel/dotnet/runtime/src/coreclr Not searching for unused variables given on the command line. CMake Error: Unknown argument -cmakeargs CMake Error: Run 'cmake --help' for all supported options. ~/devel/dotnet/runtime/src/coreclr Unable to find generated build files for "CoreCLR component" project! Now: $ ./build.sh -cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE ... __DistroRid: linux-x64 Setting up directories for build Checking prerequisites... Commencing build of "install" target in "CoreCLR component" for Linux.x64.Debug in runtime/artifacts/obj/coreclr/Linux.x64.Debug Invoking "runtime/eng/native/gen-buildsys.sh" "runtime/src/coreclr" "runtime/artifacts/obj/coreclr/Linux.x64.Debug" x64 clang Debug "" -DCLR_CMAKE_PGO_INSTRUMENT=0 -DCLR_CMAKE_OPTDATA_PATH= -DCLR_CMAKE_PGO_OPTIMIZE=0 -DFEATURE_DISTRO_AGNOSTIC_SSL=1 -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE runtime/artifacts/obj/coreclr/Linux.x64.Debug runtime/src/coreclr Not searching for unused variables given on the command line. ...
-
由 Stephen Toub 提交于
-
由 Meri Khamoyan 提交于
-
由 Marek Fišera 提交于
-
由 Jan Vorlicek 提交于
While testing an issue, I've found that if signals are delivered on the thread that is a target of the `thread_set_state`, the thread_set_state sometimes fails with `KERN_ABORTED`. This happens due to the signal interrupting the `thread_set_state`. Retrying the `thread_set_state` succeeds and everything works correctly. This change adds retry loop over the `thread_set_state` calls in the CONTEXT_SetThreadContextOnPort. There are other usages of `thread_set_state` in the hardware exception handling code, but those are not subject to the issue. I have verified the fix using a testing script that fires a signal to the corerun process in a loop and ran coreclr pri 1 tests on the same machine at the same time. Before my change, I was getting an assert very quickly.
-
由 Ilia 提交于
-
由 Nikita Kazmin 提交于
-
由 Filip Navara 提交于
* Reduce buffer allocations during NTLM/Negotiate authentication * Update ReadWriteAdapter.WriteAsync prototype to use Memory<byte> instead of explicit offset/count * Spanify NTAuthentication.Decrypt and avoid couple of offset/count checks * Spanify NegotiateStreamPal.VerifySignature/MakeSignature. Remove indirect Encrypt/Decrypt layer from SSPIWrapper, it is unnecessarily cumbersome to use and SslStreamPal already migrated away from it. * Update src/libraries/Common/src/System/Net/NTAuthentication.Common.cs Co-authored-by: NStephen Toub <stoub@microsoft.com> Co-authored-by: NStephen Toub <stoub@microsoft.com>
-
由 Kevin Jones 提交于
* Disable ConnectWithRevocation_StapledOcsp on RHEL and CentOS 7 * Only skip test when not an offline context
-
由 dotnet-maestro[bot] 提交于
* Update dependencies from https://github.com/dotnet/arcade build 20220620.8 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22320.8 * Update dependencies from https://github.com/dotnet/arcade build 20220622.3 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22322.3 * Update dependencies from https://github.com/dotnet/arcade build 20220623.2 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22323.2 * Update dependencies from https://github.com/dotnet/arcade build 20220624.1 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22324.1 * Update dependencies from https://github.com/dotnet/arcade build 20220627.1 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22327.1 * Update dependencies from https://github.com/dotnet/arcade build 20220627.2 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22327.2 * Upgrade paths with TFMs to net7.0 Arcade upgraded to 7.0 in https://github.com/dotnet/arcade/pull/9127Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: NPremek Vysoky <premek.vysoky@microsoft.com> Co-authored-by: NAlexander Köplinger <alex.koeplinger@outlook.com>
-
由 Parker Bibus 提交于
* Update the Maui rollback link to keep getting the latest Maui versions. * Try running with 6.0.4 installed instead of 6.0.3 to hopefully fix versioning errors. * Removed testing changes.
-