From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This bug is old, but it was hidden by minimax SLAB size equal to 32 bytes. With SLUB allocator, there are 8-bytes slabs, and this issue is revealed.
Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/bc/statd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c index e0eac10..b0b58a4 100644 --- a/kernel/bc/statd.c +++ b/kernel/bc/statd.c @@ -269,7 +269,7 @@ static int ubstat_handle_notifrq(ubnotifrq_t *req) struct list_head *entry; struct task_struct *tsk_to_free; - new_notify = kmalloc(sizeof(new_notify), GFP_KERNEL); + new_notify = kmalloc(sizeof(*new_notify), GFP_KERNEL); if (new_notify == NULL) return -ENOMEM; _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel