Re: kernel BUG at mm/swap_state.c:170!

From: Huang\, Ying
Date: Tue Jul 23 2019 - 01:08:47 EST


Mikhail Gavrilov <mikhail.v.gavrilov@xxxxxxxxx> writes:

> On Mon, 22 Jul 2019 at 12:53, Huang, Ying <ying.huang@xxxxxxxxx> wrote:
>>
>> Yes. This is quite complex. Is the transparent huge page enabled in
>> your system? You can check the output of
>>
>> $ cat /sys/kernel/mm/transparent_hugepage/enabled
>
> always [madvise] never
>
>> And, whether is the swap device you use a SSD or NVMe disk (not HDD)?
>
> NVMe INTEL Optane 905P SSDPE21D480GAM3

Thanks! I have found another (easier way) to reproduce the panic.
Could you try the below patch on top of v5.2-rc2? It can fix the panic
for me.

Best Regards,
Huang, Ying

-----------------------------------8<----------------------------------