From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9204 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH v2] mips: add vdso support Date: Tue, 26 Jan 2016 15:18:12 -0500 Message-ID: <20160126201812.GH238@brightrain.aerifal.cx> References: <1453762812-3187-1-git-send-email-hauke@hauke-m.de> <20160125232118.GD238@brightrain.aerifal.cx> <20160126153216.GA3074@debian> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1453839512 14726 80.91.229.3 (26 Jan 2016 20:18:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 20:18:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9217-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 26 21:18:32 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aOA4K-00072J-V2 for gllmg-musl@m.gmane.org; Tue, 26 Jan 2016 21:18:29 +0100 Original-Received: (qmail 17958 invoked by uid 550); 26 Jan 2016 20:18:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 17937 invoked from network); 26 Jan 2016 20:18:26 -0000 Content-Disposition: inline In-Reply-To: <20160126153216.GA3074@debian> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9204 Archived-At: On Tue, Jan 26, 2016 at 04:32:16PM +0100, Markus Wichmann wrote: > > i.e. reject any error but EINVAL from the vdso and try the syscall, > > since EINVAL is the only one that should be possible. > > > > clock_gettime() takes a pointer argument, so EFAULT is always possible. EFAULT is not relevant. It can only happen when the calling program has undefined behavior, and in fact if the vdso version got used the program would already have crashed with SIGSEGV anyway. Rich