<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][SHARDS]igt@gem_exec_reuse@contexts - incomplete - Out of memory"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111875#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][SHARDS]igt@gem_exec_reuse@contexts - incomplete - Out of memory"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111875">bug 111875</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>ickle@broadwell:~/linux$ git bisect bad
c5665868183fec689dbab9fb8505188b2c4f0757 is the first bad commit
commit c5665868183fec689dbab9fb8505188b2c4f0757
Author: Catalin Marinas <<a href="mailto:catalin.marinas@arm.com">catalin.marinas@arm.com</a>>
Date:   Mon Sep 23 15:34:05 2019 -0700

    mm: kmemleak: use the memory pool for early allocations

    Currently kmemleak uses a static early_log buffer to trace all memory
    allocation/freeing before the slab allocator is initialised.  Such early
    log is replayed during kmemleak_init() to properly initialise the kmemleak
    metadata for objects allocated up that point.  With a memory pool that
    does not rely on the slab allocator, it is possible to skip this early log
    entirely.

    In order to remove the early logging, consider kmemleak_enabled == 1 by
    default while the kmem_cache availability is checked directly on the
    object_cache and scan_area_cache variables.  The RCU callback is only
    invoked after object_cache has been initialised as we wouldn't have any
    concurrent list traversal before this.

    In order to reduce the number of callbacks before kmemleak is fully
    initialised, move the kmemleak_init() call to mm_init().

    [<a href="mailto:akpm@linux-foundation.org">akpm@linux-foundation.org</a>: coding-style fixes]
    [<a href="mailto:akpm@linux-foundation.org">akpm@linux-foundation.org</a>: remove WARN_ON(), per Catalin]
    Link:
<a href="http://lkml.kernel.org/r/20190812160642.52134-4-catalin.marinas@arm.com">http://lkml.kernel.org/r/20190812160642.52134-4-catalin.marinas@arm.com</a>
    Signed-off-by: Catalin Marinas <<a href="mailto:catalin.marinas@arm.com">catalin.marinas@arm.com</a>>
    Cc: Matthew Wilcox <<a href="mailto:willy@infradead.org">willy@infradead.org</a>>
    Cc: Michal Hocko <<a href="mailto:mhocko@kernel.org">mhocko@kernel.org</a>>
    Cc: Qian Cai <<a href="mailto:cai@lca.pw">cai@lca.pw</a>>
    Signed-off-by: Andrew Morton <<a href="mailto:akpm@linux-foundation.org">akpm@linux-foundation.org</a>>
    Signed-off-by: Linus Torvalds <<a href="mailto:torvalds@linux-foundation.org">torvalds@linux-foundation.org</a>></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>