On 25/01/2022 08:50, d.hatayama@xxxxxxxxxxx wrote: >> + while ((func = strsep(&buf, ","))) { >> + addr = kallsyms_lookup_name(func); >> + if (!addr) { >> + pr_warn("panic_notifier_filter: invalid symbol %s\n", func); >> + continue; >> + } > > Could you remove this check? > > panic_notifier_list is exported to kernel modules and this check > prevents such users from using this feature. > > Thanks. > HATAYAMA, Daisuke Hi, thanks for the review. First of all, notice that it's very likely this patch isn't gonna get merged this way, we are considering a refactor that included 2 panic notifiers: one a bit earlier (pre_dump), that includes functions less risky, as watchdog unloaders, kernel offset dump, etc, and the second panic notifier (post_dump) will keep the majority of callbacks, and can be conditionally executed on kdump through the usage of "crash_kexec_post_notifiers". Anyway, I'm curious with your code review - how can we use this filter with modules, if the filter setup is invoked as early_param(), before modules load? In that case, module functions won't have a valid address, correct? So, in that moment, this lookup fails, we cannot record an unloaded module address in such list. Please, correct me if I'm wrong. Cheers, Guilherme