• L
    drivers/firmware: psci_checker: Add missing destroy_timer_on_stack() · 51d3290c
    Lorenzo Pieralisi 提交于
    The PSCI checker suspend_test_thread() function (ie executed for the
    suspend test) requires an on-stack timer to carry out the test it
    executes; it sets it up through the setup_timer_on_stack() API.
    
    setup_timer_on_stack() requires its counterpart destroy_timer_on_stack()
    to be called when the timer is disposed of but the PSCI checker code is
    currently missing that call, leaving the timer object in an incosistent
    state when the PSCI checker stops the thread executing the suspend
    test.
    
    Add the missing destroy_timer_on_stack() call to fix the omission.
    
    Fixes: ea8b1c4a ("drivers: psci: PSCI checker module")
    Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Reported-by: NKees Cook <keescook@chromium.org>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    51d3290c
psci_checker.c 12.7 KB