Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1886556imm; Thu, 12 Jul 2018 09:22:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfGNZgyaSvfnIdojnbvZMFfMBH/CSPmkOtUBGy+jf+xXeW0xOjo01G9Mu+Hnkz32J+adm1V X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr2781373pla.156.1531412526994; Thu, 12 Jul 2018 09:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531412526; cv=none; d=google.com; s=arc-20160816; b=yjromj1rfPVx3eKl8EkH4txoPVLCMypzafuDLWuUOVmmzVxq6slYRQVbIdYIhQ5bO+ 9ycOgRgjgeXPdVwGVPZSXMzMj1grPHGV470Oeqt/Nvz6jj1H5DooEaZffFjgjzm4lHVb UtYXIFj/5o2EvEyCXddrCSsxvmbngCSoE+GA4LN1lksroCs4eDyop5EkRom85aKfs8Z+ 78bsx//4EKdnqnVdgRPevQwuwDYR8+Gh5F9ayYZ8QaU9vX2Kzw+0m+0ehNBxvjzT/TDn xPVgt/KQh9HjHTJL7mmra7UlLwo2wu4HniQNmNJ7Sh/e3p8EJQFA8BkUkMm8BoP/VyzX qnYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=+kezh0T2Vov8UXBMQA9uMxwmCFy8vGMo3lKQTV3P4Xc=; b=v3vyPCnbAr7w1W8IJu1BnWcAUNfCevGBSWGLfjq6A3aqznPfY2BqiYT6+gsFxN0TbR G4EJ8wen33/Fy40dkclTPkaGJYKvo02/aKxhLOsR5vZv059BFFkGBor0qFA5wL9UKWZS gN4eQs68p1wNhD4VEi6EQjsHOh/F4XcrVflVx5T5C1btdgvO+i98XgQQIybvt67h3iPv wqr3964hLtcht25/hYCiHTZEUE5hgb6zAnqW12GpYBsXvKpdG/4En6iFYFm6zZ2mxwf3 npkyYx58VGNHlNegbS5QsS4WK93/vG2oT++j2Vz9UBSlXtJBsgw5CcLO4AwNSLQJj3N1 etsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si23170018pfk.166.2018.07.12.09.21.51; Thu, 12 Jul 2018 09:22:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732249AbeGLQa4 (ORCPT + 99 others); Thu, 12 Jul 2018 12:30:56 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33838 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726744AbeGLQa4 (ORCPT ); Thu, 12 Jul 2018 12:30:56 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E0EA34075742; Thu, 12 Jul 2018 16:20:41 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.34.27.30]) by smtp.corp.redhat.com (Postfix) with SMTP id 9211F1C676; Thu, 12 Jul 2018 16:20:40 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 12 Jul 2018 18:20:41 +0200 (CEST) Date: Thu, 12 Jul 2018 18:20:39 +0200 From: Oleg Nesterov To: "Kirill A. Shutemov" Cc: Andrew Morton , Dmitry Vyukov , Andrea Arcangeli , linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCHv2 1/2] mm: Fix vma_is_anonymous() false-positives Message-ID: <20180712162039.GA16175@redhat.com> References: <20180712145626.41665-1-kirill.shutemov@linux.intel.com> <20180712145626.41665-2-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712145626.41665-2-kirill.shutemov@linux.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 12 Jul 2018 16:20:41 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 12 Jul 2018 16:20:41 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'oleg@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kirill, I am not trying to review this change (but it looks good to me), just a silly question... On 07/12, Kirill A. Shutemov wrote: > > This can be fixed by assigning anonymous VMAs own vm_ops and not relying > on it being NULL. I agree, this makes sense, but... > If ->mmap() failed to set ->vm_ops, mmap_region() will set it to > dummy_vm_ops. Shouldn't this change alone fix the problem? Oleg.