[lkml]   [2012]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] tracing: Fix crash due to uninitialized new_pages list head
    On Fri, Jun 22, 2012 at 11:50 AM, Vaibhav Nagarnaik
    <> wrote:
    > The new_pages list head in the cpu_buffer is not initialized. When
    > adding pages to the ring buffer, if the memory allocation fails in
    > ring_buffer_resize, the clean up handler tries to free up the allocated
    > pages from all the cpu buffers. The panic is caused by referencing the
    > uninitialized new_pages list head.
    > Initializing the new_pages list head in rb_allocate_cpu_buffer fixes
    > this.
    > Signed-off-by: Vaibhav Nagarnaik <>
    > ---

    Hi Steven,

    I believe this fix should be pushed to 3.5 along with the other patch
    I sent earlier:
    tracing: Update entries counter when removing pages

    These two patches fix issues with the recently added atomic resize patches.


    Vaibhav Nagarnaik

     \ /
      Last update: 2012-06-22 21:41    [W:0.022 / U:10.192 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site