# Re: decruft the vmalloc API

- From: Peter Zijlstra \<peterz@infradead.org\>
- Date: 2020-04-08 12:25:23 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2020/04/5921386
- Thread: https://ratatoskr.run/linuxppc-dev/2020/04/5921323/t.md

```text
On Wed, Apr 08, 2020 at 01:58:58PM +0200, Christoph Hellwig wrote:
> Hi all,
> 
> Peter noticed that with some dumb luck you can toast the kernel address
> space with exported vmalloc symbols.
> 
> I used this as an opportunity to decruft the vmalloc.c API and make it
> much more systematic.  This also removes any chance to create vmalloc
> mappings outside the designated areas or using executable permissions
> from modules.  Besides that it removes more than 300 lines of code.
> 

Looks great, thanks for doing this!

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
```
