Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1057667ybh; Thu, 16 Jul 2020 01:49:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeYOmgObNAO/Yun25rh2XdW9X3taJULUsiOdoUdfN3b9Qo9alfQ4qGQbUwX1BVWOcKw762 X-Received: by 2002:a17:906:748:: with SMTP id z8mr2774025ejb.257.1594889373647; Thu, 16 Jul 2020 01:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594889373; cv=none; d=google.com; s=arc-20160816; b=Fx59x60/o4mjkPlDiTojvAne1GZ7Zh7nJSIxwPvu+GeTEJGDwiZsLZ/47wU3ldR8ni vg9TKRUYFb7jCrb0xY+J1HrkA1gftXo5hdQsxOdssxpv8pbZAtR6eJPj3GAjEOjCr9bL WgkeUyyANeZ/my/H62dshDv/aqR8KMcRHG7KCnz3E+YAPEqlFRYfFZpSBfPHjNygcHIj tFMuQMsf6atafj+m3d/Qar2EfEDy/BwYtpDV7Gy6IgZIEF6vZUPVmXRqvr4cb50wfTE2 Eeq5yjzW47l/QlMNbgJ0IhfX6Jdvi067ebhDTx4BM+VFU+8lR6gJ1sc5Lf35V/EIQ8/3 Ig4w== 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=bCC4Mo9K3VF01NtlTfFZEG+9hWwFt1H0Qp6ndqIsiwU=; b=EG+hYDLIGL5hxxXng5FIpBL2d0VnFS0mbKe3UxYq9CSsqRu+31236LkCekkv+vXZYa E0cM2st4NgrQHcV1/SAgJjW7UrKvgSDpS0TsZMfIrQmnEfzwZXYdGYQhcaXM3KiVqk9x AiVNZ9m/JKI6pqoO61aD49sWfkMAw+uMuUry/edv56feTOdUJavouf8nHy1adi9HMxUL d+v34lHE0Z8loDc8os5feBKCRteH2kfUfAScA6K5YjL15dh8GF3TFDwyURtLcv+KgT4O MphQ3+fEIykH+nOKecmQYLd3ZO3JqxWG2/NG4fAon6Sz6igRj8AyGglQSC+utvYR5MaC 8AyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Ycw6kDBx; 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 mh4si2711649ejb.339.2020.07.16.01.49.10; Thu, 16 Jul 2020 01:49:33 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Ycw6kDBx; 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 S1727771AbgGPIqs (ORCPT + 99 others); Thu, 16 Jul 2020 04:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgGPIqs (ORCPT ); Thu, 16 Jul 2020 04:46:48 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5256C061755 for ; Thu, 16 Jul 2020 01:46:47 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id b11so456917lfe.10 for ; Thu, 16 Jul 2020 01:46:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bCC4Mo9K3VF01NtlTfFZEG+9hWwFt1H0Qp6ndqIsiwU=; b=Ycw6kDBxvy+1hQHj8/FEH/4U7ljQ25EreUCaL8gvHBx79vA4SVG7pi1ofaKXig142P Gv4HHcbCIl7RuiW+f6NYdmQ18/KM9+d6WPB3wsltKZM/LHLdCq4EyEaSjSy2kASMEmNd UButTqENhwLwFBBan8sW2USiTgE6HsycZxDMUEqXEhq1hNS1IFzcUxBQ/SHQ/4nSdMC8 ol/m2fyHdFtlPPWvoYWBOenk3RLLYvhDA6+nd+VPnVB+gzGDVHFcJZz6wXcsevOmmK7j TG9IlfdqD3qQ+cxBN7CkGBrTKDah/jOIKq8qc3Ty8euWFfetsHaS5lGuEBZvSo5NzgEg A08A== 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=bCC4Mo9K3VF01NtlTfFZEG+9hWwFt1H0Qp6ndqIsiwU=; b=TpU/s9V/qtSDj0vnJR+RjZkthDldMNNuoOjuQY2wkGDye65sVe/HlaV1qYJM68d5Dc z8fLBWzEb0c+BW19+T/0Lxb6UFUeLxjRtbXiz3N0TxMUMvZqTRm2/4dcS+cwIGCyfQu0 1yqkq3SIDHrjRJyll+gXxuvWx8+si0/qZmR6Qsnkr2lObznHIdN3N4vpTm5LRm4P7hDk cCOcWltIBoisc0YZ7Eo4lwspWChXqavU2w5hJUjqfBNhXTWFgMuxzqdH3ohh+qOcvBFA Sp36JBu+a68j9FH0CtaU/0xc8jXgB04n18oy+fzlcViyW0N8GDNjz9KJZ8lpkfV1ID1R 5LzQ== X-Gm-Message-State: AOAM532gWnexSuYpNccna4r3zBQ6j5PylOx1jAMu705h9L8zYs/DbvNn f5cMOseuJGSO0LiOiTQ97C5g5A== X-Received: by 2002:a19:4a96:: with SMTP id x144mr1571683lfa.213.1594889206222; Thu, 16 Jul 2020 01:46:46 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id y188sm1242637lfc.36.2020.07.16.01.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 01:46:45 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id B0BE91020FF; Thu, 16 Jul 2020 11:46:51 +0300 (+03) Date: Thu, 16 Jul 2020 11:46:51 +0300 From: "Kirill A. Shutemov" To: Naresh Kamboju Cc: Linus Torvalds , Joel Fernandes , "Kirill A. Shutemov" , Andrew Morton , Linux-MM , Linux Kernel Mailing List , William Kucharski Subject: Re: [PATCHv2] mm: Fix warning in move_normal_pmd() Message-ID: <20200716084651.4457czjaszv3uprv@box> References: <20200715205428.GA201569@google.com> <20200715222228.jf2pv5u2wyhtc5o5@box> 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 Thu, Jul 16, 2020 at 12:53:23PM +0530, Naresh Kamboju wrote: > On Thu, 16 Jul 2020 at 12:07, Naresh Kamboju wrote: > > > > On Thu, 16 Jul 2020 at 04:49, Linus Torvalds > > wrote: > > > > > > On Wed, Jul 15, 2020 at 4:04 PM Linus Torvalds > > > wrote: > > > > > > > > It *might* be as simple as this incremental thing on top > > > > > > No, it needs to be > > > > > > + if (*old_addr + *len < old->vm_end) > > > + return; > > > > > > in try_to_align_end(), of course. > > > > > > Now I'm going for a lie-down, because this cross-eyed thing isn't working. > > > > > > Just want to double check. > > Here is the diff after those two patches applied. Please correct me if > > it is wrong. > > This patch applied on top of Linus mainline master branch. > > I am starting my test cycles. > > Sorry this patch (the below pasted ) did not solve the reported problem. As Linus said, it does not trigger on the stack movement anymore and it is not going to fix the issue, but may help to increase coverage of the optimization. -- Kirill A. Shutemov