lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <196e42a7-d50f-48e0-b4bd-e7f3701bfc6d@redhat.com>
Date:   Wed, 9 Jun 2021 13:19:29 +0200
From:   David Hildenbrand <david@...hat.com>
To:     jim.cromie@...il.com, LKML <linux-kernel@...r.kernel.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        Jason Baron <jbaron@...mai.com>
Subject: Re: how to return a chunk of kernel .data to free mem ?

On 05.06.21 16:50, jim.cromie@...il.com wrote:
> I have convinced DYNAMIC_DEBUG code to not need
> about 15% of its __dyndbg section, about 30kb on my test kernel.
> 
> This memory is not kmalloc'd, so krealloc wont work.
> (I tried anyway, on a loaded module, it panicd)
> 
> Is there a way to return a chunk of init .data memory to general use ?
> 
> heres the patchset;
> https://lore.kernel.org/lkml/20210529200029.205306-1-jim.cromie@gmail.com/
> 

Hm, you could try free_reserved_page(). But obviously, only full pages 
can be handed to the buddy.

-- 
Thanks,

David / dhildenb

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ