kallsyms: Add more debug output for selftest
authorKees Cook <keescook@chromium.org>
Thu, 24 Aug 2023 20:58:00 +0000 (13:58 -0700)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 24 Aug 2023 21:30:50 +0000 (14:30 -0700)
commit33c24bee4b787ef58d8c9a36316ba85363b93617
tree618cff8fbbeef9877dd7c375848dbe1b5e358033
parenta6846234f45801441f0e31a8b37f901ef0abd2df
kallsyms: Add more debug output for selftest

While debugging a recent kallsyms_selftest failure[1], I needed more
details on what specifically was failing. This adds those details for
each failure state that is checked.

[1] https://lore.kernel.org/all/202308232200.1c932a90-oliver.sang@intel.com/

Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Yonghong Song <yhs@meta.com>
Cc: "Erhard F." <erhard_f@mailbox.org>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Cc: kernel test robot <oliver.sang@intel.com>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/kallsyms_selftest.c