]> 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)
commit3d43b17d1318977020969e6149676a73e2f8202d
treea667a3358c76a97e2be749bbcaaaebcada289a1c
parent82110496703b892ffc789af69481d1747b1defbb
parent9e75327bc388d59015ab31232a33d02678c80ec3
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