From: Thomas Gleixner <tglx@linutronix.de>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Darren Hart <dvhltc@us.ibm.com>,
Peter Zijlstra <peterz@infradead.org>,
Mark Seaborn <mrs@mythic-beasts.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
"hugh.dickins" <hugh.dickins@tiscali.co.uk>
Subject: Re: futex() on vdso makes process unkillable
Date: Tue, 26 Jan 2010 09:33:11 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1001260931490.5926@localhost.localdomain> (raw)
In-Reply-To: <20100126113312.5AA3.A69D9226@jp.fujitsu.com>
On Tue, 26 Jan 2010, KOSAKI Motohiro wrote:
> > Peter Zijlstra wrote:
> > I like the creating-a-real-file solution. However, for now (and for
> > stable), I think Kosaki's suggestion of EINVAL or EFAULT is a good
> > stop-gap. EINVAL might play the best with existing glibc implementations.
>
> May I confirm your mention?
>
> If we can accept EFAULT, we don't need any change. my previous futex patch
> already did. because 1) VDSO is alwasys read-only mapped 2) write mode
> get_user_pages_fast() against read-only pte/vma return EFAULT.
>
> Current linus and stable tree don't cause Mark's original problem. instead, just
> return EFAULT. (Well, I'm sorry. my previous mail was unclear. I wrote v2.6.31 test
> result)
>
> If you can't accept EFAULT, we need to add vdso specific logic into get_futex_key().
EFAULT is perfectly fine. No need for any special tricks.
Thanks,
tglx
next prev parent reply other threads:[~2010-01-26 8:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-24 0:04 futex() on vdso makes process unkillable Mark Seaborn
2010-01-25 3:37 ` KOSAKI Motohiro
2010-01-25 7:27 ` KOSAKI Motohiro
2010-01-25 9:26 ` Peter Zijlstra
2010-01-25 17:37 ` Darren Hart
2010-01-26 2:41 ` KOSAKI Motohiro
2010-01-26 7:52 ` Peter Zijlstra
2010-01-26 8:33 ` Thomas Gleixner [this message]
2010-01-26 14:21 ` Darren Hart
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=alpine.LFD.2.00.1001260931490.5926@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=dvhltc@us.ibm.com \
--cc=hugh.dickins@tiscali.co.uk \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mrs@mythic-beasts.com \
--cc=peterz@infradead.org \
/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