From: Hugh Dickins <hughd@google.com> To: Minchan Kim <minchan@kernel.org> Cc: Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, "Darrick J . Wong" <darrick.wong@oracle.com>, Hyeoncheol Lee <cheol.lee@lge.com>, yjay.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2] mm: support anonymous stable page Date: Tue, 22 Nov 2016 20:43:54 -0800 (PST) [thread overview] Message-ID: <alpine.LSU.2.11.1611222031480.1871@eggly.anvils> (raw) In-Reply-To: <20161122044322.GA2864@bbox> On Tue, 22 Nov 2016, Minchan Kim wrote: > On Mon, Nov 21, 2016 at 07:46:28PM -0800, Hugh Dickins wrote: > > > > Andrew might ask if we should Cc stable (haha): I think we agree > > that it's a defect we've been aware of ever since stable pages were > > first proposed, but nobody has actually been troubled by it before > > your async zram development: so, you're right to be fixing it ahead > > of your zram changes, but we don't see a call for backporting. > > I thought so until I see your comment. However, I checked again > and found it seems a ancient bug since zram birth. > swap_writepage unlock the page right before submitting bio while > it keeps the lock during rw_page operation during bdev_write_page. > So, if zram_rw_page fails(e.g, -ENOMEM) and then fallback to > submit_bio in __swap_writepage, the problem can occur. It's not clear to me why that matters. If it drives zram mad to the point of crashing the kernel, yes, that would matter. But if it just places incomprehensible or mis-CRCed data on the device, who cares? The reused swap page is marked dirty, and nobody should be reading the stale data back off swap. If you do resend with a stable tag, please make clear why it matters. Hugh > > Hmm, I will resend patchset with zram fix part with marking > the stable. > > Thanks, Hugh!
WARNING: multiple messages have this Message-ID (diff)
From: Hugh Dickins <hughd@google.com> To: Minchan Kim <minchan@kernel.org> Cc: Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, "Darrick J . Wong" <darrick.wong@oracle.com>, Hyeoncheol Lee <cheol.lee@lge.com>, yjay.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2] mm: support anonymous stable page Date: Tue, 22 Nov 2016 20:43:54 -0800 (PST) [thread overview] Message-ID: <alpine.LSU.2.11.1611222031480.1871@eggly.anvils> (raw) In-Reply-To: <20161122044322.GA2864@bbox> On Tue, 22 Nov 2016, Minchan Kim wrote: > On Mon, Nov 21, 2016 at 07:46:28PM -0800, Hugh Dickins wrote: > > > > Andrew might ask if we should Cc stable (haha): I think we agree > > that it's a defect we've been aware of ever since stable pages were > > first proposed, but nobody has actually been troubled by it before > > your async zram development: so, you're right to be fixing it ahead > > of your zram changes, but we don't see a call for backporting. > > I thought so until I see your comment. However, I checked again > and found it seems a ancient bug since zram birth. > swap_writepage unlock the page right before submitting bio while > it keeps the lock during rw_page operation during bdev_write_page. > So, if zram_rw_page fails(e.g, -ENOMEM) and then fallback to > submit_bio in __swap_writepage, the problem can occur. It's not clear to me why that matters. If it drives zram mad to the point of crashing the kernel, yes, that would matter. But if it just places incomprehensible or mis-CRCed data on the device, who cares? The reused swap page is marked dirty, and nobody should be reading the stale data back off swap. If you do resend with a stable tag, please make clear why it matters. Hugh > > Hmm, I will resend patchset with zram fix part with marking > the stable. > > Thanks, Hugh! -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2016-11-23 4:44 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-11-20 23:30 [PATCH v2] mm: support anonymous stable page Minchan Kim 2016-11-20 23:30 ` Minchan Kim 2016-11-22 3:46 ` Hugh Dickins 2016-11-22 3:46 ` Hugh Dickins 2016-11-22 4:43 ` Minchan Kim 2016-11-22 4:43 ` Minchan Kim 2016-11-23 4:43 ` Hugh Dickins [this message] 2016-11-23 4:43 ` Hugh Dickins 2016-11-23 7:41 ` Minchan Kim 2016-11-23 7:41 ` Minchan Kim
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=alpine.LSU.2.11.1611222031480.1871@eggly.anvils \ --to=hughd@google.com \ --cc=akpm@linux-foundation.org \ --cc=cheol.lee@lge.com \ --cc=darrick.wong@oracle.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=minchan@kernel.org \ --cc=yjay.kim@lge.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.