Messages in this thread | | | Date | Mon, 2 Oct 2023 08:40:02 -0700 | Subject | Re: [PATCH v4 1/7] selftests/resctrl: Fix uninitialized .sa_flags | From | Reinette Chatre <> |
| |
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@intel.com> > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> > Cc: <stable@vger.kernel.org>
Thank you.
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reinette
| |