]> git.baikalelectronics.ru Git - kernel.git/commit
Introduce is_vmalloc_or_module_addr() and use with DEBUG_VIRTUAL
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Oct 2008 15:35:12 +0000 (08:35 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 16 Oct 2008 10:25:58 +0000 (03:25 -0700)
commiteac9e3f55ac63d59a1af8f6536969e95023dcc51
treec328c671f0da327a417d8bddb1309371ed216ea2
parentb44d5c02b5c891bc0c993d2d657dda336c1ed7b0
Introduce is_vmalloc_or_module_addr() and use with DEBUG_VIRTUAL

Impact: crash on module insertion with CONFIG_DEBUG_VIRTUAL

We would incorrectly BUG due to:

   VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) &&
              !is_module_address(addr));

... because, at least on x86-64, is_module_address() doesn't do what
it should.  This patch introduces is_vmalloc_or_module_addr(), which
is what we really want anyway, and uses it instead.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
mm/vmalloc.c