Re: Kernel Panic : Kernel BUG at rmap:479

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/8 अनुज <anuj01@xxxxxxxxx>:
> Hi All
>
> I am trying to map a buffer allocated with kmalloc to user space using
> mmap() and immediately unmapping that with munmap() in a loop for some
> testing purpose.
>
> But I get the kernel panic after some time (means after some iterations of
> the above loop) with message below :
<oops message truncated..>

Could you please post or upload the code somewhere? So we all here
might have a chance to take a closer look...

Meanwhile, my guess is, since you do munmap(), you actually also do
kfree() on the kmalloc()-ed page. IIRC, do_unmap in kernel space
eventually put the page back to free slab/slub/slob (of its size). In
other word, the page is still there, but the address is no longer
exist. And this leads to the oops, possibly on the next mmap or
munmap.

CMIIW people.

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux