lkml.org 
[lkml]   [2021]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Re: [BUG] ramfs system panic when using dd to create files
> -----Original Messages-----
&gt; From: "yong w" <yongw.pur@gmail.com>
&gt; Sent Time: 2021-07-14 08:24:23 (Wednesday)
&gt; To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, nico@fluxnic.net, wang.yong12@zte.com.cn
&gt; Cc:
&gt; Subject: Re: [BUG] ramfs system panic when using dd to create files
&gt;
&gt; Hello, is there any solution, or how to avoid this problem when using ramfs?

Limit max size of ramfs.

&gt;
&gt; yong w <yongw.pur@gmail.com> 于2021年7月7日周三 下午5:58写道:
&gt; &gt;
&gt; &gt; When I use dd to create files multiple times under the ramfs file
&gt; &gt; system,Panic appears, indicating that there is no process to kill.
&gt; &gt; I learn that ramfs will automatically grow space due to data writing,
&gt; &gt; causing all the system memory to run out, but i think it shouldn't
&gt; &gt; 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@gmail.com></yongw.pur@gmail.com>
\
 
 \ /
  Last update: 2021-07-14 09:44    [W:0.064 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site