On Wed, Jun 8, 2022 at 7:07 AM Yu Zhao <yuzhao@xxxxxxxxxx> wrote: > > On Tue, Jun 7, 2022 at 1:37 AM Barry Song <21cnbao@xxxxxxxxx> wrote: > > > > On Mon, Jun 6, 2022 at 9:25 PM Barry Song <21cnbao@xxxxxxxxx> wrote: > > > > > > On Wed, May 18, 2022 at 4:49 PM Yu Zhao <yuzhao@xxxxxxxxxx> wrote: > > ... > > > I can't really explain why we are getting a random app/java vm crash in monkey > > test by using ptep_test_and_clear_young() only in lru_gen_look_around() on an > > armv8-a machine without hardware PTE young support. > > > > Moving to ptep_clear_flush_young() in look_around can make the random > > hang disappear according to zhanyuan(Cc-ed). > > This sounds too familiar -- let me ask again: was the following commit > included during the test? > > 07509e10dcc7 arm64: pgtable: Fix pte_accessible() > > If not, it will cause exactly the problem you described. And what > about this one? > > e914d8f00391 mm: fix unexpected zeroed page mapping with zram swap > > Missing it also causes userspace memory corruption on Android, i.e., > random app crashes. > According to zhanyuan's testing, we can confirm the above two commits can fix the random android crash. Thanks Barry