Re: [PATCH -mm v2 2/2] coredump: add a new elf note with siginfoof the signal

From: Roland McGrath
Date: Tue Sep 18 2012 - 12:41:01 EST


> But, somehow I forgot about compat tasks when we discussed this before.
> Perhaps the code above should do
>
> if (is_compat_task())
> copy_siginfo_to_user32(...);
> else
> copy_siginfo_to_user(...);
>
> ?

compat_binfmt_elf.c will define a separate copy of this code via #include.
So it just needs #define copy_siginfo_to_user copy_siginfo_to_user32 or
something like that, as the various other types and functions are handled.


Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/