[SRU][jammy/linux-azure-5.19, kinetic/linux-azure, lunar/linux-azure][PATCH] Revert "UBUNTU: SAUCE: TDX: Work around the segfault issue in glibc 2.35 in Ubuntu 22.04."

Stefan Bader stefan.bader at canonical.com
Wed Mar 22 08:40:15 UTC 2023


On 21.03.23 16:27, Ioanna Alifieraki wrote:
> BugLink: https://bugs.launchpad.net/bugs/2011421
> 
> This reverts commit 5e304319d26d7003e648bd7a68322537dddbdaed.

The bug report needs an also-affects for linux-azure. Tim, maybe you 
could set things up correctly. I guess jammy:linux-azure-5.19 does not 
have to be mentioned or done individually. What is unclear to me is 
whether this maybe also affects jammy:linux-azure which, though its not 
the default, should also be a possible selection.

-Stefan

> 
> Commit 5e304319d26d ("UBUNTU: SAUCE: TDX: Work around the segfault issue
> in glibc 2.35 in Ubuntu 22.04.") was added to work around a bug in
> glibc. Glibc is getting fixed in LP#2011421 and we can drop this.
> 
> Signed-off-by: Ioanna Alifieraki <ioanna-maria.alifieraki at canonical.com>
> ---
>   arch/x86/coco/tdx/tdx.c | 12 ------------
>   1 file changed, 12 deletions(-)
> 
> diff --git a/arch/x86/coco/tdx/tdx.c b/arch/x86/coco/tdx/tdx.c
> index 3c853e18320e..b7af93ca319e 100644
> --- a/arch/x86/coco/tdx/tdx.c
> +++ b/arch/x86/coco/tdx/tdx.c
> @@ -318,18 +318,6 @@ static int handle_cpuid(struct pt_regs *regs, struct ve_info *ve)
>   		.r13 = regs->cx,
>   	};
>   
> -	/*
> -	 * Work around the segfault issue in glibc 2.35 in Ubuntu 22.04.
> -	 * See https://sourceware.org/bugzilla/show_bug.cgi?id=28784
> -	 * Ubuntu 22.04/22.10/23.04's glibc should pick up this glibc fix:
> -	 * https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=c242fcce06e3102ca663b2f992611d0bda4f2668
> -	 */
> -	if (regs->ax == 2) {
> -		regs->ax = 0xf1ff01;
> -		regs->bx = regs->cx = regs->dx = 0;
> -		return ve_instr_len(ve);
> -	}
> -
>   	/*
>   	 * Only allow VMM to control range reserved for hypervisor
>   	 * communication.

-- 
- Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 44613 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230322/f0dc85d4/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230322/f0dc85d4/attachment-0001.sig>


More information about the kernel-team mailing list