Hi Ilpo, On 10/2/2023 2:48 AM, Ilpo Järvinen wrote: > signal_handler_unregister() calls sigaction() with uninitializing > sa_flags in the struct sigaction. > > Make sure sa_flags is always initialized in signal_handler_unregister() > by initializing the struct sigaction when declaring it. Also add the > initialization to signal_handler_register() even if there are no know > bugs in there because correctness is then obvious from the code itself. > > Fixes: 73c55fa5ab55 ("selftests/resctrl: Commonize the signal handler register/unregister for all tests") > Suggested-by: Reinette Chatre <reinette.chatre@xxxxxxxxx> > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> > Cc: <stable@xxxxxxxxxxxxxxx> Thank you. Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx> Reinette