Tested on Bionic P9 with the latest kernel tree from upstream, this issue still exist.
selftests: mm: subpage_prot ======================================== test: subpage_prot_anon tags: git_version:v5.1-rc6-0-g085b77558-dirty allocated malloc block of 0x4000000 bytes at 0x787539220000 testing malloc block... Failed at 0x787539221000 (p=0,sp=1,w=1), want=fault, got=pass ! Failed at 0x787539223000 (p=0,sp=3,w=0), want=fault, got=pass ! Failed at 0x787539223000 (p=0,sp=3,w=1), want=fault, got=pass ! Failed at 0x787539232000 (p=1,sp=2,w=1), want=fault, got=pass ! Failed at 0x787539234000 (p=1,sp=4,w=0), want=fault, got=pass ! .... 3072 errors detected failure: subpage_prot_anon not ok 1..2 selftests: mm: subpage_prot [FAIL]
Tested on Bionic P9 with the latest kernel tree from upstream, this issue still exist.
selftests: mm: subpage_prot ======= ======= ======= ======= ===== v5.1-rc6- 0-g085b77558- dirty
=======
test: subpage_prot_anon
tags: git_version:
allocated malloc block of 0x4000000 bytes at 0x787539220000
testing malloc block...
Failed at 0x787539221000 (p=0,sp=1,w=1), want=fault, got=pass !
Failed at 0x787539223000 (p=0,sp=3,w=0), want=fault, got=pass !
Failed at 0x787539223000 (p=0,sp=3,w=1), want=fault, got=pass !
Failed at 0x787539232000 (p=1,sp=2,w=1), want=fault, got=pass !
Failed at 0x787539234000 (p=1,sp=4,w=0), want=fault, got=pass !
....
3072 errors detected
failure: subpage_prot_anon
not ok 1..2 selftests: mm: subpage_prot [FAIL]