From c1133dc8c7a62dc36e2592e112f34f410dfe84f2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 21 Aug 2022 13:44:04 +0200 Subject: user/ethdump: IPv4 fragment reassembly --- src/kernel/arch/amd64/pagedir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/arch') diff --git a/src/kernel/arch/amd64/pagedir.c b/src/kernel/arch/amd64/pagedir.c index f0e45d5..4189774 100644 --- a/src/kernel/arch/amd64/pagedir.c +++ b/src/kernel/arch/amd64/pagedir.c @@ -25,6 +25,7 @@ static bool addr_canonical(const __user void *addr) { static __user void *addr_canonize(const __user void *addr) { union virt_addr v = {.full = (void __user*)addr}; v.sign = (((uintptr_t)addr >> 47) & 1) * 0xFFFF; + // TODO this assert can fail assert(addr_canonical(addr)); return v.full; } -- cgit v1.2.3