Thread (20 messages) 20 messages, 5 authors, 2018-10-17

Re: WARNING: kmalloc bug in input_mt_init_slots

From: Christopher Lameter <hidden>
Date: 2018-09-24 15:08:19
Also in: linux-mm, lkml

On Sun, 23 Sep 2018, Dmitry Vyukov wrote:
What was the motivation behind that WARNING about large allocations in
kmalloc? Why do we want to know about them? Is the general policy that
kmalloc calls with potentially large size requests need to use NOWARN?
If this WARNING still considered useful? Or we should change it to
pr_err?
In general large allocs should be satisfied by the page allocator. The
slab allocators are used for allocating and managing small objects. The
page allocator has mechanisms to deal with large objects (compound pages,
multiple page sized allocs etc).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help