From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 48AB2941C23 for ; Mon, 24 Jun 2024 16:47:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=1OeAeBkWqns75rDXzc1XGHtbsO8wSdwrfKBxixI7Q5g=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:Organization:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1719247636; v=1; b=IeogBo09kSl0y6AjknHUFrWTwgDjBJKew90alBtpRQxGMVE5BbUWvRhQrFHK9xYuz0fAmBMG TxW+wuLoZlU31zHMHj0+SVSFx7NkfEgkvyWIEIa1qdr0wnJnA3Jpn+Hubrz1+2eeedpvibuR4rw OTi0S844BMIvg0y7bYmCNXPGmKUIyAze1BZgQONF1tHTO001ZLonD7Do7D24KwamXONJQmPRBWY x8tRTIP9PN+OrZoO3+i/P6gUGIMNQmJg4udK7V1KL5pI8VyG8iUDVUUyUv24/TnHSpIv743FFLd 8J/irh8eHmvs2VgQt6v+H6naXd6HZsTWLgUdXs3gYGeuw== X-Received: by 127.0.0.2 with SMTP id rN4zYY7687511xmJoTuYyuUj; Mon, 24 Jun 2024 09:47:14 -0700 X-Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by mx.groups.io with SMTP id smtpd.web11.146184.1719247634024597348 for ; Mon, 24 Jun 2024 09:47:14 -0700 X-Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57d1782679fso5348245a12.0 for ; Mon, 24 Jun 2024 09:47:13 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWfv+YlA9elt52Y0ZKh4gG1jJTXOAAcPyz1vHHDGeYhpvfxVSypeglnO4Eeqg8nIwOaV7Qnw+su8IG11kTr6XNt96VbxA== X-Gm-Message-State: GEwXL0ibdxwP3eoSWY0SHPGVx7686176AA= X-Google-Smtp-Source: AGHT+IGu6trXYhGG3yXPjQCZwgbIgzeCdK4i1hqw6WZnoYa9k3Kh+lSXjzC0eWKs/YnghIEfxBLoCg== X-Received: by 2002:a50:d69d:0:b0:57d:768:cdfb with SMTP id 4fb4d7f45d1cf-57d4bd6a19emr3101772a12.6.1719247631867; Mon, 24 Jun 2024 09:47:11 -0700 (PDT) X-Received: from [192.168.200.106] (83.11.22.244.ipv4.supernova.orange.pl. [83.11.22.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57d3040f003sm4895809a12.29.2024.06.24.09.47.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jun 2024 09:47:10 -0700 (PDT) Message-ID: <8cdaeb62-6cb8-4367-be66-0e05a7f65833@linaro.org> Date: Mon, 24 Jun 2024 18:47:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] Alignment fault in __memcpy when SbsaQemu is built uncompressed To: Rebecca Cran , "devel@edk2.groups.io" Cc: Ard Biesheuvel , Leif Lindholm References: <428c3293-3899-4794-a51b-7670331e58a2@bsdio.com> From: "Marcin Juszkiewicz" Organization: Linaro In-Reply-To: <428c3293-3899-4794-a51b-7670331e58a2@bsdio.com> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 24 Jun 2024 09:47:14 -0700 Resent-From: marcin.juszkiewicz@linaro.org Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Language: pl-PL, en-GB, en-HK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=IeogBo09; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io W dniu 22.06.2024 o 20:04, Rebecca Cran pisze: > I decided to do some testing around the cost of copying vs > decompressing and moved all the drivers in SbsaQemu into the > uncompressed section (as described in=20 > https://github.com/tianocore/tianocore.github.io/wiki/ArmPkg-Compression)= , > but firmware built with CLANGDWARF causes an alignment fault when > writing the last 64 bytes in __memcpy via FvReadFile -> > AllocateCopyPool -> InternalAllocateCopyPool -> InternalMemCopyMem -> > __memcpy (AArch64/CopyMem.S in BaseMemoryLibOptDxe). I can confirm that managed to reproduce failure. Sorry, but that's all I=20 can say at the moment. No idea what is going on here. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119698): https://edk2.groups.io/g/devel/message/119698 Mute This Topic: https://groups.io/mt/106820121/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-