summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-03-30 09:58:38 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-03-30 09:58:38 -0400
commit59300b36f85f254260c81d9dd09195fa49eb0f98 (patch)
treea02466a8f75a624be15ce48ec686cab9d387782b /kernel/trace/trace.c
parent83b62687a05205847d627f29126a8fee3c644335 (diff)
downloadlwn-59300b36f85f254260c81d9dd09195fa49eb0f98.tar.gz
lwn-59300b36f85f254260c81d9dd09195fa49eb0f98.zip
ftrace: Check if pages were allocated before calling free_pages()
It is possible that on error pg->size can be zero when getting its order, which would return a -1 value. It is dangerous to pass in an order of -1 to free_pages(). Check if order is greater than or equal to zero before calling free_pages(). Link: https://lore.kernel.org/lkml/20210330093916.432697c7@gandalf.local.home/ Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
0 files changed, 0 insertions, 0 deletions