Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8676101ybi; Tue, 9 Jul 2019 21:04:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3KCPhu6BndClnjR6PP7m+XiAQnQRyS9Oyys/UOEBIEtRB1MHwt2Gb2NZzYXqAHfFTdpmm X-Received: by 2002:a65:448a:: with SMTP id l10mr34223886pgq.53.1562731497969; Tue, 09 Jul 2019 21:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562731497; cv=none; d=google.com; s=arc-20160816; b=eBBDFGXwfqPy70c9P/ezgNKWokRYOcUQUYaO+xmU3AHzu3JKU5UJWwYph7AQZLhEDM OVTopRNPobySKRmyJDVKcjLHrxSp/0EzCuTp7Te66sA8WrrHr8PRfOhB0dNkni8qn08x 0XQevcCWbd+0EDv6HZKYs987lxaFs++pHNe3oY44qMiBrfCogBDfLpjM2q5sTlFTRt0g cEDFD1u6cuNCrVmUKxIrtmYQMjeeYeDFOuMx2C0Dw3HeUmaRJEFwmbCPQPyUNdnFKnKV 0vc2aI9hAUnT+ifkXjNVqxVVeFRBaSYt9cAuPTEaWnMEKM3Ngkd737K3RGZ3hQ05EWUk +n+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=E/+8WA5YVt9o68tf7IxaP2AKZIs3izvlH0APT6Mt07Q=; b=yqyN9wmROi/gvcJl3mJHGB2gxmCIIhhzCE7vVsWxomNH8TPnIVSRk0+HCQfUZHIrGF P2+aQdy3HWgaXXQ/FdkipadlSHbFZdHACYPN16mMl3F+mAwjuLVOIzWf5zqYp4SqU2Kg IVqzMc8kYjnL3AKiC0kg4Xzc8Ju6xBBrS4Yrf/CzXDBZv0NESmt9REaKv5DVJKhapFi4 Zm/3MxISmKr1ciVnYDpprXuzArzShffm+Mfz1ncrAHDdnmVl8cTbGxIKJhhKsGCf5mfv 85FhVIDItbZByIR6jIUfysnMf/HKMayTU1sL34pjPlC4EGlKtT3sm/cJ+GpV5sBHdh56 qX+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K1qh7Hcw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si955426pgr.22.2019.07.09.21.04.42; Tue, 09 Jul 2019 21:04:57 -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; dkim=pass header.i=@linaro.org header.s=google header.b=K1qh7Hcw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbfGJEDK (ORCPT + 99 others); Wed, 10 Jul 2019 00:03:10 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37882 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbfGJEDK (ORCPT ); Wed, 10 Jul 2019 00:03:10 -0400 Received: by mail-wr1-f65.google.com with SMTP id n9so941959wrr.4 for ; Tue, 09 Jul 2019 21:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E/+8WA5YVt9o68tf7IxaP2AKZIs3izvlH0APT6Mt07Q=; b=K1qh7HcwzDZLVDAhRFo1UMOBKQLz3oQjDqRwz2jFT38WMwz/Hl+vBRVpz6PZ8eyy3Y dTAmu29NVGAwAZMWL0pe9v9Be598VLNvCEXNI4Hmi9hk8iVCmDpiCn3DzAX+ya48+l5E agWdvXAgbkGVdffOYWAEPWEA5Tt1dpEYgqARMkGUm9CBA9Z7CDJCzkt8K2r4smVHL7vu IxMt0gyE+LkrWBBgHX7+Dm2eM7WrA3nvP7LdaYR5P8bZpqvhbzthPdfj/epTNYwzA56p AOfetMta9CkyUC4Q9MJQDe4yMoicmVktguXRf/xx872evRk4ahBKSIB/SR+PNbG029Rw 4ZUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E/+8WA5YVt9o68tf7IxaP2AKZIs3izvlH0APT6Mt07Q=; b=ArQdiPu06NxnxBmCSr2YQ9QmCZ4nIaz/wRepvO9GyKXE/4E7M44MPKiAxNDYTEkwqm 3ZmYfNH6MoVG0+ocfQ8tdJNEZMWWSpGnG8SJguVupvD5qZepTcjRdZXdkiQNxKzMiLbJ MwV8205Y+rDYLXxBwc6/OfKtBphDTu7H+01Wo11+qwYbtHzl0mzwqVziesx38yJl+GG8 B7vVMwyHKpvbEDql0ay6exa2v1dai15Y10AN6B2T9Nnr0KsZnMbco5Quxd2fb2c3vMye Vwmq89dhYPf7AskuAt0WIU6Oz9Wyc0JY23pI1dNxEF8sk9mnAIbP36IIJ/vnoaFPpPZL wy4w== X-Gm-Message-State: APjAAAWKyD+mlG1MFTE3jkZWjLJ4TBpelpU+puegB44I6NVRw/391PIm /As4Z2l0o/SvtOcQeHJQ/445c5aU0odIBYE96Z7oIQ== X-Received: by 2002:a05:6000:145:: with SMTP id r5mr9063316wrx.208.1562731387533; Tue, 09 Jul 2019 21:03:07 -0700 (PDT) MIME-Version: 1.0 References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-11-vincenzo.frascino@arm.com> In-Reply-To: <20190621095252.32307-11-vincenzo.frascino@arm.com> From: John Stultz Date: Tue, 9 Jul 2019 21:02:54 -0700 Message-ID: Subject: Re: [PATCH v7 10/25] arm64: compat: Add vDSO To: Vincenzo Frascino 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 , Thomas Gleixner , Shijith Thotton , Peter Collingbourne Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 21, 2019 at 3:18 AM Vincenzo Frascino wrote: > > Provide the arm64 compat (AArch32) vDSO in kernel/vdso32 in a similar > way to what happens in kernel/vdso. > > The compat vDSO leverages on an adaptation of the arm architecture code > with few changes: > - Use of lib/vdso for gettimeofday > - Implementation of syscall based fallback > - Introduction of clock_getres for the compat library > - Implementation of trampolines > - Implementation of elf note > > To build the compat vDSO a 32 bit compiler is required and needs to be > specified via CONFIG_CROSS_COMPILE_COMPAT_VDSO. > Hey Vincenzo! Congrats on getting this work merged, I know its been a long effort over a number of years! 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. Any chance this issue has already been raised? thanks -john