]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc.c: fix early params garbage value accesses
authorMateusz Nosek <mateusznosek0@gmail.com>
Tue, 13 Oct 2020 23:55:48 +0000 (16:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:33 +0000 (18:38 -0700)
commit634941129f6a04fe4044be961af7960caaeb756c
tree8922d0921b095163533af66cc31eaa8cc4ec6d12
parent6311b0192a988c61ab5ad536f0a8fc226cd3ec0f
mm/page_alloc.c: fix early params garbage value accesses

Previously in '__init early_init_on_alloc' and '__init early_init_on_free'
the return values from 'kstrtobool' were not handled properly.  That
caused potential garbage value read from variable 'bool_result'.
Introduced patch fixes error handling.

Signed-off-by: Mateusz Nosek <mateusznosek0@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200916214125.28271-1-mateusznosek0@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c