From: Vinayak Menon <vinmenon@codeaurora.org>
To: linux-mm@kvack.org, minchan@kernel.org
Subject: Page corruption with SWP_SYNCHRONOUS_IO
Date: Mon, 26 Aug 2019 10:21:59 +0530 [thread overview]
Message-ID: <63cc70b0-a1d9-1f6e-b264-8b31ea9b9087@codeaurora.org> (raw)
Hi,
On 4.14 kernel with SWP_SYNCHRONOUS_IO patches ported, we are seeing an issue which is not reproducible
with SWP_SYNCHRONOUS_IO for zram is disabled. Its arm64 system with 3GB of RAM. Note that zram writeback
is not enabled and backing_dev is not set. The issue is very hard to reproduce and requires low memory
situation to the level of thrashing.
Observations
1) Android zygote crash due to NULL pointer dereference. The page from which it picks the wrong pointer
is completely zeroed out. Since its always in zygote process context and probably points to role of fork
and pages shared between processes.
2) The issue always happens on anon pages.
3) The corrupted page is entirely filled with zero. Always. Never other pattern. And the page owner shows
that the page is read from zram in all cases (in most case its a write and thus followed by wp_page_copy).
Probably a case of fault finding a missing zram entry and zero filled page being returned by zram.
My attempts to write a test case to reproduce this is not successful yet. And I don't see a way to test this on latest kernel.
Thanks,
Vinayak
reply other threads:[~2019-08-26 4:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=63cc70b0-a1d9-1f6e-b264-8b31ea9b9087@codeaurora.org \
--to=vinmenon@codeaurora.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox