1. 17 10月, 2019 1 次提交
  2. 16 10月, 2019 5 次提交
  3. 15 10月, 2019 22 次提交
  4. 14 10月, 2019 3 次提交
    • C
      kmemleak: Do not corrupt the object_list during clean-up · 2abd839a
      Catalin Marinas 提交于
      In case of an error (e.g. memory pool too small), kmemleak disables
      itself and cleans up the already allocated metadata objects. However, if
      this happens early before the RCU callback mechanism is available,
      put_object() skips call_rcu() and frees the object directly. This is not
      safe with the RCU list traversal in __kmemleak_do_cleanup().
      
      Change the list traversal in __kmemleak_do_cleanup() to
      list_for_each_entry_safe() and remove the rcu_read_{lock,unlock} since
      the kmemleak is already disabled at this point. In addition, avoid an
      unnecessary metadata object rb-tree look-up since it already has the
      struct kmemleak_object pointer.
      
      Fixes: c5665868 ("mm: kmemleak: use the memory pool for early allocations")
      Reported-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Reported-by: NMarc Dionne <marc.c.dionne@gmail.com>
      Reported-by: NTed Ts'o <tytso@mit.edu>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2abd839a
    • L
      Linux 5.4-rc3 · 4f5cafb5
      Linus Torvalds 提交于
      4f5cafb5
    • L
      Merge tag 'trace-v5.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · d4615e5a
      Linus Torvalds 提交于
      Pull tracing fixes from Steven Rostedt:
       "A few tracing fixes:
      
         - Remove lockdown from tracefs itself and moved it to the trace
           directory. Have the open functions there do the lockdown checks.
      
         - Fix a few races with opening an instance file and the instance
           being deleted (Discovered during the lockdown updates). Kept
           separate from the clean up code such that they can be backported to
           stable easier.
      
         - Clean up and consolidated the checks done when opening a trace
           file, as there were multiple checks that need to be done, and it
           did not make sense having them done in each open instance.
      
         - Fix a regression in the record mcount code.
      
         - Small hw_lat detector tracer fixes.
      
         - A trace_pipe read fix due to not initializing trace_seq"
      
      * tag 'trace-v5.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Initialize iter->seq after zeroing in tracing_read_pipe()
        tracing/hwlat: Don't ignore outer-loop duration when calculating max_latency
        tracing/hwlat: Report total time spent in all NMIs during the sample
        recordmcount: Fix nop_mcount() function
        tracing: Do not create tracefs files if tracefs lockdown is in effect
        tracing: Add locked_down checks to the open calls of files created for tracefs
        tracing: Add tracing_check_open_get_tr()
        tracing: Have trace events system open call tracing_open_generic_tr()
        tracing: Get trace_array reference for available_tracers files
        ftrace: Get a reference counter for the trace_array on filter files
        tracefs: Revert ccbd54ff ("tracefs: Restrict tracefs when the kernel is locked down")
      d4615e5a
  5. 13 10月, 2019 9 次提交