tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: reallocarr(3)
Le 06/02/2015 01:50, Kamil Rytarowski a écrit :
Is it fine to have this function for the kernel too?
TBH I think that the kernel should rather rely on generic integer
overflow/underflow checks for its allocation APIs, a bit like the size
overflow plugin you can find in grsec.
pool_cache(9) are generally sufficient enough to handle arrays of object
with a fixed size (behind the curtain), adding yet-another allocator
would not address the various kmem_alloc/malloc() call sites that
already exist in kernel.
Of course this opinion is just mine :)
Cheers,
--
Jean-Yves Migeon
Home |
Main Index |
Thread Index |
Old Index