Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp910945pxa; Sat, 22 Aug 2020 04:33:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxwXDVERjI6FbV8x1C+XEVFES/Z1P4qMLunFIcUgg3GjB+pYIB6IiJBN5xtulxXWJPEVxR X-Received: by 2002:a17:906:7e06:: with SMTP id e6mr7336353ejr.236.1598096010114; Sat, 22 Aug 2020 04:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598096010; cv=none; d=google.com; s=arc-20160816; b=coYo5FbqMUDlAOwNTqCBSbaRWxHC4x1H0JF8HN+zsGaopEyZYeis2aPAzN+cCe9NjQ BKmug2QpqfjlXxLqVIVVLgXj73jttgLTgw8zj4S0vzx/UmaVjvmVsymwaT5q8sHwnEIb uRm6UIfGTOsveI+va+ro5yvcKW1NpQAdM12SeHILAv1wBre+v2fsNYo9xPuL6/DVUWbi X8nDXqlOalpwi963nX5RuolHvdI11YManLnbMnEtP4hEYWvn+rDhpEsJVDoMuaJ0SzXp PtciGIi7LzPbF5HvpaGavN2t6GezY/mnHbhb/NhIsHqD1MKVmvrdaB71siyHKevIcpmc zmvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version; bh=+CxX0eorgn3xq/QxMOfB+vIUXB1nJoXBwotr4CY8sZY=; b=Xj5uQWkg3dd32LYHbDBaBlWdJ3ns6XIQNlbgxNe3E3SmbNEjID2DF6cdgyn6MdFFwM WT2IBlFk18j1e8Ig7zFTftzdwBPRfyTnKfTogcV+wBN2rSP/eqt6+o4dRuB/0rNVUfhB fNyrT1GfW/8KiMy7Z98plXc19ya3SQNJogJY0+hQBKYTTu9uD4PLTKA9ONNwNcS+cFeS koAd7TcQViJQ3/p0et3BpvoqX1tOVbUYvxcdFlLybb3VdWka/+hFht+l0OKYlyLiI2Yw oYkQ9Ld2MlaePlYk1Hp7ExXaAcBhduFGm8w+HR1CQICmHJ3OWvUZ8w2h3SVPNf6MauKr n4UA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si4173405edi.81.2020.08.22.04.33.06; Sat, 22 Aug 2020 04:33:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbgHVLcC convert rfc822-to-8bit (ORCPT + 99 others); Sat, 22 Aug 2020 07:32:02 -0400 Received: from mail.fireflyinternet.com ([77.68.26.236]:60388 "EHLO fireflyinternet.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726920AbgHVLcB (ORCPT ); Sat, 22 Aug 2020 07:32:01 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 22207247-1500050 for multiple; Sat, 22 Aug 2020 12:31:56 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <159805314945.32652.6355592202796435703@build.alporthouse.com> References: <20200821123746.16904-1-joro@8bytes.org> <20200821153412.5902e4ed0699615d8de4a595@linux-foundation.org> <159805314945.32652.6355592202796435703@build.alporthouse.com> Subject: Re: [PATCH v2] mm: Track page table modifications in __apply_to_page_range() From: Chris Wilson Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, Pavel Machek , Linus Torvalds , Dave Airlie , Joonas Lahtinen , Rodrigo Vivi , David Vrabel , Joerg Roedel , stable@vger.kernel.org To: Andrew Morton , Joerg Roedel Date: Sat, 22 Aug 2020 12:31:55 +0100 Message-ID: <159809591535.32652.4016790228519688343@build.alporthouse.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Chris Wilson (2020-08-22 00:39:09) > Quoting Andrew Morton (2020-08-21 23:34:12) > > On Fri, 21 Aug 2020 14:37:46 +0200 Joerg Roedel wrote: > > > > > The __apply_to_page_range() function is also used to change and/or > > > allocate page-table pages in the vmalloc area of the address space. > > > Make sure these changes get synchronized to other page-tables in the > > > system by calling arch_sync_kernel_mappings() when necessary. > > > > > > Tested-by: Chris Wilson #x86-32 > > > Cc: # v5.8+ > > > > I'm trying to figure out how you figured out that this is 5.8+. Has a > > particular misbehaving commit been identified? > > The two commits of relevance, in my eyes, were > > 2ba3e6947aed ("mm/vmalloc: track which page-table levels were modified") > 86cf69f1d893 ("x86/mm/32: implement arch_sync_kernel_mappings()") > > I can reproduce the failure on v5.8, but not on v5.7. A bisect would > seem to be plausible. The active ingredient was 7f0a002b5a21 ("x86/mm: remove vmalloc faulting") which explains a lot. -Chris