Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp713635rdb; Thu, 22 Feb 2024 18:25:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+Mv2hxTrKfNd/pJbWJ7IDexNifr1215sO6dJJ+3zUGxdq9Os4TZPsMu77/cdx+ePDaWanTTRf6LyFsYmZsK2LTKl6Aaj57OoepNLn3w== X-Google-Smtp-Source: AGHT+IGYOQ/Oj054QAC7wn0GS4TFwo0idyFXOxL0108jWOm+pie6kcdCeBOt2C0arRkcTaHUf11V X-Received: by 2002:a2e:8256:0:b0:2d2:40cb:8188 with SMTP id j22-20020a2e8256000000b002d240cb8188mr410540ljh.18.1708655122074; Thu, 22 Feb 2024 18:25:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708655122; cv=pass; d=google.com; s=arc-20160816; b=0nbxFHrGvuvafu3TO/Mf2XHhUaYfRMkvoOJJ92Zcyt75ETWwPBFpofj5RILMvsTejZ y/NpVyk42nEbE3SlXT2PgoTr9d/USlw1PdHmKubfCHN1/bTo2djAQLWhwYvWhaKcwM2E iZw8MdJvN+UWMWZOVciQgygIK18SBdOfAWgLuLIXYKYtkvv6B6c0ycejnLQYCKpqmpSh jWvOxcYlQlvNn4BvYlXtOdDoq2DEmWuypv4MeSfE/lLORr5DjTNFZaHsONEmsZMHQfrg cROoV3NDFaHxzibEUl5nz/ozQtrLPNcFAIqNhPlxWiYxJ+/Ve/Si2JCexPqJhol92wb6 TuOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=yvpsMbjqPU4UR9+5wWiHmUmCTwM1PMtLjxdFJ8jAgDo=; fh=lBbVdZEdnXv9XzlVnUooeNYx8lI/QPJWYSYIlt+1MNY=; b=KwRKuGzAMclaiKZT2yIUSVSMNOyyaCdFGvpFARRsrk9ofjSyNFrppMMV9bY3HSxg1g WsKXUuwwBiqsevzP+OTUu1asIvvTJm7wITKakvUWysjakAMrkRbX102Yo7qSUTya39yS 9pwp2yUCX7XPRd7jSyizS6syjG5GEvRaqdAZIUe+1drBS4uurRd3uO5MqHkEfct3AM/f scRhajxCfCgh7BmY2j8rfiQTJqzYazzezVOYhh5F/SZYDBXm2ysxi+g3heMk/OWkMrnm 33HAFG4p6fbtNENupp4oPRTupMjP90XyXXcNpRXdMuJiUkQ4aXcusO3fV8Q0mjSdmXOb 9dFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MW/Wwdxp"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-77675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m20-20020a50d7d4000000b00563ce99a18dsi5867110edj.350.2024.02.22.18.25.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 18:25:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MW/Wwdxp"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-77675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9ADBE1F23184 for ; Fri, 23 Feb 2024 02:25:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09A1CC14F; Fri, 23 Feb 2024 02:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MW/Wwdxp" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63FCABA39 for ; Fri, 23 Feb 2024 02:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708655105; cv=none; b=NQGpTt3YHhyALJoe8Tgn5VzbvhqM3r6OtuL3Qf9lyblvR0fwTLEQvMXUOSQQ9MhPIpaVFpCL4Ne/UI1jqtpSsF63F6fJav7gqhz5YzNRKeTRfASfvihztJzwOZJ7Cobt9poQgGIw2wBpO/X9EQ9yTDhsfibVVjsU+sruPxabFMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708655105; c=relaxed/simple; bh=PzfE8dvOzIfSG/xSCddRDMvBcZR0ITDteEVsQNyILMw=; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID: MIME-Version:Content-Type; b=MY7du6zyjvgxcEL1lqSMI2WmIoryQqnuDD0PPBlPcNiJkjahpdFgDW9gKgtZBZhBGazCaUNX86vgsyoaE2EEuQeGaYkbRecbK4QvmTEWQRs+mQxY+8prSz5APr4qc23kC3rnZCOZN3gMieIOMpfoFAQXt9LnWwJvrzEyHF8S2S8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MW/Wwdxp; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e471caaa71so244501b3a.2 for ; Thu, 22 Feb 2024 18:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708655103; x=1709259903; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=yvpsMbjqPU4UR9+5wWiHmUmCTwM1PMtLjxdFJ8jAgDo=; b=MW/WwdxppZuCISdh5ukjVaVojPDfa8y2RJ9EMgTLHGmO75iCpbGn9eOMQOynBMj9Yk +nHcnfM5AoyhqCq8WDWBF5mYyQ0l7RJIrKd+6dDMBx0DDyXNTnle9GNGeIET6VjoE5r+ ip+H99r3aucGAz50ztmNfyQ6n4RtZAMRKA8AJkeYUTnm2NsUVAgzm4MZlK5R04fc/yA6 mR/8Zc3FooUqY6XgJzf03hNheaOYJpKWtbd14YbhoPMPVwRXBw4vQ8lOV5UNbE7B1eb9 k7952iFSIPy9KB5OkO3aIAibOpIHFUe7YW0kQRG/JdPHJ+3ulfMCIxWWwr8sK0NQvXtW thmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708655103; x=1709259903; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=yvpsMbjqPU4UR9+5wWiHmUmCTwM1PMtLjxdFJ8jAgDo=; b=IJM6d2DNa4J+PtBAAQuzhmPkAVAd0HET8YLA8BXWeIst9MRGaVaeJ0YeU9C4Px0aZF SdmDRVPly3hqfyDPdd9dTiFjUmqx4GUVoIxF/4Em9tuBNSldT6LHwH9JfykbWmmuFLta OIdTHVVdFp5ro2uaIkY5gyK33U+OwFhhMksP1rZw4QajyvMhRxfKMdNzroyI7jY3jrJ/ bWK9utOTA9xCbtfFbd/TMriH2sCvhTZULKE+U/2pFKuC3Ce1FaGNfAcOPRheUFVoyTlw 9OaJR2tBOJ1rhs9fbQ4Uouxko7Y8jm6suhYmpjwZc+juNnhlkyuIp++6kI6nnOU2gBCw SjJQ== X-Forwarded-Encrypted: i=1; AJvYcCXazVrr7Wol+bgOph1hBzLZD9ebF7qPxBcLHvVcTh0PamHMH4l5tGJuDkQVUV3TAAxidFWkJSs6u6NiM9XFmHxE8CFx+yJ94fPY6fih X-Gm-Message-State: AOJu0Yw0SvPQMZVQJPae5+UxTiebijY1FKwQnlK0gwGlyYhDpoJIlsS9 4XHmObSBEp9izHJkTkZPLKW7jeYCs9wOUm1otkOgoPsHCKXSEc0B9xoyLT1NP0Q= X-Received: by 2002:a05:6a20:e607:b0:19e:a353:81b0 with SMTP id my7-20020a056a20e60700b0019ea35381b0mr734946pzb.11.1708655102714; Thu, 22 Feb 2024 18:25:02 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:902e:6d00:6c11:e63b]) by smtp.gmail.com with ESMTPSA id mf8-20020a170902fc8800b001d9fc6cb5f2sm10645873plb.203.2024.02.22.18.25.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 18:25:02 -0800 (PST) References: <20240203-arm64-gcs-v8-0-c9fec77673ef@kernel.org> <20240203-arm64-gcs-v8-33-c9fec77673ef@kernel.org> <87sf1n7uea.fsf@linaro.org> <9b899b4e-7410-4c3b-967b-7794dac742e4@sirena.org.uk> User-agent: mu4e 1.10.8; emacs 29.1 From: Thiago Jung Bauermann To: Mark Brown Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v8 33/38] kselftest/arm64: Add a GCS test program built with the system libc In-reply-to: <9b899b4e-7410-4c3b-967b-7794dac742e4@sirena.org.uk> Date: Thu, 22 Feb 2024 23:24:59 -0300 Message-ID: <87ttlzsyro.fsf@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mark Brown writes: > On Mon, Feb 19, 2024 at 11:15:57PM -0300, Thiago Jung Bauermann wrote: > >> The only issue as can be seen above is that the can_call_function test >> is failing. The child is getting a GCS Segmentation fault when returning >> from fork(). > >> I tried debugging it with GDB, but I don't see what's wrong since the >> address in LR matches the first entry in GCSPR. Here is the >> debug session: > > I believe based on prior discussions that you're running this using > shrinkwrap - can you confirm exactly how please, including things like > which firmware configuration you're using? I'm using current git with > > shrinkwrap run \ > --rtvar KERNEL=3Darch/arm64/boot/Image \ > --rtvar ROOTFS=3D${ROOTFS} \ > --rtvar CMDLINE=3D"${CMDLINE}" \ > --overlay=3Darch/v9.4.yaml ns-edk2.yaml > > and a locally built yocto and everything seems perfectly happy. Yes, this is how I'm running it: CMDLINE=3D"Image dtb=3Dfdt.dtb console=3DttyAMA0 earlycon=3Dpl011,0x1c090= 000 root=3D/dev/vda2 ip=3Ddhcp maxcpus=3D1" shrinkwrap run \ --rtvar=3DKERNEL=3DImage-gcs-v8-v6.7-rc4-14743-ga551a7d7af93 \ --rtvar=3DROOTFS=3D$HOME/VMs/ubuntu-aarch64.img \ --rtvar=3DCMDLINE=3D"$CMDLINE" \ ns-edk2.yaml I ran the following to set up the FVP VM: $ shrinkwrap build --overlay=3Darch/v9.4.yaml ns-edk2.yaml My rootfs is Ubuntu 22.04.3. In case it's useful, my kernel config is here: https://people.linaro.org/~thiago.bauermann/gcs/config-v6.8.0-rc2 I tried removing "maxcpus=3D1" from the kernel command line, but it made no difference. I also tried resetting my Shrinkwrap setup and starting from scratch, but it also made no difference: I just pulled from the current main branch and removed Shrinkwrap's build and package directories, and also removed all Docker images and the one container I had. Here are some firmware versions from early boot: NOTICE: Booting Trusted Firmware NOTICE: BL1: v2.10.0 (release):v2.10.0 NOTICE: BL1: Built : 00:07:29, Feb 23 2024 =E2=8B=AE NOTICE: BL2: v2.10.0 (release):v2.10.0 NOTICE: BL2: Built : 00:07:29, Feb 23 2024 =E2=8B=AE NOTICE: BL31: v2.10.0 (release):v2.10.0 NOTICE: BL31: Built : 00:07:29, Feb 23 2024 =E2=8B=AE [ edk2 ] UEFI firmware (version built at 00:06:55 on Feb 23 2024) Press ESCAPE for boot options ...........UEFI Interactive Shell v2.2 EDK II UEFI v2.70 (EDK II, 0x00010000) It looks like our main differences are the kernel config and the distro. --=20 Thiago