Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1277bd4d authored by Florian Mayer's avatar Florian Mayer
Browse files

Prevent mte_upgrade_test from hanging if MTE is disabled

Turns out we didn't need the syscall because the kernel checks
for async MTE fault on exit.

Test: atest mte_upgrade_test with and without MTE
Change-Id: Iebdf181d67b4586926499c7549c72e73efc13c56
parent 9fbd7e10
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <sys/prctl.h>
#include <time.h>
#include <unistd.h>

#include <memory>

int MaybeDowngrade() {
@@ -65,7 +66,5 @@ int main(int argc, char** argv) {
    // This binary gets run by src/com/android/tests/init/MteUpgradeTest.java, which
    // asserts that it crashes as expected.
    f[17] = 'x';
    char buf[1];
    read(1, buf, 1);
    return 0;
}