Message ID | 20221104220053.1702977-1-seanjc@google.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp659627wru; Fri, 4 Nov 2022 15:02:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4LeHfZ4QtEZdLazfySROwnhr8khAwHJRX1NTCFKa2n0K77vLvTR2Wz9eAHa/C1iig2jisI X-Received: by 2002:a63:5a0b:0:b0:434:4748:4e7a with SMTP id o11-20020a635a0b000000b0043447484e7amr32015934pgb.561.1667599339645; Fri, 04 Nov 2022 15:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667599339; cv=none; d=google.com; s=arc-20160816; b=n0Bvsl9bttxI2yql7o7kLFJepFyZ+fr4Yd2Eujg0YiUzPCmFJvyTZaAEJ2r9fhmZTJ zRsX7Nqyph5CcuCOxgUmIAzeVYkBlmEzsXevTcZHzKc0Uy+Kbp42Z7DG2IlpWy7CA39R EZR3w4qzqPPUF0tsE+CDaRV+IbAB0Q4gBqKzxOYWnpkOTDBlbQAgDUxA+6UC3CskttHi o+omQU7vTKhUS1m0R9NZTzcsCD2uta+doNeFUKNU3Trp7FLqnFosFjVRnHSMGbjQ1jVy H/5d9hb0t23qAjQBUA43N2Y9hA8b28TkhBANBl1dCAKg59u4F7mV6G6Ic8P89Znad5Do BMBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :reply-to:dkim-signature; bh=eaArFinzItu7ripZjOXJqFLsWmZG7JNztWdVb1+Ghnw=; b=1ENr6OS+qNRjZ2WNCZ+yBIfqTEzGioj+PNQEUMXSAfy7q8c/IZlwKNVkYIkuaA6pG9 tCf3dPNMbwDWdC0Myn2GaC9FJuEyKr+XBVFS0FMfbF4rcekOBC1EUcQ0VkvW4RvIWyCv K6Kh9wPht8RsO5VXLmSPU6TVMDlhg2j4KBaUNHVODAfVW020BeQaC2LLXjskEx5k7iPg bo8l1rDlaM6Gb28p1II6ha77o9hRfp1CiJGxdS+zhf16ioJIKgl1m1wz0wmVJrKZPKiv ulASt0C8gIwbtyTzNye4HiBnw0RRwkPOMj2hDHT06qlElqSwQMuQ5eYOmdZgtJ+gaZni bghw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gkit+WHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d144-20020a621d96000000b0056bb75c96d6si340836pfd.227.2022.11.04.15.02.06; Fri, 04 Nov 2022 15:02:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gkit+WHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiKDWBL (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Fri, 4 Nov 2022 18:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbiKDWBB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Nov 2022 18:01:01 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E80DBE34 for <linux-kernel@vger.kernel.org>; Fri, 4 Nov 2022 15:01:01 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-368036d93abso56926637b3.18 for <linux-kernel@vger.kernel.org>; Fri, 04 Nov 2022 15:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc :subject:date:message-id:reply-to; bh=eaArFinzItu7ripZjOXJqFLsWmZG7JNztWdVb1+Ghnw=; b=gkit+WHBjPgdB9QuXMlchSKCOia5gDT5j+d1Hh4dMas7vVXmR18SzhdIkgv8zKD/XI FFVC91WqvOd0tHdhckjhSJLvndyG1RRLMe0e1Hjk2/oa068Yv6QkKKV/5tWrFtKaPum6 GNjSkVD8kY8QLxtNXlt3Je/6aaA/Oljt7EULYezUzcUPivBjI25bN3y58FoF5W2/uZ0k OVW9IKH6l8ynig6SJyHc8NgqpC/3Vb2lHhso4uzTdUP1ytCI9hFH3bwH2TcDEuAtaFPV AEqAbrPAP1FJ771xZf9TbwXzYxvNlu3Cbcdh7Cmc/vnLACgEul2Ob881Eap279BGWZ6E H4ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eaArFinzItu7ripZjOXJqFLsWmZG7JNztWdVb1+Ghnw=; b=x3OceSl8U8wGrHWjCp0v0kJwveXlAcRSrm6ND53CVEXYJwp+683KtRXPKWb13vRcjM NRrQd4DpNvFtzhEagQlGyDxg3oOuAhd1+G4A2qT3ym+cr17wpXUrgoiUbP7k9yMEVb2t sBceAapGImOvHo3ka5vRL64ONEm1Qw/srEAsJLL69IenrjY0/0sEebITAOULlt1ENvyD B7qISG1HqwI/tHOEHM5K1qUYxoLV1zxvQROd2Il5ivuQ7RQBer2IgbJxgg9XyYcO1Kyy nFz5yErTEc62W6RJSrBVeUoVShqwZX5QEBEsaXJ4n1i7Qgd1ipU2B3nQtXCXq7ihjDkO 8MuQ== X-Gm-Message-State: ACrzQf1jHqAjkYaEu8u2l5J2uwWHPn7HiRKdXKAjlq+CELBueIWFf3r1 wDd8Iu0zJmHhz7nO0oKOTk8Coi/k4Bg= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:4d5:0:b0:370:b2b:c52a with SMTP id 204-20020a8104d5000000b003700b2bc52amr389475ywe.342.1667599260729; Fri, 04 Nov 2022 15:01:00 -0700 (PDT) Reply-To: Sean Christopherson <seanjc@google.com> Date: Fri, 4 Nov 2022 22:00:51 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog Message-ID: <20221104220053.1702977-1-seanjc@google.com> Subject: [PATCH 0/2] x86/mm: More KASAN per-CPU CEA mapping bug fixes From: Sean Christopherson <seanjc@google.com> To: Dave Hansen <dave.hansen@linux.intel.com>, Andy Lutomirski <luto@kernel.org>, Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org, Andrey Ryabinin <ryabinin.a.a@gmail.com>, Sean Christopherson <seanjc@google.com>, Dmitry Vyukov <dvyukov@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748604645314316287?= X-GMAIL-MSGID: =?utf-8?q?1748604645314316287?= |
Series |
x86/mm: More KASAN per-CPU CEA mapping bug fixes
|
|
Message
Sean Christopherson
Nov. 4, 2022, 10 p.m. UTC
Two more bug fixes from the gift that keeps on giving. Both of these were found by inspection, and both are lightly tested. I'm pretty confident that patch 01 fixes a real bug, somewhat less so about patch 02, though given the other issues I debugged I don't see anything that prevents the DS buffers from exploding. Sean Christopherson (2): x86/mm: Recompute physical address for every page of per-CPU CEA mapping x86/mm: Populate KASAN shadow for per-CPU DS buffers in CPU entry area arch/x86/mm/cpu_entry_area.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) base-commit: 3301badde43dee7c2a013fbd6479c258366519da