[PATCH v4 2/2] arm64: show signal info for global init

chenqiwu qiwuchen55 at gmail.com
Tue Sep 24 20:54:40 PDT 2024


On Tue, Sep 24, 2024 at 08:36:35PM +0200, Oleg Nesterov wrote:
> 
> So what does this patch try to do? Note that unhandled_signal(tsk) returns true
> if is_global_init(tsk).
> 
> So it seems that this patch just tries to bypass the show_unhandled_signals and
> __ratelimit() checks? Or what?
> 
Yes, this patch just try to bypass the show_unhandled_signals and
__ratelimit() checks for the global init.

> 
> OTOH. The is_global_init() check in unhandled_signal() (which predates the git
> history) doesn't look right to me. If init has a handler for, say, SIGSEGV, why
> should the kernel complain? I need to recheck this logic...
> 
I think the orignal logic is the signal sent to the global init is
regarded as unhandled becuase it has SIGNAL_UNKILLABLE feature.

Thanks
Qiwu



More information about the linux-arm-kernel mailing list