[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202206130922.A218C4E3E8@keescook>
Date: Mon, 13 Jun 2022 09:23:15 -0700
From: Kees Cook <keescook@...omium.org>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: linux-mm@...ck.org, Uladzislau Rezki <urezki@...il.com>,
Zorro Lang <zlang@...hat.com>, linux-xfs@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH 1/3] usercopy: Handle vm_map_ram() areas
On Sun, Jun 12, 2022 at 10:32:25PM +0100, Matthew Wilcox (Oracle) wrote:
> vmalloc does not allocate a vm_struct for vm_map_ram() areas. That causes
> us to deny usercopies from those areas. This affects XFS which uses
> vm_map_ram() for its directories.
>
> Fix this by calling find_vmap_area() instead of find_vm_area().
Thanks for the fixes!
> [...]
> + /* XXX: We should also abort for free vmap_areas */
What's needed to detect this?
--
Kees Cook
Powered by blists - more mailing lists