Re: [PATCH] Use kzfree in tty buffer management to enforce data sanitization

From: Alan Cox
Date: Sun May 31 2009 - 13:09:44 EST


> I think Pekka meant the other way around - why don't we always just use
> kmalloc(N_TTY_BUF_SIZE)/kfree(), and drop the whole conditional "use page
> allocator" entirely?

We certainly can nowdays - the old allocator used to allocate 8K for 4K
and a bit of memory and its many years single we acquired slab so yes it
can go.

> If I'm right, then we could just use kmalloc/kfree unconditionally. Pekka?

Added to the tty queue will do that tomorrow
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/