[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <65663E36-DC60-4E6E-B6C6-3A0F6852543D@oracle.com>
Date: Sun, 5 Apr 2020 14:49:13 -0600
From: William Kucharski <william.kucharski@...cle.com>
To: Uladzislau Rezki <urezki@...il.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm <linux-mm@...ck.org>,
jroedel@...e.de, Vlastimil Babka <vbabka@...e.cz>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH] mm/vmalloc: Sanitize __get_vm_area() arguments
That's fine.
One could still argue size should be sanitized earlier when start and end
are, but it's a nit either way (though size is used before it's checked,
it's not in any way that could fail with bad results.)
-- Bill
> On Apr 5, 2020, at 1:21 PM, Uladzislau Rezki <urezki@...il.com> wrote:
>
> On Sun, Apr 05, 2020 at 07:23:15PM +0200, Uladzislau Rezki wrote:
> Sorry, was thinking about one place showed different one. Here we go:
>
> <snip>
> /* Check the "vend" restriction. */
> if (nva_start_addr + size > vend)
> return vend;
> <snip>
>
> --
> Vlad Rezki
Powered by blists - more mailing lists