Thread (41 messages) 41 messages, 6 authors, 2022-06-19

Re: [PATCH v11 07/14] mm: multi-gen LRU: exploit locality in rmap

From: Barry Song <hidden>
Date: 2022-06-08 08:23:03
Also in: linux-doc, linux-mm, lkml

On Wed, Jun 8, 2022 at 7:07 AM Yu Zhao [off-list ref] wrote:
On Tue, Jun 7, 2022 at 1:37 AM Barry Song [off-list ref] wrote:
quoted
On Mon, Jun 6, 2022 at 9:25 PM Barry Song [off-list ref] wrote:
quoted
On Wed, May 18, 2022 at 4:49 PM Yu Zhao [off-list ref] wrote:
...
quoted
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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help