The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.8.x-ovz" and will appear 
at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.8.4
------>
commit 5b77feaa406ce53ccc209bdcdd3356f5b47db630
Author: Stanislav Kinsburskiy <skinsbur...@parallels.com>
Date:   Thu Oct 8 15:52:28 2015 +0400

    ub statd: fix new_notify structure allocation
    
    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

Reply via email to