I'm a member of the development team for a software for Portuguese eID mechanisms (Web page in Portuguese: https://www.autenticacao.gov.pt/web/guest/cc-aplicacao)
This application is developed and distributed by an agency of the Portuguese government: Agência para a Modernização Administrativa (https://www.ama.gov.pt)
We received feedback from some of our users who are Windows Insiders about crashes in Windows 11 upgrades since the beginning of August and by means of trial-and-error they managed to attribute the cause to our software being installed on their computers.
The error reported was very difficult to understand SYSTEM_THREAD_EXCEPTION_NOT_HANDLED in module tcpip.sys
Here you can find the initial user report: https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/tcpipsys-error-windows-insider-program/3ab79955-9128-40f2-b7f7-d4a2a626a54a
After intensive testing on our side we think that we isolated our component that is causing the issue.
We believe that a registration of a custom Key Storage Provider that our installer program performs leads to this failed Windows 11 upgrade.
Specifically because it's using a non-ASCII string as the Provider name in the BCryptRegisterProvider() call (pszProvider parameter). All our software is open source so you can analyze the KSP registration program here:
The Unicode string provided as pszProvider parameter to BCryptRegisterProvider() is defined in a header file as “Chave Móvel Digital Key Storage Provider”
We then removed the single non-ASCII character from the name of the associated registry key naming it
“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Cryptography\Providers\Chave Movel Digital Key Storage Provider”
and then repeated the upgrade process which worked correctly this time.
Build version that was used in our tests: Windows 11 build 22000.176
In conclusion we believe that something is wrong in the Windows 11 upgrade process with respect to handling these Key Storage Provider registry entries and it will cause considerable trouble for many Portuguese Windows users who will upgrade to Windows 11 in the near future.