Message ID | 20230608021055.203634-5-cengiz.can@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> 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=<UNKNOWN>) 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=olBtkU9c; 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 4Qc74c6lDSz20WP for <incoming@patchwork.ozlabs.org>; Thu, 8 Jun 2023 12:11:44 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1q757i-0001SO-VY; Thu, 08 Jun 2023 02:11:38 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <cengiz.can@canonical.com>) id 1q757g-0001PZ-Es for kernel-team@lists.ubuntu.com; Thu, 08 Jun 2023 02:11:36 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (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-1.canonical.com (Postfix) with ESMTPS id 5A6853F0F8 for <kernel-team@lists.ubuntu.com>; Thu, 8 Jun 2023 02:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686190295; bh=5+44gyRX4cTal7BCQVWHIB4o7rRUFBLqqwe+S6KYDcs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=olBtkU9cEh6coXo6CktNaw45lWoUJI77LWi/dfFufXG0rFL6kgJ3bwNGM7kA1gkZ4 9FWWQ0y0VrxoiB+SVzG3hxRu0QVx0cqKI8psaW79igMyKBELMXtYixqrQ5XPT9eDgT RwYZdKlVSDZgnLtJGmvvwF7DRtc4ChnW39b08iOFhi8rrdDtkjd3PkUoFTYVRK0dYp 8KN95CoQtGYULkF9CzowvpqY/QhhpzhcmsTKFz0xSWL9lO4BOBp5S87loLKbaMCulV 2YLiq4zaL5lcBA6tplRKtZ0lVLTFTcIAw4P+Xdap6jyFwnmbhC0U5MYsenMWfamqUF j8Pd2GiTSrYCw== Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5161e17f374so1527705a12.0 for <kernel-team@lists.ubuntu.com>; Wed, 07 Jun 2023 19:11:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686190294; x=1688782294; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5+44gyRX4cTal7BCQVWHIB4o7rRUFBLqqwe+S6KYDcs=; b=Crw9PfxPe4793jhpYjLO55uel7iTZ/F/ojz2rm4wLhO5M3X6bnPvUBoph97R5CFkUu H+E1pGsaBUVkDcUHKJMXcqqo1Y1X98Oueh5mjUNxz0XEDzZZkL6EyNAUhOhhsRouMKAF 3ktm43AGuvwEuZIusH7/5axclOxhDZ2RiuIi6Jmzlo6ve1MyD4QiNhUeN0LdLGZeE8Dl D3tYsyZmdUgVfBJtF6XcWm482YAfgf3mmTpPToJqXEruw8vD64zZI2o02q/KEaGWvJpa 8KeGugGyHFuCskgPOKxK71SI1HXvcf/2tYFmF1O9sfyXtVmcb2uI6Q1KsRK4ACjcXK7e wZtg== X-Gm-Message-State: AC+VfDwi6cWpgASIEPrKKBnTCFU7RGDLjmUZ0hyrLZqWEoSvbxtWR7wI hGwk2n+f9q1aWM/FrBWqrDZeSHVWRM/LQCYR04UZ7dlsZoqb3Bw4I/DhfwPHXacwgGbHJUxMSg+ 7CwkYvd81l35WUxmAVn4wB6OXDGUTu03kEs44aZJsUR+GuLeYPbRJfoM= X-Received: by 2002:a50:ed91:0:b0:514:9e47:4319 with SMTP id h17-20020a50ed91000000b005149e474319mr804000edr.5.1686190294759; Wed, 07 Jun 2023 19:11:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7G29In7rJ6Knk0lZ5tm8ke7OfEQJQniYsWvFxmFNEiEqzIbVr/6Mg07fpkl7Mp8O6DPABcfg== X-Received: by 2002:a50:ed91:0:b0:514:9e47:4319 with SMTP id h17-20020a50ed91000000b005149e474319mr803989edr.5.1686190294521; Wed, 07 Jun 2023 19:11:34 -0700 (PDT) Received: from localhost ([82.222.124.85]) by smtp.gmail.com with ESMTPSA id n23-20020aa7c797000000b005027d31615dsm6749156eds.62.2023.06.07.19.11.34 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 19:11:34 -0700 (PDT) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU Jammy, OEM-5.17, Kinetic, OEM-6.0 PATCH 3/5] x86/mm: Recompute physical address for every page of per-CPU CEA mapping Date: Thu, 8 Jun 2023 05:10:54 +0300 Message-Id: <20230608021055.203634-5-cengiz.can@canonical.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230608021055.203634-1-cengiz.can@canonical.com> References: <20230608021055.203634-1-cengiz.can@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
CVE-2023-0597
|
expand
|
diff --git a/arch/x86/mm/cpu_entry_area.c b/arch/x86/mm/cpu_entry_area.c index dff9001e5e12..d831aae94b41 100644 --- a/arch/x86/mm/cpu_entry_area.c +++ b/arch/x86/mm/cpu_entry_area.c @@ -97,7 +97,7 @@ cea_map_percpu_pages(void *cea_vaddr, void *ptr, int pages, pgprot_t prot) early_pfn_to_nid(PFN_DOWN(pa))); for ( ; pages; pages--, cea_vaddr+= PAGE_SIZE, ptr += PAGE_SIZE) - cea_set_pte(cea_vaddr, pa, prot); + cea_set_pte(cea_vaddr, per_cpu_ptr_to_phys(ptr), prot); } static void __init percpu_setup_debug_store(unsigned int cpu)