Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALS6=qVfuaTSm4V6imhAKEHT_qnF506H3WiE9zcKn+eXErhgmg@mail.gmail.com>
Date: Thu, 6 Dec 2018 09:51:43 +0800
From: Carter Cheng <cartercheng@...il.com>
To: Kees Cook <keescook@...omium.org>
Cc: kernel-hardening@...ts.openwall.com
Subject: Re: dynamically allocating memory in the kernel

Thanks, I'll check them out.

On Thu, Dec 6, 2018 at 7:01 AM Kees Cook <keescook@...omium.org> wrote:

> On Wed, Dec 5, 2018 at 12:46 PM Carter Cheng <cartercheng@...il.com>
> wrote:
> >
> > Hello,
> >
> > I was wondering if someone here could help me understand something about
> the kernel for a project I am working on tracking dynamically allocated
> memory. How many ways are there to dynamically allocate memory in the
> kernel presently? I know of 4.
> >
> > get_free_pages family of functions
> > kmalloc family (including vmalloc)
>
> vmalloc is quite different from kmalloc (see below).
>
> > slab allocation
>
> kmalloc is a type of slab allocation, so the base parts are the same.
>
> > mempools.
> >
> > Are there others? I am trying to track them all down so I have
> comprehensively know when all allocations occur and all "frees".
>
> I would recommend looking at KASAN hooks (which tracks use-after-free)
> to see if there are any areas you're missing.
>
> -Kees
>
> --
> Kees Cook
>

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.