Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: jan.kratochvil@redhat.com
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Sanity check PIE displacement #2
Date: Sat, 13 Feb 2010 21:55:00 -0000	[thread overview]
Message-ID: <201002132155.o1DLt0Y8021234@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <20100213201206.GA17808@host0.dyn.jankratochvil.net> (message 	from Jan Kratochvil on Sat, 13 Feb 2010 21:12:06 +0100)

> Date: Sat, 13 Feb 2010 21:12:06 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> +	  /* Check of the alignment against max (p_align) of PT_LOAD segments
> +	     cannot be used here as in LM_ADDR_CHECK for PIC libraries as at
> +	     least amd64 PIE executables have 2MB p_align while Linux kernel
> +	     loads them with arbitrary 4KB displacement.  As in this case there
> +	     is no LM_ADDR_FROM_LINK_MAP to verify the possible offset GDB has
> +	     to depend just on MINPAGESIZE.  */

To me this sounds as if you've found a bug in the Linux kernel and/or
ld.so.  I'd argue the warning is totally appropriate.


  reply	other threads:[~2010-02-13 21:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-13 20:12 Jan Kratochvil
2010-02-13 21:55 ` Mark Kettenis [this message]
2010-02-13 23:09   ` Jan Kratochvil
2010-02-25 22:56     ` [cancelled] " Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002132155.o1DLt0Y8021234@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox