Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp690413ybh; Sun, 12 Jul 2020 20:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvkslqawheI+NaPUSIhhHM4eveo2P1WvgjdxwtGbx7CnQmvvqaBZBEe/4ZsdvgI0yKqR/i X-Received: by 2002:a05:6402:1d89:: with SMTP id dk9mr77430196edb.31.1594612367178; Sun, 12 Jul 2020 20:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594612367; cv=none; d=google.com; s=arc-20160816; b=XjJDskTVZIaPu6B+vikhqUFzAwd5JnyLzZu6kIoZq+B4hSROMe7oh5BFo05qWObODq w/MR05VzB+G1nXfwYNCgBb5DzOm145wuHgeGavYDYLu1QwyOQkPubHcAAPdTd/ArDoBT YDeTUSfDLZIcSJHWhUvQIzTtfbJdOrQXXxQwYatvL+2jd5fBvXOSG9GnukfqmoQAbNPw nwpPXFIijgi9gr9y8CIJKjtrXUd4tD1/EgkPbkB6L3ys8mYTEmc/ThlH4GcL6uhpjSPb 8Cv4NSj6nzSvHZgLGeHL6XQ68f+NdDeejvjj5JKm0Cq/HhJdtf60VUD2tjB5GEqU0YpZ d8zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PXZYm8YjUP841mdR1yGtgQbyBqro7EalxNIZG50LFuM=; b=jkY3rg+cb71QJvc149yTp3+vDfzXR5wUyEhADuW3hBJoZr4TTZhu1ithvMa3JjuqNU LVR8G44yaghJjQftTq2/UrFJ24mlfJW8wmdkoHa701fw3PO7jQmUcoNecZdAi12R0wCX ZPuMgIDU9omQZbZAHP1lbCgfXdWEYBArqTSEowHjQiJqhY0s1II3BYpqrwaRPXhNEPYl p9vY1LGsY8U1D/v7O0QT8MgsC8Wqr2jcb9tY9H8vKUL8ookcZKsIJ52k6CBKioCQJEh8 kueb+XbiAMPRUCMuD6ThrS1giqLYi1WaKel3UIs4lrveiT6i3qvcAVbUcV0+ME6nEqNR HZdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=JZ6Y3SBE; 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 ef10si8150215ejb.519.2020.07.12.20.52.22; Sun, 12 Jul 2020 20:52: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=pass header.i=@linux-foundation.org header.s=google header.b=JZ6Y3SBE; 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 S1726867AbgGMDvr (ORCPT + 99 others); Sun, 12 Jul 2020 23:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbgGMDvr (ORCPT ); Sun, 12 Jul 2020 23:51:47 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC4FC061794 for ; Sun, 12 Jul 2020 20:51:46 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id h22so14760728lji.9 for ; Sun, 12 Jul 2020 20:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PXZYm8YjUP841mdR1yGtgQbyBqro7EalxNIZG50LFuM=; b=JZ6Y3SBEjypR0Q/yrJj53ldh8gpnRfjQF/RT1b64yjpHydiLr0yIS3u64B/OW5XJ4/ tBqykrHxUwjAHq0UxLcdms0xudmr7CC4BSdN8v+rXw8M+XyIrWJaQmCLkL9Q4eyPIlNw tfry+uqmdsBjisvh7Qv+FSefQ995KqX6/6xdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PXZYm8YjUP841mdR1yGtgQbyBqro7EalxNIZG50LFuM=; b=Kry82EGJ/tMdo/G2nnL4TOr+ihTisRXhGZfuE1In0gRQsfSnzGNHntc/FfX/1HV2Db wZ38jRSwx8KqT85S1tXeffLmLonIHh8yvuOA8yuR/H4FG2KG/UNxQTjvEbbXLYadJHV5 oFH5CCzjicFG6SAECOtp6b6KKFMDYT6W17n/ZUlbzVkZ6q4aMbb5mtEcGaHFSSAfPvfC 03VqmTCDsLln4qVLRh7BP63s+YSFpEiyxakalO0moPPc8QL3+dYzaRofPzHB3RaAAbSB 6+DDDlx6VYELrHvvYJ4qm1PU8YYDhH4NOAjwwxpaQTAwbo5GQ3QOuBzBt/3OBYxb6RBI 6aeA== X-Gm-Message-State: AOAM531Myk2bn7KWEr63TRxPdrFiHufK2Ewp21PEiMVoTdB2c16+sCfh DebOYVXflbyih64PpgimULuq+hPIJxU= X-Received: by 2002:a05:651c:1034:: with SMTP id w20mr19399253ljm.382.1594612304739; Sun, 12 Jul 2020 20:51:44 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id a20sm4368828lfl.20.2020.07.12.20.51.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Jul 2020 20:51:43 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id k15so7439858lfc.4 for ; Sun, 12 Jul 2020 20:51:43 -0700 (PDT) X-Received: by 2002:ac2:5a5e:: with SMTP id r30mr51926816lfn.30.1594612302784; Sun, 12 Jul 2020 20:51:42 -0700 (PDT) MIME-Version: 1.0 References: <20200712215041.GA3644504@google.com> <20200713025354.GB3644504@google.com> In-Reply-To: <20200713025354.GB3644504@google.com> From: Linus Torvalds Date: Sun, 12 Jul 2020 20:51:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: WARNING: at mm/mremap.c:211 move_page_tables in i386 To: Joel Fernandes Cc: Naresh Kamboju , linux- stable , open list , linux-mm , Arnd Bergmann , Andrew Morton , Roman Gushchin , Michal Hocko , lkft-triage@lists.linaro.org, Chris Down , Michel Lespinasse , Fan Yang , Brian Geffon , Anshuman Khandual , Will Deacon , Catalin Marinas , pugaowei@gmail.com, Jerome Glisse , Greg Kroah-Hartman , Mel Gorman , Hugh Dickins , Al Viro , Tejun Heo , Sasha Levin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 12, 2020 at 7:53 PM Joel Fernandes wrote: > > > But I do feel like you figured out why the bug happened, now we're > > just discussing whether the patch is the right thing to do. > > Yes. > > > Maybe saying "doing the pmd copies for the initial stack isn't > > important, so let's just note this as a special case and get rid of > > the WARN_ON()" might be an alternative solution. > > Personally, I feel it is better to keep the warning just so in the future we > can detect any bugs. I don't disagree, the warning didn't happen to find a bug now, but it did fine a case we might be able to do better. So now that I feel we understand the issue, and it's not a horrible problem, just a (very hard to trigger) warning, I don't think there's any huge hurry. I think think I will - for now - change the WARN_ON() to WARN_ON_ONCE() (so that it doesn't floow the logs if somebody triggers this odd special case this malisiously), and add a note about how this happens to the code for posterito. And if/when you figure out a better way to fix it, we can update the note. Ok? Linus