Skip to content
Commit 73bdf0a6 authored by Linus Torvalds's avatar Linus Torvalds Committed by H. Peter Anvin
Browse files

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: default avatarH. Peter Anvin <hpa@zytor.com>
parent f61f1b57
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment