Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp933337ybh; Mon, 13 Jul 2020 05:15:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws5RcgpZyzG8hzVx8XV53IDpwIlTpQA7d6+l8vPNnMnY3mIjOtnDehtZJHCGjfD85EL8Dn X-Received: by 2002:a05:6402:a58:: with SMTP id bt24mr93586153edb.333.1594642519544; Mon, 13 Jul 2020 05:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594642519; cv=none; d=google.com; s=arc-20160816; b=sTePbDk9dW5d/Df+aACjq+HqiwyytkV3D1WKdvyskhODDfwcOZrzDjl1d1JfNHgyCj /yse8iNpLwIQtQaOAKNjzVtNKyTzfewADxl/sx2Vir8hOn0MaBGbdMz7AGBTOrBux846 tBx73pEv1941/1vTXizGeoVvRS3MO/Da5Yyfl6fSLL0PFr/jc5mA/6w5CrdAOUJu5z4m uT3gBpd/k6JinsO+QbMlbD0xzUITLzvjnK+A3iEYgffI4bgwOP60stGQDu73fBWFSgSz 25Ra7w72pq0aPWEBvN8mnlz242IluoGUQuYAbq0Jev/1bxK+ZcUgQauMLolj/+PJm4Rq 5kAg== 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=RpYSNQC2exuWKUTSRfbzznKwmjgAwfUEWqW8RzotbS4=; b=AkTMjWavV0aKcOQd29iK2Ak1oBgpNvSspRC8t5+zaGuIgrg+8pcTgsCFd0GGsNV2hY kP8AbrpgJWjyAkjWSBfYUNKpUc9cGrXbPQrnz56Nnrh21hmNl5aCRzRoas0F3wyAwFI6 k6J1IiUmMIaaFjMJN+bYYcNKxOZd+4Ygcj2UTwc71KosSE6FMxD3Z52FlhycwQVZt3nb JnN9r23KCaDpopMSpakM3tFsFo4vguw40PFMuqxaFejh0BMAZnqi96aSS0vq/TYPKjy+ opi5cpK6QZQKtYPo1qnN48qmUtz+hAc3q1au/5l8kkbcIrrjoAEppFK/ftRC6QdhmkPp nxwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="rBNMv/m7"; 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 d6si9510121edp.16.2020.07.13.05.14.56; Mon, 13 Jul 2020 05:15:19 -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=@joelfernandes.org header.s=google header.b="rBNMv/m7"; 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 S1729581AbgGMMMs (ORCPT + 99 others); Mon, 13 Jul 2020 08:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgGMMMs (ORCPT ); Mon, 13 Jul 2020 08:12:48 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E483AC061755 for ; Mon, 13 Jul 2020 05:12:47 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id i3so9646504qtq.13 for ; Mon, 13 Jul 2020 05:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RpYSNQC2exuWKUTSRfbzznKwmjgAwfUEWqW8RzotbS4=; b=rBNMv/m7LaTM5arw6QzFTxkwPH7OghzX2+1T4d0DECfS6DFMcAv1644Lu5aG+V9mCd PMKwN8m//5IvkMkE7befYGE5dNlHQGJ1XgOmVUFV5n1VP1FlkC+JoX7DQVbBuwjIflg0 Xiha5OPk6LbG69HWASAzNTROcVKp7AAUVGBPk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RpYSNQC2exuWKUTSRfbzznKwmjgAwfUEWqW8RzotbS4=; b=OGp+xJWJFiX+SYosr8B0nmmFk5XwOR6a4fAt6ksdlU5/w4gpzW38HdemImIeqWczQb UfrTG8hFmmA097rTtaW6E/2o3UhD/eW5R0fnkj8RQR6X8DDB3e6B4pwSxTbn7LPZUYQr IqpBVr2MJgQydp1BuB+zzb28f4WTeX19aAFQ55/ierT+DjjxTd57gv8rhX4Se6DGZ0HO DyUlMaF5X2+C4Cgv6GkefprctNYiI4CvoK879pfQqKoFwoWyc8gv8U8cwYYUhEDxVLTW TwSRRG8z4DL6vEXDAX0TawVYpymR18qXPim+6gdU2mi8t8cE8EmeeeZC/vnJUD6gF4AQ Oxgw== X-Gm-Message-State: AOAM533oDggZNSes+wNatHHCxRR8n2EEVtpNUpgHXs0TNMHdhZk6lSGW lsDAcs6vA6Z3C4tORv6nNn8b+8KxYms= X-Received: by 2002:ac8:1a12:: with SMTP id v18mr85096949qtj.347.1594642366926; Mon, 13 Jul 2020 05:12:46 -0700 (PDT) Received: from localhost ([2620:15c:6:12:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id b8sm19823302qtg.45.2020.07.13.05.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 05:12:46 -0700 (PDT) Date: Mon, 13 Jul 2020 08:12:45 -0400 From: Joel Fernandes To: Linus Torvalds 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 Subject: Re: WARNING: at mm/mremap.c:211 move_page_tables in i386 Message-ID: <20200713121245.GA3926869@google.com> References: <20200712215041.GA3644504@google.com> <20200713025354.GB3644504@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 08:51:26PM -0700, Linus Torvalds wrote: > > > 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? Yes, that sounds great to me. thanks, - Joel