electron/patches/node
Pascal Ernster eb2173846b
fix: Update node's simdutf to 3.2.9 to fix AVX-related crashes (#40446)
Fix: Backport AVX detection fix from simdutf 3.2.9

simdutf < 3.2.9 contains a flawed detection routine to decide whether
AVX and/or AVX2 can be used. In most cases, it works good enough, but
in some corner cases (combination of specific CPU model, microcode
version, operating system and OS configuration), that flawed detection
results in simdutf trying to use AVX/AVX2 although the OS doesn't allow
its use (for example as a mitigation measure against the "gather data
sampling" vulnerability), which then crashes the application with an
illegal instruction error.

This fix is only needed for node < 18.17.0, because later versions use
a simdutf version > 3.2.9.

Cherry-picked and backported from 55b107f609

Signed-off-by: Pascal Ernster <git@hardfalcon.net>
Co-authored-by: Daniel Lemire <daniel@lemire.me>
Co-authored-by: easyaspi314 <easyaspi314@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2023-12-08 15:34:40 -05:00
..
.patches fix: Update node's simdutf to 3.2.9 to fix AVX-related crashes (#40446) 2023-12-08 15:34:40 -05:00
api_pass_oomdetails_to_oomerrorcallback.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
build_add_gn_build_files.patch chore: bump node 18.16.1 (26-x-y) (#39066) 2023-07-20 13:24:10 +02:00
build_ensure_native_module_compilation_fails_if_not_using_a_new.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
build_ensure_v8_pointer_compression_sandbox_is_enabled_on_64bit.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
build_modify_js2c_py_to_allow_injection_of_original-fs_and_custom_embedder_js.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
chore_add_context_to_context_aware_module_prevention.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
chore_allow_the_node_entrypoint_to_be_a_builtin_module.patch chore: bump node 18.16.1 (26-x-y) (#39066) 2023-07-20 13:24:10 +02:00
chore_remove_--no-harmony-atomics_related_code.patch chore: remove `--no-harmony-atomics` related code (#38030) 2023-04-19 10:29:18 -04:00
dns_expose_getdefaultresultorder.patch feat: support dns-result-order Node.js cli flag (#39501) 2023-08-16 14:07:15 -04:00
enable_crashpad_linux_node_processes.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
expose_get_builtin_module_function.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
feat_add_knostartdebugsignalhandler_to_environment_to_prevent.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
feat_add_uv_loop_interrupt_on_io_change_option_to_uv_loop_configure.patch chore: bump node to v18.13.0 (main) (#36818) 2023-01-11 11:33:48 +01:00
feat_initialize_asar_support.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_account_for_createexternalizablestring_v8_global.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
fix_account_for_debugger_agent_race_condition.patch chore: bump node to v18.13.0 (main) (#36818) 2023-01-11 11:33:48 +01:00
fix_adapt_debugger_tests_for_upstream_v8_changes.patch chore: bump chromium to 114.0.5684.0 (main) (#37701) 2023-03-30 22:03:58 -04:00
fix_add_default_values_for_variables_in_common_gypi.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_assert_module_in_the_renderer_process.patch fix: assert module in the renderer process (#39624) 2023-08-28 11:54:12 -04:00
fix_avx_detection.patch fix: add patch for simdutf base64 crash (#40540) 2023-11-27 22:16:41 -05:00
fix_backport_avx_detection_fix_from_simdutf_3_2_9.patch fix: Update node's simdutf to 3.2.9 to fix AVX-related crashes (#40446) 2023-12-08 15:34:40 -05:00
fix_crypto_tests_to_run_with_bssl.patch chore: bump node 18.16.1 (26-x-y) (#39066) 2023-07-20 13:24:10 +02:00
fix_do_not_resolve_electron_entrypoints.patch fix: avoid package.json check on built-in modules (#39422) 2023-08-14 15:01:08 +02:00
fix_expose_lookupandcompile_with_parameters.patch chore: bump node to v18.14.0 (main) (#37129) 2023-02-07 15:51:07 -05:00
fix_expose_the_built-in_electron_module_via_the_esm_loader.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_expose_tracing_agent_and_use_tracing_tracingcontroller_instead.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_handle_boringssl_and_openssl_incompatibilities.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_libc_buffer_overflow_in_string_view_ctor.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_override_createjob_in_node_platform.patch refactor: only override `V8Platform::CreateJob` (#37800) 2023-04-04 10:28:28 +02:00
fix_parallel_test-v8-stats.patch chore: combine `parallel/test-v8-stats` v8 patches (#37801) 2023-04-04 10:19:45 +02:00
fix_prevent_changing_functiontemplateinfo_after_publish.patch chore: bump node to v18.14.0 (main) (#37129) 2023-02-07 15:51:07 -05:00
fix_preventing_potential_oob_in_ada_no_scheme_parsing.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
fix_readbarrier_undefined_symbol_error_on_woa_arm64.patch chore: bump node to v16.7.0 (main) (#30350) 2021-08-20 19:25:50 +02:00
fix_serdes_test.patch chore: upgrade to Node.js v18 (#35999) 2022-11-10 22:31:20 +01:00
fix_suppress_clang_-wdeprecated-declarations_in_libuv.patch chore: bump node to v18.13.0 (main) (#36818) 2023-01-11 11:33:48 +01:00
fix_wunreachable-code_warning_in_ares_init_rand_engine.patch chore: bump node 18.16.1 (26-x-y) (#39066) 2023-07-20 13:24:10 +02:00
json_parse_errors_made_user-friendly.patch chore: bump node to v16.17.0 (main) (#35350) 2022-08-29 09:55:36 -04:00
lib_fix_broadcastchannel_initialization_location.patch fix: `BroadcastChannel` initialization location (#40066) 2023-10-02 13:10:49 +02:00
net_fix_crash_due_to_simultaneous_close_shutdown_on_js_stream.patch chore: cherry-pick tls shutdown crash fix from upstream (#39946) 2023-09-21 19:39:18 +02:00
net_use_asserts_in_js_socket_stream_to_catch_races_in_future.patch chore: cherry-pick tls shutdown crash fix from upstream (#39946) 2023-09-21 19:39:18 +02:00
pass_all_globals_through_require.patch chore: bump node 18.16.1 (26-x-y) (#39066) 2023-07-20 13:24:10 +02:00
refactor_allow_embedder_overriding_of_internal_fs_calls.patch chore: bump node 18.16.1 (26-x-y) (#39066) 2023-07-20 13:24:10 +02:00
refactor_alter_child_process_fork_to_use_execute_script_with.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
support_v8_sandboxed_pointers.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
test_deflake_test-tls-socket-close.patch chore: cherry-pick tls shutdown crash fix from upstream (#39946) 2023-09-21 19:39:18 +02:00
test_formally_mark_some_tests_as_flaky.patch chore: fixup node flakes (#39921) 2023-09-19 22:47:40 +02:00
tls_ensure_tls_sockets_are_closed_if_the_underlying_wrap_closes.patch chore: cherry-pick tls shutdown crash fix from upstream (#39946) 2023-09-21 19:39:18 +02:00
v8_api_advance_api_deprecation.patch chore: bump node to v18.16.0 (main) (#37973) 2023-04-18 22:23:11 +02:00
win_process_avoid_assert_after_spawning_store_app_4152.patch chore: cherry-pick c03569f from libuv (#40127) 2023-10-09 09:42:09 +09:00