kmalloc - Crashing

Greg KH greg at
Wed Aug 18 08:08:52 EDT 2021

On Wed, Aug 18, 2021 at 05:03:07PM +0530, Lloyd wrote:
> Hi,
> I am starting to write linux kernel mode code. I am on Ubuntu 20.04. I have
> written the following code
> The line   DynPage[i]=0; //CRASH  causes a crash. Can you please guide on
> the reason for the crash?
> Thanks a lot in advance,
>   Lloyd
> #pragma GCC push_options
> #pragma GCC optimize("O0")

Why are you using these options?  Try removing them and see what

More information about the Kernelnewbies mailing list