From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [PATCH v7 16/25] arm: Add support for generic vDSO (causing crash) Date: Wed, 4 Dec 2019 05:51:59 -0800 Message-ID: <20191204135159.GA7210@roeck-us.net> References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-17-vincenzo.frascino@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190621095252.32307-17-vincenzo.frascino@arm.com> Sender: linux-kernel-owner@vger.kernel.org To: Vincenzo Frascino Cc: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies , Shijith Thotton , Andre Przywara List-Id: linux-arch.vger.kernel.org On Fri, Jun 21, 2019 at 10:52:43AM +0100, Vincenzo Frascino wrote: > The arm vDSO library requires some adaptations to use to take advantage > of the newly introduced generic vDSO library. > > Introduce the following changes: > - Modification vdso.c to be compliant with the common vdso datapage > - Use of lib/vdso for gettimeofday > - Implementation of elf note > > Cc: Russell King > Signed-off-by: Vincenzo Frascino This patch causes a crash with qemu's mcimx6ul-evk emulation while running imx_v6_v7_defconfig. [ 19.976852] Run /sbin/init as init process [ 20.044931] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 There is nothing else useful in the log, unfortunately. Reverting the following three patches fixes the problem. 74d06efb9c2f ARM: 8932/1: Add clock_gettime64 entry point 052e76a31b4a ARM: 8931/1: Add clock_getres entry point 20e2fc42312f ARM: 8930/1: Add support for generic vDSO Guenter From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f193.google.com ([209.85.215.193]:40695 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727792AbfLDNwD (ORCPT ); Wed, 4 Dec 2019 08:52:03 -0500 Date: Wed, 4 Dec 2019 05:51:59 -0800 From: Guenter Roeck Subject: Re: [PATCH v7 16/25] arm: Add support for generic vDSO (causing crash) Message-ID: <20191204135159.GA7210@roeck-us.net> References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-17-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621095252.32307-17-vincenzo.frascino@arm.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Vincenzo Frascino Cc: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies , Shijith Thotton , Andre Przywara Message-ID: <20191204135159.tydYH2t-lb8AK7wz00jxFQsJkcif1hehhcWOuKrSckI@z> On Fri, Jun 21, 2019 at 10:52:43AM +0100, Vincenzo Frascino wrote: > The arm vDSO library requires some adaptations to use to take advantage > of the newly introduced generic vDSO library. > > Introduce the following changes: > - Modification vdso.c to be compliant with the common vdso datapage > - Use of lib/vdso for gettimeofday > - Implementation of elf note > > Cc: Russell King > Signed-off-by: Vincenzo Frascino This patch causes a crash with qemu's mcimx6ul-evk emulation while running imx_v6_v7_defconfig. [ 19.976852] Run /sbin/init as init process [ 20.044931] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 There is nothing else useful in the log, unfortunately. Reverting the following three patches fixes the problem. 74d06efb9c2f ARM: 8932/1: Add clock_gettime64 entry point 052e76a31b4a ARM: 8931/1: Add clock_getres entry point 20e2fc42312f ARM: 8930/1: Add support for generic vDSO Guenter From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DA53C43603 for ; Wed, 4 Dec 2019 13:52:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47B7C2073B for ; Wed, 4 Dec 2019 13:52:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WBH/i+Yj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iQxO6lcp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47B7C2073B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1VV4I5Nsv60B0xbBr4DWn2WLyvqkP8ABdPU1SwxPvSs=; b=WBH/i+YjP6a8j+ bB6o9G3VTboN3/P+PA53hMR8vt43HcFq4zLYalevSJ2vqXM5zWCDZ8LQsu3b1ctbsboaIjxTPL7sL vaRxE5pJgXMcD7FrWjZcXtGPJAt79y1S6Bh5nOsexQg234UpELLStY2azr2clNl4oO9opFoln7YyG lXTdu0iigscmzLosPIQFvkwmBjD1W19XaPjkx1BHiy6fvFc3rtk5kt5rJrEAwQS32gKKj/h26fXvN WhrVrqCqlcLc7uZJBxstu2KAUbT3pIPlTaICeKdwe+EzbiqycSfO2DYi50e3RB7e2w55fPfsTskq9 rrmAvGhW2+D91dcllMQg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1icV4X-0007YW-Pf; Wed, 04 Dec 2019 13:52:05 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1icV4V-0007Y5-56 for linux-arm-kernel@lists.infradead.org; Wed, 04 Dec 2019 13:52:04 +0000 Received: by mail-pf1-x444.google.com with SMTP id q8so3683070pfh.7 for ; Wed, 04 Dec 2019 05:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TbJ9lT2HAjMyDE1SH6CunT8N4kMbxtVJWep3/Ofx1Bc=; b=iQxO6lcpt1bJ5gN8Y4kXPU0dr1c6ATyxgAG3EI+vfRJjoJwHwrwXLUiEJaKIQTeWiJ F3UYh0AiufKF1rKIvNQHINl9+iu83Ghb6/HciDylFzE+lqA/Y05uht95p5Ml9dMsmiBW LmVhvC1WqxEHyDikQtRY5aa/DLzmEzUGP3WajcYRhfSuSWiCmhqQJofWgjUUxhimvZSn izg4tZ21p1IIh8YQpHrKl/rgkij20CilbOG/R4QdRrqb9CPVgj9rh5hJ4dp5NTjNgINr 9RXoUsxYqHRo0g6+BYKJsFgzQZChPUtfJBJ/0BM1AuCvPjydaTIWFhouEQ4evipa6UdD kFyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=TbJ9lT2HAjMyDE1SH6CunT8N4kMbxtVJWep3/Ofx1Bc=; b=SGk7hwKMwNz/UHxDEcCgyEV3Z4sghyNBd/tYu9cGa0s+3fpeOOllir64eMUaTBIZpT Uc90qGSx3P0myUGUL7jvxoAdgema2OCcmyWGc+YREWar5muMSyZLwL9NflMfYjG35+M/ xC/Sg5ADYaE7mDrzSpp/bw1rFSWnqXHSPZ+OqAtfJ1fg6X0rFl4tntz0UOnLVggE2rYw SCi64XEaqzrI7QJqg0Yd/bqCFqJnbG1WG2P0GNyvqjfohr4FyM7qxggJbbYHKsQfm0DM uvf7A956ZVgLt3lx/ZXOUgZLGxBbMHcReT8/19SnoIiWXBms/wN8a9UG+ir65sXbyfG3 DmGw== X-Gm-Message-State: APjAAAV4KtDGs5x2b6WS+EjsSL+o4uz0lUuLkPvQnRpWU32FKigMUnsu 7XMNxmm3l0JtBVYhsBQfF/E= X-Google-Smtp-Source: APXvYqyoPrSep/q/DUOv+zINoePEiuZB7UyBS8bmOBLu+0j65jHVO2r6iBhfr9RUckMGjFizXhOFLg== X-Received: by 2002:a63:66c6:: with SMTP id a189mr3327547pgc.401.1575467521937; Wed, 04 Dec 2019 05:52:01 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id in19sm6642985pjb.11.2019.12.04.05.52.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Dec 2019 05:52:01 -0800 (PST) Date: Wed, 4 Dec 2019 05:51:59 -0800 From: Guenter Roeck To: Vincenzo Frascino Subject: Re: [PATCH v7 16/25] arm: Add support for generic vDSO (causing crash) Message-ID: <20191204135159.GA7210@roeck-us.net> References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-17-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190621095252.32307-17-vincenzo.frascino@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191204_055203_197582_6B8D1CDD X-CRM114-Status: GOOD ( 14.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Shuah Khan , Shijith Thotton , Andre Przywara , Arnd Bergmann , Huw Davies , Catalin Marinas , Daniel Lezcano , Will Deacon , linux-kernel@vger.kernel.org, Ralf Baechle , linux-mips@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Paul Burton , linux-kselftest@vger.kernel.org, Rasmus Villemoes , Russell King , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 21, 2019 at 10:52:43AM +0100, Vincenzo Frascino wrote: > The arm vDSO library requires some adaptations to use to take advantage > of the newly introduced generic vDSO library. > > Introduce the following changes: > - Modification vdso.c to be compliant with the common vdso datapage > - Use of lib/vdso for gettimeofday > - Implementation of elf note > > Cc: Russell King > Signed-off-by: Vincenzo Frascino This patch causes a crash with qemu's mcimx6ul-evk emulation while running imx_v6_v7_defconfig. [ 19.976852] Run /sbin/init as init process [ 20.044931] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 There is nothing else useful in the log, unfortunately. Reverting the following three patches fixes the problem. 74d06efb9c2f ARM: 8932/1: Add clock_gettime64 entry point 052e76a31b4a ARM: 8931/1: Add clock_getres entry point 20e2fc42312f ARM: 8930/1: Add support for generic vDSO Guenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel