[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7074179d.c3fd.17aa3f148cc.Coremail.wuzhouhui14@mails.ucas.ac.cn>
Date: Wed, 14 Jul 2021 15:35:36 +0800 (GMT+08:00)
From: wuzhouhui <wuzhouhui14@...ls.ucas.ac.cn>
To: "yong w" <yongw.pur@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org, nico@...xnic.net, wang.yong12@....com.cn
Subject: Re: Re: [BUG] ramfs system panic when using dd to create files
> -----Original Messages-----
> From: "yong w" <yongw.pur@...il.com>
> Sent Time: 2021-07-14 08:24:23 (Wednesday)
> To: linux-kernel@...r.kernel.org, linux-mm@...ck.org, akpm@...ux-foundation.org, nico@...xnic.net, wang.yong12@....com.cn
> Cc:
> Subject: Re: [BUG] ramfs system panic when using dd to create files
>
> Hello, is there any solution, or how to avoid this problem when using ramfs?
Limit max size of ramfs.
>
> yong w <yongw.pur@...il.com> 于2021年7月7日周三 下午5:58写道:
> >
> > When I use dd to create files multiple times under the ramfs file
> > system,Panic appears, indicating that there is no process to kill.
> > I learn that ramfs will automatically grow space due to data writing,
> > causing all the system memory to run out, but i think it shouldn't
> > cause the system to panic.
The comments already explains why kernel should panic on this situation:
/*
* If we got here due to an actual allocation at the
* system level, we cannot survive this and will enter
* an endless loop in the allocator. Bail out now.
*/
</yongw.pur@...il.com></yongw.pur@...il.com>
Powered by blists - more mailing lists