Re: Re: [BUG] ramfs system panic when using dd to create files

From: yong w
Date: Wed Jul 14 2021 - 10:30:38 EST


Thanks for your reply!

> Limit max size of ramfs.
It's no use using size to limit the size of ramfs.
"mount -t ramfs -o size=10M ramfs /ramfs" is the command i use.

>
> 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.
> */
But it causes panic, actually , I don't want it panics