OSDN Git Service

Make prctl test check maps.
authorChristopher Ferris <cferris@google.com>
Thu, 3 Nov 2016 23:06:40 +0000 (16:06 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 16 Nov 2016 23:32:25 +0000 (15:32 -0800)
commitf1e44785e57c10d3f125ad3ef759c7e09fbb92a3
treeef70336e93dc36f09cd529a403491ea84bbaa886
parent8c94feaa09579cf76735259948c18eb46f70d61b
Make prctl test check maps.

It turns out that sometimes this kernel bug can be present but not
trigger a crash. Modify the test to check for overlapping maps instead.

Bug: 32640542

Test: Verified that this fails on a device without the kernel patch
Test: (both bionic-unit-tests32 and CtsBionicTestCases32). Verified
Test: this passes on an angler.

(cherry picked from commit f1649d92f7869331ea1c4db7f2bb189489af03e6)

Change-Id: Ia3fae3ee3d01f33d8414c1796fc3e942d5b56ec8
tests/sys_prctl_test.cpp