From: Ingo Molnar <mingo@elte.hu>
To: Roland McGrath <roland@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Amnon Shiloh <u3557@miso.sublimeip.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] x86 vdso 32-bit vdso-disabling fixes
Date: Wed, 9 Apr 2008 10:42:00 +0200 [thread overview]
Message-ID: <20080409084200.GA32466@elte.hu> (raw)
In-Reply-To: <20080409082703.B805926F992@magilla.localdomain>
* Roland McGrath <roland@redhat.com> wrote:
> These two patches together address two potential bugs when trying to
> disable the 32-bit vDSO via sysctl or boot parameters (vdso32=0).
>
> Currently, every 32-bit exec gets the vDSO mapped even if it's
> disabled (the process just doesn't get told about it). Because it's
> in fact always there, the bug that patch 1/2 fixes cannot happen now.
> With patch 2/2, it won't be mapped at all when it's disabled, which is
> one of the things that people might really want when they disable it
> (so nothing they didn't ask for goes into their address space).
>
> The 32-bit signal handler setup when SA_RESTORER is not used refers to
> current->mm->context.vdso without regard to whether the vDSO has been
> disabled when the process was exec'd. Patch 1/2 fixes this not to use
> it when it's null, which becomes possible after patch 2/2. (This
> never happens in normal use, because glibc's sigaction call uses
> SA_RESTORER unless glibc detected the vDSO.)
thanks Roland, applied.
Ingo
prev parent reply other threads:[~2008-04-09 8:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 8:27 Roland McGrath
2008-04-09 8:29 ` [PATCH 1/2] x86 vDSO: don't use disabled vDSO for signal trampoline Roland McGrath
2008-04-09 8:30 ` [PATCH 2/2] x86 vdso: don't map 32-bit vdso when disabled Roland McGrath
2008-04-09 8:42 ` Ingo Molnar [this message]
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=20080409084200.GA32466@elte.hu \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=tglx@linutronix.de \
--cc=u3557@miso.sublimeip.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
all inboxes | Powered by JetHome®