Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9005333ybi; Wed, 10 Jul 2019 03:07:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOXLRq/pxRODwZAO9xjDeXRYml95ERFuVQVO7DDTDdRFa5TY8zPH5W4QpXvfXmuQVlX0l3 X-Received: by 2002:a63:5212:: with SMTP id g18mr34913566pgb.387.1562753258511; Wed, 10 Jul 2019 03:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562753258; cv=none; d=google.com; s=arc-20160816; b=UJRronFjgs8hLXavwcAnUzeHALK8RfTaD9s8+r/63n3siREVp1D2RhmF2moem70rub p98D6U3SX60nroFejYKG+2zw2GyPMai1uyh6dWYaCo//r8bYg751S5mu9yDzi5pByQ1m c4yBluULVb8oArciD5cloyndPQox0mv1bc5iTPrspszuZTOy/O7UWOTYTDNKbNBhqVi9 bATs34h867bPKrDFz1ypx8P+57Abz9gjdMjOt/hPV+R8+3YfUCDQsoPXOUzP9vR2arTd 6L35O1dQiKLaNKNQSdAEFQpM/q+pe3hq6cbRZhJ+Er5wMAJIro75dL8tSvftbTMuA1z/ ytBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/TLK0iCWBjfz/ZFgFmE43Ypr8q4EKB166k1Oxa2zByg=; b=0wotj1U+iYICsfUwxkooH8edXMi+fuSHYqLzUv4QYSVOPTr5ILq6xrNQo0q8q5VGlt dIPFgslcdTsSAsh40yzPrYzDRW5l3gd/nycjVDDN1V6nOxEw7ypCum3BxjZmUXuQEgm7 qyVJXCepIBUM+7ixoRSf+bsy/amrbZWLFTbeAhI5sbnneYjmHOxIARyY1UkXeevuu66i 71Yd2IddcJftHnpqxw0Az2YcuHwtPFqQxBL09KE+BYiHONGm/6Soqv4ZzsCxSzo29Asg uZsuGPxex/tqtBV9aBAqlJkw2S+IbnPTpaO071uysFBgbIp2h5RBEm6iE7PExL5GY1cs iIlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si1745021plt.276.2019.07.10.03.07.12; Wed, 10 Jul 2019 03:07:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727317AbfGJJs7 (ORCPT + 99 others); Wed, 10 Jul 2019 05:48:59 -0400 Received: from foss.arm.com ([217.140.110.172]:58636 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfGJJs6 (ORCPT ); Wed, 10 Jul 2019 05:48:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C9DEE344; Wed, 10 Jul 2019 02:48:57 -0700 (PDT) Received: from [10.1.196.72] (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F5283F246; Wed, 10 Jul 2019 02:48:55 -0700 (PDT) Subject: Re: [PATCH v7 10/25] arm64: compat: Add vDSO To: Thomas Gleixner , John Stultz Cc: linux-arch@vger.kernel.org, linux-arm-kernel , lkml , linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan , Andre Przywara , Arnd Bergmann , Huw Davies , Catalin Marinas , Daniel Lezcano , Will Deacon , Russell King , Ralf Baechle , Mark Salyzyn , Paul Burton , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Shijith Thotton , Peter Collingbourne References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-11-vincenzo.frascino@arm.com> From: Vincenzo Frascino Message-ID: Date: Wed, 10 Jul 2019 10:48:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2019 07:12, Thomas Gleixner wrote: > On Tue, 9 Jul 2019, John Stultz wrote: >> Though unfortunately, it seems the arm64 vdso code that just landed is >> breaking AOSP for me. >> >> I see a lot of the following errors: >> 01-01 01:22:14.097 755 755 F libc : Fatal signal 11 (SIGSEGV), >> code 1 (SEGV_MAPERR), fault addr 0x3cf2c96c in tid 755 (cameraserver), >> pid 755 (cameraserver) >> 01-01 01:22:14.112 759 759 F libc : Fatal signal 11 (SIGSEGV), >> code 1 (SEGV_MAPERR), fault addr 0x3cf2c96c in tid 759 >> (android.hardwar), pid 759 (android.hardwar) >> 01-01 01:22:14.120 756 756 F libc : Fatal signal 11 (SIGSEGV), >> code 1 (SEGV_MAPERR), fault addr 0x3cf2c96c in tid 756 (drmserver), >> pid 756 (drmserver) >> >> Which go away if I revert the vdso merge that went in via tip/timers. >> >> I tried to bisect things down a bit, but as some later fixes are >> required (at one point, date was returning the start epoch and never >> increasing), this hasn't worked too well. But I'm guessing since I >> see: "CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will >> not be built", and the system is half working, I'm guessing this is an >> issue with just the 32bit code failing. While I can try to sort out >> the proper CROSS_COMPILE_COMPAT in my build environment, I assume >> userland shouldn't be crashing if that value isn't set. > > The obvious question is whether the VDSO is mapped to the 32bit process in > that case. It shouldn't... > Agreed. I am investing if/why this is happening and will post a fix accordingly. > Thanks, > > tglx > -- Regards, Vincenzo