From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4679 Path: news.gmane.org!not-for-mail From: Andy Lutomirski Newsgroups: gmane.linux.lib.musl.general Subject: vDSO parsing bug? Date: Thu, 20 Mar 2014 08:23:24 -0700 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1395334505 14353 80.91.229.3 (20 Mar 2014 16:55:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 16:55:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4683-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 20 17:55:15 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WQgFN-0003Y6-FL for gllmg-musl@plane.gmane.org; Thu, 20 Mar 2014 17:55:13 +0100 Original-Received: (qmail 28521 invoked by uid 550); 20 Mar 2014 16:55:12 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 25734 invoked from network); 20 Mar 2014 15:23:56 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=aZC8pQBb41oZUdeEok96hnyvzjiUhRD1y5jcpes4Zo4=; b=D+9j3ew4BF1BrqYK7F6b1FpK0FqmllWpKSg4lZFmc3rbgxiPR9mSPBARCJXyGd1gH0 XgETinjMU7mlJOhTB+VMZomFCLLo79e2hvkICGQZSU2xmUXsf6whBwnXlw8WLx7HQN55 K0y0PDD7APzh3sFrgezrjmHESBFbkhSkPHzSpoOCJwJxr5ivabDNfAirKMqZhShO2T61 NTUCg8MW/zWyZMx8GTjH02Gm5YU68cgEoH5/xH9/NP264Xc/oneNp0YE4RxZ/lWhd6vi 0Xvl3gNj+oSU7LrtfwTAAV7/IlfJZDWyg4HSqcngA7zbCdvX2fgkdLBh7UC3pvn7tpz4 f5Kw== X-Gm-Message-State: ALoCoQnq1WxZLn4CAh5Zk6TzqmjaQ9vbqX6qZ5marakRqSy7yDSvNl2cHOPgHDBimHvcoWvjHlJU X-Received: by 10.52.26.17 with SMTP id h17mr703722vdg.65.1395329024484; Thu, 20 Mar 2014 08:23:44 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:4679 Archived-At: Hi- It looks like musl can't handle vDSO images with more than one PT_LOAD segment. Both glibc and the reference code in Documentation/vDSO/parse_vdso.c can handle this. It's not currently an issue, since I don't think that any architectures provide such a vDSO, but they might want to in the future. Also, using the name "linux-gate.so.1" is sort of wrong on x86_64, where the convention is "linux-vdso.so.1". Wouldn't it be better to just read the name out of the SONAME header? --Andy