• Simon Zünd's avatar
    Reland "[typedarray] Fix crash when sorting SharedArrayBuffers" · ff3a26af
    Simon Zünd authored
    This is a reland of 3d846115
    
    Reland changes mjsunit.status to skip the regression test on
    all bots except ASAN.
    
    Original change's description:
    > [typedarray] Fix crash when sorting SharedArrayBuffers
    >
    > TypedArray#sort has a fast-path when the user does not provide a
    > comparison function. This fast-path utilizes std::sort which operates
    > directly on the raw data. Per spec, std::sort requires the "less than"
    > operation to be anti-symmetric and transitive.
    >
    > When sorting SharedArrayBuffers (SAB) that are concurrently modified during
    > sorting, the "less than" operator stops being consistent as the
    > underlying data is constantly modified. This breaks some invariants
    > in std::sort resulting in infinite loops or straight out segfaults.
    >
    > This CL fixes this by copying the data before sorting SABs and
    > writing the sorted result back.
    >
    > Note: The added regression test is tailored for ASAN bots as a
    > normal build would need too many iterations to consistently crash.
    >
    > R=neis@chromium.org, petermarshall@chromium.org
    >
    > Bug: v8:9161
    > Change-Id: Ic089928652f75865bfdb11e7453806faa6ecb988
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1581641
    > Reviewed-by: Peter Marshall <petermarshall@chromium.org>
    > Reviewed-by: Georg Neis <neis@chromium.org>
    > Commit-Queue: Simon Zünd <szuend@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#61004}
    
    Bug: v8:9161
    Change-Id: Idffc3fbb5f28f4966c8f1ac6770d5b5d6003a7e7
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1583726Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
    Commit-Queue: Simon Zünd <szuend@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61011}
    ff3a26af
Name
Last commit
Last update
..
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-bigint.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime-weak-refs.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...