Re: general protection fault in in_aton

From: Linus Torvalds
Date: Tue Jul 10 2018 - 16:15:17 EST


On Tue, Jul 10, 2018 at 12:57 PM Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
>
> Is it really hard to get fault address? I know that userspace
> generally receives fault address in siginfo.

For an actual page fault it's trivial.

However, for invalid addresses (aka "non-canonical"), you don't even
get a page fault, you get a GP like in this case. And then the actual
address is not available.

Linus