--Original Message-
> From: Rasmus Villemoes [mailto:li...@rasmusvillemoes.dk]
> Sent: Friday, May 08, 2015 2:46 AM
> To: Reese Faucette
> Cc: linux-kernel@vger.kernel.org; a...@lxorguk.ukuu.org.uk
> Subject: Re: [PATCH] overflow check calculation in mm/mmap.c is incorrect
> linux-3.12
-EOVERFLOW, because pgoff + (len >> PAGE_SHIFT) will be 0, which is < pgoff.
-reese
Reese Faucette
Cisco Systems, Inc.
--- mm/mmap.c
+++ mm/mmap.c
@@ -1241,7 +1241,7 @@
return -ENOMEM;
/* offset overflow? */
-
2 matches
Mail list logo