Re: mm: LTP/memcg testcase regression induced by 8cd7c588decf..66ce520bb7c2 series

From: Mike Galbraith
Date: Mon Nov 22 2021 - 02:41:39 EST


On Mon, 2021-11-22 at 07:46 +0100, Mike Galbraith wrote:
>
> #--------------------------------------------------------------------
> -------
> # Bug:    The bug was, while forking mass processes, trigger
> memcgroup OOM,
> #         then NULL pointer dereference may be hit.
> # Kernel: 2.6.25-rcX
> # Links:  http://lkml.org/lkml/2008/4/14/38
> # Fix:    commit e115f2d89253490fb2dbf304b627f8d908df26f1
> #--------------------------------------------------------------------
> -------
> test_1()
> {      
>         mkdir memcg/0/
>         echo 0 > memcg/0/memory.limit_in_bytes
>        
>         ./memcg_test_1
>        
>         rmdir memcg/0/
>        
>         check_kernel_bug
>         if [ $? -eq 1 ]; then
>                 tst_resm TPASS "no kernel bug was found"
>         fi
> }
>
>
> I'm gonna just comment the little bugger out as obsolete and walk
> away.

test2() and test3() then pass, but test_4() hangs, and looks like it
should not, so...

-Mike