[PATCH] Add _sigsys info to siginfo struct
Hannes Domani
ssbssa@yahoo.de
Sat Jan 8 12:34:34 GMT 2022
Am Samstag, 8. Januar 2022, 12:04:01 MEZ hat Joel Brobecker via Gdb-patches <gdb-patches@sourceware.org> Folgendes geschrieben:
> Hi Hannes,
>
> On Mon, Jan 03, 2022 at 07:58:54PM +0100, Hannes Domani via Gdb-patches wrote:
> > This patch adds information about _sigsys structure from newer
> > kernels, so that $_siginfo decoding can show information about
> > _sigsys, making it easier for developers to debug seccomp failures.
> >
> > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24283
>
> Thanks for the patch.
>
> I'm trusting you for the proper definition of the various fields.
> This looks reasonable to me, but before we push this, I'm wondering
> what happens when debugging on a kernel which does not support
> this feature? Is the data undefined? If yes, do we a precendent
> for this already?
As I understood it, if the kernel doesn't support this feature, then it will
never send a SIGSYS signal, and so you wouldn't care about these fields.
Hannes
More information about the Gdb-patches
mailing list