From 58e02610551380041b6ac98053555dcb25418983 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Jun 2011 10:19:38 +0100 Subject: [PATCH] Linux 3.0: widen limits in is_kallsyms_valid_address. These limits are still slightly magical. Widening the limits makes this work for a very recent Linux 3.0 kernel. --- src/kallsyms.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kallsyms.ml b/src/kallsyms.ml index 8663842..0f04b1f 100644 --- a/src/kallsyms.ml +++ b/src/kallsyms.ml @@ -68,8 +68,8 @@ let search_kallsyms k map = | Kernel.Word64 -> fun addr -> Kernel.is_mapped k addr - || Kernel.addr_compare addr 0xffffffff_ff000000_L >= 0 - || Kernel.addr_compare addr 0x00000000_00020000_L <= 0 + || Kernel.addr_compare addr 0xffffffff_80000000_L >= 0 + || Kernel.addr_compare addr 0x00000000_00200000_L <= 0 in let rec loop prev_addrp addr = -- 1.8.3.1