Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1610747pxa; Thu, 13 Aug 2020 12:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL3QznNcOIs+Q6kO6ISktUH3JvPjqV7NP99fqw1eC7W0HIyE8ItL4vx+jsBYnAptZoomzT X-Received: by 2002:a05:6402:13d4:: with SMTP id a20mr6353963edx.161.1597347107688; Thu, 13 Aug 2020 12:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597347107; cv=none; d=google.com; s=arc-20160816; b=c0JqcckCn9YSarWouo8pggFyCHdbZvpFYDmtiNbH0gwd0Nk7Jq9an3AIibD+738w+J D0rWJX07Fe8GV7amyTTqmwA+hdeB7lahKOIqQp6VhA5VXzZCb+K+sORl3Iec0ATO63E6 XcgjEFv+9bb+Tdfr+89BcEk7VuRa0ZVnNdq+/sEGNlx+mF48Bk/W62JL6WYd4j9x/Tzo 17HikimNdxkR4wawIgz2E5SURMtm2Za7fHWyvzXZh3hwnXWQQyk9SBXNb0gybw1cfIfj i+TWtrPYveKUPQs/gFPBpHVJRNJxBei9d/zodX0eyhIR30cHnlzFArSoXJAlYLTy0iU5 2hTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KGoyKokYgkY0KstgPIEsrfMx9as5ZNK0N1QCyf7WEHM=; b=e0ZpodBySoiWj3Zl2rRiFCJrb+9tQlSVOteTK4es+p/3VugNHA90IcyPa99vnUVUV0 WjUVugZ1nr4snVvfwfNjI//GnAoUzFTUQAh5HxCXWO3/L3ypjPCqpHv0rbNuvRVA70ng 1hJWBHTQAglzj6tCPYi571XRBX7U3B97HbMKZQxQAe0OA2OTSEWNAMKIcdqK4sbp0GGC 6hEd4k9OHHMANwczLnqfwVcNWcyCpOTlyuTZDfEIzl5hpsythCZl7G2LQlT+Ws1/9217 /UUde/zWoRCpI/gY2ontpzMOfQsat/6ZJZK4elS9PiHxwQWsOxRLVtfN4mms4vUBoK0w Nsbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VtcVrl4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz8si4114945edb.455.2020.08.13.12.31.24; Thu, 13 Aug 2020 12:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VtcVrl4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726546AbgHMTaN (ORCPT + 99 others); Thu, 13 Aug 2020 15:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbgHMTaM (ORCPT ); Thu, 13 Aug 2020 15:30:12 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72CDAC061757 for ; Thu, 13 Aug 2020 12:30:12 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id o23so7436691ejr.1 for ; Thu, 13 Aug 2020 12:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=KGoyKokYgkY0KstgPIEsrfMx9as5ZNK0N1QCyf7WEHM=; b=VtcVrl4hwhZI1tpRPlGSZ3Paeh2ijMYR7Qdg3cohnOEoCPtBzsk1bib+tqr/leJdEr YGPs4iXxAIiWGCw17TVrtw9fDenxp2KBvRXAxyYiUrEoCMXH6TNRFqxEima1BXLW6D94 hMaXIN3u6qlpidzq4nETcJs1nyknBiy7Fv79MSGA40cOv6O6MOzq9Rmiyuj2wlWH941c Yeu1rDUInDBviXZtdl7qtB4Bw7kEaF9Zy/Z6gEjrMSmhPOuy3v7Htry9jVbWl0KhPhtm +ZXJYBwXWSAz8oKxvueBkQj1MihG3RKvZGqWfZtSb9cy+bRBECc1xZ9SKPNVRjttyCN9 /VoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=KGoyKokYgkY0KstgPIEsrfMx9as5ZNK0N1QCyf7WEHM=; b=YB32Y0NmviqRXX3gYBO9JW/Ro/erXf5iMOGtQ/sviNY3DcZ2EbC6H1Q6FfiWIXThIB Bos+eCFMDoevflX2u44cGf56D75HVMJSnHtugKLITgbs6vkElm8v2++WEU73IUWTLuT5 y/46eGMU9+ctqsBV4XI9Lckmjdisb8+NQq/fLKr/qPVxq52EQUzoWfoFyqcuNEmOg+hB 9mzhkAYYvzvLQRNY8LiABkKqtvhes3ZWIpb+xlXyKSuMQQ2F3ZfRPDgruaTh1JRvSsdb JXA/fOSXbcEQltA39fCD918NzvN1ttMGSnkTQyQC0fW4gP6aowfC8O6p5VtlmBVu8N7m VnLA== X-Gm-Message-State: AOAM532Jg4qwG3kLPn2/O/ooDOACg0zImA0D0IKaaqX6BuHAIg7fxthy Xgem0KjLeafW3OJ4JwCpOhOPD5Bh X-Received: by 2002:a17:906:a84f:: with SMTP id dx15mr6186757ejb.377.1597347011260; Thu, 13 Aug 2020 12:30:11 -0700 (PDT) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id ah1sm4955923ejc.43.2020.08.13.12.30.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 12:30:10 -0700 (PDT) Date: Thu, 13 Aug 2020 21:30:08 +0200 From: Ingo Molnar To: Joerg Roedel Cc: Linus Torvalds , "Jason A. Donenfeld" , Linux Kernel Mailing List , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Andrew Morton Subject: Re: [GIT PULL] x86/mm changes for v5.9 Message-ID: <20200813193008.GB2338781@gmail.com> References: <20200803190354.GA1293087@gmail.com> <20200805110348.GA108872@zx2c4.com> <20200806131034.GA2067370@gmail.com> <20200806185723.GA24304@suse.de> <20200806212019.GA2149204@gmail.com> <20200807084728.GA29510@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807084728.GA29510@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Joerg Roedel wrote: > On Thu, Aug 06, 2020 at 11:20:19PM +0200, Ingo Molnar wrote: > > I've reverted it in x86/urgent as well earlier today, can send you > > that tree right now if you prefer that route. > > I sent a fix for preallocate_vmalloc_pages() to correctly pre-allocate > the vmalloc PGD entries. I verified that it works and that > swapper_pg_dir contains the correct entries now. This should also fix > the issue Jason is seeing. Thanks! There's one thing left to do. Linus has reverted the patch which exposed this bug: 7b4ea9456dd3: ("Revert "x86/mm/64: Do not sync vmalloc/ioremap mappings"") and has applied your fix: 995909a4e22b: ("x86/mm/64: Do not dereference non-present PGD entries") I think now we can re-apply the original commit: 8bb9bf242d1f: ("x86/mm/64: Do not sync vmalloc/ioremap mappings") Mind re-sending it, with an updated changelog that explains why it's now truly safe? Would be tentatively scheduled for v5.10 though, we've had enough excitement in this area for v5.9 I think. :-/ > Sorry for screwing this up :-( No problem, and it was my fault too: I sent 8bb9bf242d1f to Linus too quickly, just 7 days after applying it - x86/mm patches usually need a few weeks of testing. Thanks, Ingo