Message ID | 20240626085328.608006-1-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
Headers | show |
Series | mm: migrate: support poison recover from migrate folio | expand |
On Wed, 26 Jun 2024 16:53:22 +0800 Kefeng Wang <wangkefeng.wang@huawei.com> wrote: > The folio migration is widely used in kernel, memory compaction, memory > hotplug, soft offline page, numa balance, memory demote/promotion, etc, > but once access a poisoned source folio when migrating, the kernel will > panic. Is there some simple fixup which we can prepare for -stable kernels which will avoid this panic?
On 2024/6/27 4:04, Andrew Morton wrote: > On Wed, 26 Jun 2024 16:53:22 +0800 Kefeng Wang <wangkefeng.wang@huawei.com> wrote: > >> The folio migration is widely used in kernel, memory compaction, memory >> hotplug, soft offline page, numa balance, memory demote/promotion, etc, >> but once access a poisoned source folio when migrating, the kernel will >> panic. > > Is there some simple fixup which we can prepare for -stable kernels > which will avoid this panic? No simple fixup, and also I don't think this is suitable for the -stable, it should be an enhancement about MC safe copy and as a new feature, not a bugfix. See other poison recovery(CoW on normal/hugetlb page, khugepaged/ksm copy), we don't backport them too.