From: Philip Homburg Date: Tue, 7 Aug 2007 12:19:45 +0000 (+0000) Subject: Removed check for grants that wrap. X-Git-Tag: v3.1.4~349 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/man.7.txt?a=commitdiff_plain;h=4f787035ea772054ff883e7f74987c79cded288b;p=minix.git Removed check for grants that wrap. --- diff --git a/kernel/system/do_safecopy.c b/kernel/system/do_safecopy.c index efe89395a..b8c4d7892 100644 --- a/kernel/system/do_safecopy.c +++ b/kernel/system/do_safecopy.c @@ -141,15 +141,6 @@ endpoint_t *e_granter; /* new granter (magic grants) */ return EPERM; } - /* Don't fiddle around with grants that wrap, arithmetic - * below may be confused. - */ - if(MEM_TOP - g.cp_u.cp_magic.cp_len < - g.cp_u.cp_magic.cp_start - 1) { - kprintf("magic grant verify failed: len too long\n"); - return EPERM; - } - /* Verify actual grantee. */ if(g.cp_u.cp_magic.cp_who_to != grantee && grantee != ANY) { kprintf("magic grant verify failed: bad grantee\n");