From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zrleap.intel-email.com (zrleap.intel-email.com [114.80.218.36]) by mx.groups.io with SMTP id smtpd.web11.148583.1680744844718814120 for ; Wed, 05 Apr 2023 18:34:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=ODQMvTba; spf=pass (domain: byosoft.com.cn, ip: 114.80.218.36, mailfrom: gaoliming@byosoft.com.cn) Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 8469CA32E142 for ; Thu, 6 Apr 2023 09:34:01 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1680744841; bh=3HuZLMZVBpYTDDphTK03vVP4paZ8IJWq5s/uqMSYWyc=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=ODQMvTbaQAfo4Qo4rVCw9onpx19+imq6SGFWYptF5OCOvkXLSxaMo4ZQu4H1MuD1t MnGS7iLtp85CLn/NGclKrZb5Yj9NEKlJpcPsZ68zp8bXIV4eTsNifbiN1exeP4jJHE Xi22Re94Jz7gMBHRox6T4T+o8O7NmCCs5zTPvblI= Received: from localhost (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 402FFA32E12C for ; Thu, 6 Apr 2023 09:34:01 +0800 (CST) Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id ACB59A32E0CA for ; Thu, 6 Apr 2023 09:34:00 +0800 (CST) Authentication-Results: zrleap.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by zrleap.intel-email.com (Postfix) with SMTP id 086B5A32E0CB for ; Thu, 6 Apr 2023 09:33:57 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 06 Apr 2023 09:33:50 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Michael Kinney'" , "'Jiewen Yao'" , "'Michael Kubacki'" , "'Sean Brogan'" , "'Rebecca Cran'" , "'Leif Lindholm'" , "'Sami Mujawar'" , "'Taylor Beebe'" , =?utf-8?Q?'Marvin_H=C3=A4user'?= , "'Bob Feng'" , "'Oliver Smith-Denny'" References: <20230404154022.2776035-1-ardb@kernel.org> In-Reply-To: <20230404154022.2776035-1-ardb@kernel.org> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYzIDAvNF0gRW5hYmxlIEJUSSBzdXBwb3J0IGluIG1lbW9yeSBhdHRyaWJ1dGVzIHRhYmxl?= Date: Thu, 6 Apr 2023 09:33:53 +0800 Message-ID: <00fc01d96827$d920a9b0$8b61fd10$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGUXicSPDaoa8hDdQ7I45W6nNKCKK+nkwpw Sender: "gaoliming" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Ard: Can you submit one BZ for this new feature? I will add it into the = stable tag feature planning.=20 For this patch set, Reviewed-by: Liming Gao Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 Ard > Biesheuvel > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: = 2023=E5=B9=B44=E6=9C=884=E6=97=A5 23:40 > =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io > =E6=8A=84=E9=80=81: Ard Biesheuvel ; Michael Kinney > ; Liming Gao ; > Jiewen Yao ; Michael Kubacki > ; Sean Brogan > ; Rebecca Cran ; > Leif Lindholm ; Sami Mujawar > ; Taylor Beebe ; Marvin > H=C3=A4user ; Bob Feng ; = Oliver > Smith-Denny > =E4=B8=BB=E9=A2=98: [edk2-devel] [PATCH v3 0/4] Enable BTI support in = memory attributes > table >=20 > Implement version 2 of the memory attributes table, which now contains = a >=20 > flag informing the OS whether or not code regions may be mapped with = CFI >=20 > mitigations such as IBT or BTI enabled. >=20 >=20 >=20 > This series covers the remaining parts after the AArch64 specific >=20 > changes were merged: >=20 >=20 >=20 > - Update the BaseTools to emit the appropriate PE/COFF annotation when = a >=20 > BTI/IBT compatible ELF executable is converted to PE/COFF >=20 > - Take this PE/COFF annotation into account when populating the memory >=20 > attributes table in the DXE core >=20 >=20 >=20 > TODO: >=20 > - X64 changes to make the code IBT compatible and emit the ELF note >=20 > - Figure out how to generate such executables with native PE = toolchains >=20 > - Implement BTI/IBT enforcement at boot time - this is something I >=20 > intend to look into next. >=20 >=20 >=20 > Can be tested with the CLANG38 toolchain (both Clang compiler and LLD >=20 > linker, version 3.8 or newer) with the following build options. >=20 >=20 >=20 > [BuildOptions] >=20 > GCC:*_*_AARCH64_PP_FLAGS =3D -mbranch-protection=3Dbti >=20 > GCC:*_*_AARCH64_CC_FLAGS =3D -mbranch-protection=3Dbti >=20 > GCC:*_*_AARCH64_DLINK_FLAGS =3D -fuse-ld=3Dlld > -Wl,--no-relax,--no-pie,-z,bti-report=3Derror >=20 >=20 >=20 > Changes since v2: >=20 > - increase DllCharacteristicsEx field to 4 bytes >=20 > - add Oliver's Rb >=20 >=20 >=20 > If no comments or objections have been raised by the end of the week, = I >=20 > will go ahead and merge this - thanks. >=20 >=20 >=20 > Cc: Michael Kinney >=20 > Cc: Liming Gao >=20 > Cc: Jiewen Yao >=20 > Cc: Michael Kubacki >=20 > Cc: Sean Brogan >=20 > Cc: Rebecca Cran >=20 > Cc: Leif Lindholm >=20 > Cc: Sami Mujawar >=20 > Cc: Taylor Beebe >=20 > Cc: Marvin H=C3=A4user >=20 > Cc: Bob Feng >=20 > Cc: Oliver Smith-Denny >=20 >=20 >=20 > Ard Biesheuvel (4): >=20 > BaseTools/GenFw: Parse IBT/BTI support status from ELF note >=20 > BaseTools/GenFw: Add DllCharacteristicsEx field to debug data >=20 > MdePkg/PeCoffLib: Capture DLL characteristics fields in image = context >=20 > MdeModulePkg: Enable forward edge CFI in mem attributes table >=20 >=20 >=20 > BaseTools/Source/C/GenFw/Elf64Convert.c | 104 > +++++++++++++++++--- >=20 > BaseTools/Source/C/GenFw/GenFw.c | 3 +- >=20 > BaseTools/Source/C/GenFw/elf_common.h | 9 ++ >=20 > BaseTools/Source/C/Include/IndustryStandard/PeImage.h | 13 ++- >=20 > MdeModulePkg/Core/Dxe/DxeMain.h | 2 + >=20 > MdeModulePkg/Core/Dxe/Image/Image.c | 10 ++ >=20 > MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | 8 +- >=20 > MdePkg/Include/IndustryStandard/PeImage.h | 13 ++- >=20 > MdePkg/Include/Library/PeCoffLib.h | 6 ++ >=20 > MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 46 > ++++++--- >=20 > 10 files changed, 186 insertions(+), 28 deletions(-) >=20 >=20 >=20 > -- >=20 > 2.39.2 >=20 >=20 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#102491): > https://edk2.groups.io/g/devel/message/102491 > Mute This Topic: https://groups.io/mt/98062730/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20