From patchwork Mon Jan 23 14:02:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 1730482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=TqEZf3Cd; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P0sJg5hLbz23gd for ; Tue, 24 Jan 2023 01:03:31 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1pJxPx-0008VJ-TK; Mon, 23 Jan 2023 14:03:25 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pJxPt-0008UF-Mz for kernel-team@lists.ubuntu.com; Mon, 23 Jan 2023 14:03:21 +0000 Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 8447B3F5D0 for ; Mon, 23 Jan 2023 14:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1674482599; bh=mraFRkd1zfE9aF5hvx+aq1jOYpkG5MWqI8oKl3ie41g=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=TqEZf3Cd+5JmOG+bl5V95RujfVjnqiGdPTCwzVOhlxhntoXODklSYmNxscvQlYmNi 5kyrY3ECjRv/IGumnKGHx2QAG2xYnnnqQkzCwSr0BGVxbHfPZ2C58JJLClZ6gBuH1y ibMPy/UFNhFjyr5wm0YIv0kZqcik+9G8y+YjcBihIAq0C0fjt6fFmdYq7wPvyx5TB9 9lxMDApXAhzHWrAtWOXMTogJUtCXm0k7kMyd1/a/4Lf+DTktcO7decpoUbznV7Qgw1 oxkexK+aCs4vlpTw4fqsOOsWzeCfHfQnI/YMsxMJw0mchApaQKaCpKErbHDjYJ6mFB 4Do8wuycU2x/A== Received: by mail-pj1-f70.google.com with SMTP id s24-20020a17090aa11800b00229fef3ac5dso3835365pjp.5 for ; Mon, 23 Jan 2023 06:03:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mraFRkd1zfE9aF5hvx+aq1jOYpkG5MWqI8oKl3ie41g=; b=dpicvQAT7OfBn2qNl5veFMVgZG/pIbcRHu5TeVX4JGJOGRnZPdZFZCA8SJEFfYo7DZ +E4LpZuj0uDs2j7u3843Rhv2zHIdAun3OhPaeQb4/dG8v5ABKyHtKfe2PGQr5b3yNmn/ NqcHabUZUXikJRfoFlQAzqj9DpV8T8tESnRor/kKVlCWuTQnEC2TZVwgqsrUcEjngNcR qSk0LqRDH4RSK6ymXgiXz4o1aIpbVR1kZCDUdIupsTpjsnq1WOBIw/5ZEOYB/zvs9RHN m7AZi0Z58MAmrCubjG200TpLKdrtFUQsRP5qguXh3jko5ROjeOtjk1YYL/8krQ1V+sUA SHVA== X-Gm-Message-State: AFqh2kpxS2sBkX3D4lSBmZZUFC2pI007MtiFGCx7v3DMcuUrhMRyfIxQ /ldr9R2F8puyd/tIhGMIfJXczH1ZsJdE1HXkX9Rl12JCMSvGVV7qhCoQLhMs9iNQ6qUjpuFA/BI ywXCKRI+NLnZKoYzffwg19kLTBtOdeONtE22llJMbJg== X-Received: by 2002:a17:902:bd85:b0:194:9984:8085 with SMTP id q5-20020a170902bd8500b0019499848085mr19186922pls.40.1674482597524; Mon, 23 Jan 2023 06:03:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvDblQbuzP07kt3kse9fUN8Oh0HgMdC4Fq9Q14z225xiMyGUlKrPHioICz1cKUhl0U0/iy8Xg== X-Received: by 2002:a17:902:bd85:b0:194:9984:8085 with SMTP id q5-20020a170902bd8500b0019499848085mr19186910pls.40.1674482597234; Mon, 23 Jan 2023 06:03:17 -0800 (PST) Received: from localhost.localdomain ([69.163.84.166]) by smtp.gmail.com with ESMTPSA id w19-20020a170902a71300b0019339f3368asm15840566plq.3.2023.01.23.06.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 06:03:16 -0800 (PST) From: Tim Gardner To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1][kinetic/linux-azure] Azure: TDX enabled hyper-visors cause segfault Date: Mon, 23 Jan 2023 07:02:32 -0700 Message-Id: <20230123140233.790103-1-tim.gardner@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" https://bugs.launchpad.net/bugs/2003714 SRU Justification [Impact] Microsoft TDX enabled hyper visors cause a segfault due to an upstream glibc bug. This can be worked around with a kernel patch. Issue Description: When I start an Intel TDX Ubuntu 22.04 (or RHEL 9.0) guest on Hyper-V, the guest always hits segfaults and can’t boot up. Here the kernel running in the guest is the upstream kernel + my TDX patchset, or the 5.19.0-azure kernel + the same TDX patchset: [Fix] We confirmed the segfault also happens to TDX guests on the KVM hypervisor. After I checked with more Intel folks, it turns out this is indeed a glibc bug (https://sourceware.org/bugzilla/show_bug.cgi?id=28784), which has been fixed in the upsteram glibc, but Ubuntu 22.04 and newer haven’t picked up the glibc fix yet. I got a kernel side temporary workarouond from Intel: https://github.com/dcui/tdx/commit/16218cf73491e867fd39c16c9e4b8aa926cbda68, which is on the same existing branch “decui/upstream-kinetic-22.10/master-next/1209”. [Test Plan] Microsoft tested [Where things could go wrong] TDX is a new feature. Regressions are unlikely. Acked-by: Cengiz Can