Re: Fwd: crash/hang in mm/swapfile.c:718 add_to_avail_list when exercising stress-ng

From: Aaron Lu
Date: Thu Aug 03 2023 - 02:07:08 EST


On Wed, Aug 02, 2023 at 07:54:38PM +0700, Bagas Sanjaya wrote:
> Hi,
>
> I notice a bug report on Bugzilla [1]. Quoting from it:
>
> > How to reproduce:
> >
> > Had 24 CPU Alderlake 16GB debian12 system running with default kernel (from makecondig) on 6.5-rc4, exercised with no swap to start with.
> >
> > using stress-ng tip commit 0f2ef02e9bc5abb3419c44be056d5fa3c97e0137
> > (see https://github.com/ColinIanKing/stress-ng )
> >
> > build and run stress-ng for say 60 minutes:
> >
> > ./stress-ng --cpu-online 50 --brk 50 --swap 50 --vmstat 1 -t 60m
> >
> > Will hang in mm/swapfile.c:718 add_to_avail_list+0x93/0xa0
> >
> > See attached file for an image of the console on the hang (I'm trying to get the full stack dump).
>
> See Bugzilla for the full thread and attached console image.
>
> FWIW, I have to forward this bug report to the mailing lists because
> Thorsten noted that many developers don't take a look on Bugzilla
> (see the BZ thread).

Thanks.

I can reproduce this issue using below cmdline:
$ sudo ./stress-ng --brk 50 --swap 5 --vmstat 1 -t 60m

I'll investigate what is happening.

>
> Thanks.
>
> [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217738
>
> --
> An old man doll... just what I always wanted! - Clara