]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'trace-v5.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Mar 2021 17:14:55 +0000 (10:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Mar 2021 17:14:55 +0000 (10:14 -0700)
commit2d32e353a9774fdfa0e2bf1ac245662b60f30ada
treea667a3358c76a97e2be749bbcaaaebcada289a1c
parentca625e54beea3c758bccc24bd24a8fff7122137b
parentff91afebc60f01af8ec5034a97936fa98608f7c3
Merge tag 'trace-v5.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull ftrace fix from Steven Rostedt:
 "Add check of order < 0 before calling free_pages()

  The function addresses that are traced by ftrace are stored in pages,
  and the size is held in a variable. If there's some error in creating
  them, the allocate ones will be freed. In this case, it is possible
  that the order of pages to be freed may end up being negative due to a
  size of zero passed to get_count_order(), and then that negative
  number will cause free_pages() to free a very large section.

  Make sure that does not happen"

* tag 'trace-v5.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  ftrace: Check if pages were allocated before calling free_pages()
kernel/trace/ftrace.c