lkml.org 
[lkml]   [2004]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: CONFIG_DEBUG_PAGEALLOC and virt_addr_valid()
From
Date
On Thu, 2004-04-01 at 11:11, Sridhar Samudrala wrote:
> When CONFIG_DEBUG_PAGEALLOC is enabled, i am noticing that virt_addr_valid()
> (called from sctp_is_valid_kaddr()) is returning true even for freed objects.
> Is this a bug or expected behavior?

It's expected. Right now it just makes sure the address translates to a
valid pfn. Figuring out whether there are actually pagetables
underneath that address would require a pagetable walk.

Don't we unmap things when they are free'd with CONFIG_DEBUG_PAGEALLOC?
I guess we could add a pagetable walk in the debug case to
virt_addr_valid(), but it would probably make CONFIG_DEBUG_PAGEALLOC
even more of a dog than it already is.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.053 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site