Re: About the SetPageReserved

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

 



it seems right if I use the get_free_pages() to allocate memory.

2007/5/9, rwen2012 <rwen2012@xxxxxxxxx>:
HI, all
    I allocate some 2 pages use kmalloc(), but when I reserve these pages using
SetPageReserved(), it dump the following message(by dmesg).
 
    what is wrong?    Maybe the "mapcount:0 count:0 " below?
 
    Thanks.
 
        R.wen
 
 
==============
Bad page state in process 'events/1'
page:c129d9e0 flags:0x00000400 mapping:00000000 mapcount:0 count:0 (Tainted: P    B)
Trying to fix it up, but a reboot is needed
Backtrace:
 [<c0448045>] bad_page+0x4a/0x71
 [<c044850c>] __free_pages_ok+0x8f/0x153
 [<c044d18c>] mod_zone_page_state+0x1c/0x2d
 [<c045e15d>] kmem_freepages+0x82/0xa4
 [<c045e46c>] slab_destroy+0x62/0x81
 [<c045e66c>] drain_freelist+0x5c/0x72
 [<c045f9a7>] cache_reap+0x9d/0x100
 [<c0429e1c>] run_workqueue+0x78/0xb5
 [<c045f90a>] cache_reap+0x0/0x100
 [<c042a6dc>] worker_thread+0xd9/0x10d
 [<c0415e6c>] default_wake_function+0x0/0xc
 [<c042a603>] worker_thread+0x0/0x10d
 [<c042cb15>] kthread+0xc0/0xeb
 [<c042ca55>] kthread+0x0/0xeb
 [<c04029b5>] kernel_thread_helper+0x5/0xb
 =======================


[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