Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1809022imm; Thu, 12 Jul 2018 08:09:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdDPNkW8Qxkpl+Z6PwZzsijl6foTWCTRABPuzJDLMq77T5PbbWX7shQv+5KCiI+tycAJ4OL X-Received: by 2002:a62:828a:: with SMTP id w132-v6mr2824235pfd.121.1531408182657; Thu, 12 Jul 2018 08:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531408182; cv=none; d=google.com; s=arc-20160816; b=Rk5Gf83L9ZwoiiACV0ULLbHBXglUbH9RFq3hyd7PKn4TyAoh8jwyih/2oZ/tq4+8Js K2GufFPf0EnHx0GSJQt50IDERodAOWjELKHEeHFggDbAtxV7UQz1j/VXw3L638Pzfu69 bI6MluFzbnmCuC4TshmPASDFdkqfrfrd4ZXqRXwKOwoSJX1YIdbyVauIwEQO1Nhwz24C 8ovP3mIGP29lI3m6ZAxpxf3xk8pCl6+Y95rd65we/+VCrkj1VvlEgEmne1b5B7nwY/um FkmwGKQ/3939qvIf4ApAej4DuGCdV7R3aTcZiHiHtqI5PiATImQtdk9BJ2r7ExC5kVP3 DZLw== 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:dkim-signature:arc-authentication-results; bh=yfliBzhE/DKOmBStkuyHNdzJqMAIL6jrpSB1nIhslYs=; b=J5OObSYpS9lGBzRSoUARD6f2/W7f1B+JCaEMFmsXy6lm92jwEik+fzcFD0KYFwEEbK F1lB0z5Q5m+sUuPNdZwZOnbbVvT5Lei5V5xu3Mu3X2C74K6DwzTMDJmyu+x+3RWo3JbR OJOLcqH0dl0r4hQOkneDZ4RkrO1vtVeZP5ZMTn/RRXWg5rJiPRm10eNHrq4Ba6ZQbFVx vKz2kM7lrOK+U/9G8Lg2lYQIs4h0Eo4AwsWESDC5nZmp3Vs2SJI12UrAlq4c+ljUg4eR VN6IUsvGZkB+wDAh8DoSK8wSZ/P/JswMwxtwhj7sLDdRwoV1HFywgoXBmS2UbJszRpqN 4tXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=qM511Bc0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24-v6si21257046pgl.452.2018.07.12.08.09.27; Thu, 12 Jul 2018 08:09:42 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=qM511Bc0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732575AbeGLPSD (ORCPT + 99 others); Thu, 12 Jul 2018 11:18:03 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43451 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732373AbeGLPSD (ORCPT ); Thu, 12 Jul 2018 11:18:03 -0400 Received: by mail-pg1-f194.google.com with SMTP id v13-v6so3988579pgr.10 for ; Thu, 12 Jul 2018 08:08:06 -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:user-agent; bh=yfliBzhE/DKOmBStkuyHNdzJqMAIL6jrpSB1nIhslYs=; b=qM511Bc0n3iA2fgNLwFd/5MPIhAQG84Aes1VNmCjrrppBlqCcKMas19zZaFHIGwjGu EGb38dbxYdekGJ8pnrqS6z1RJBCQ2+X6riZpfCbh60LShQvZSN3Lk2R9SsVS06+gvg7y zTgX+eSQADrByBBM65pzOtnWYo3YF2vjEE6pCi0q7Cm0ClChkwKisw4DGPHIMzFq9MLT J4+GSYyDXH/XJiCpN9t4D0IgeaWAVaD1xWwU6hHC/vdf20Zczs1TOpbq8atJAln1NKE7 ZSAkGpehNRSMVg5uoOxjOVyyugpHl5QFcvEeBPU9/v7AO4O6P51ZvfMMzA+Yen/oTGh4 Vv7A== 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:user-agent; bh=yfliBzhE/DKOmBStkuyHNdzJqMAIL6jrpSB1nIhslYs=; b=QE1bg3FOPRHQENMHWfRdoLxq4O78+xmnz6mhkgQ4cyv0FR1isuCvNIxbItW+0VDcb2 tWmcrBHoATLCXr5QG8UFfxLyGKLmbdvFF/3TgbNOv0au5+lOJgf3W1KdWHrNsWZ2f2zD EmW6j9pc+qzaCLilzSy7l5q9slO6pVQ/j5V9MQjc/BVz/TPMHKW48tnkBk247iViNqiI wgXq4gZaRWlobLukABlbsYPiXOQV3bf/3CGiQdk77aLVTGmFNuDl3LPwb19JnaayvrXq tCcIhc1r9KCKXt4RDpw3qcooXu/FbWAUVNHnQbfspdlUZOoJQzUgXUz+T64k4VKO1Bxn Inqg== X-Gm-Message-State: AOUpUlHkLktGeSVZigAgNjlUqvKJifP3ICQeXHXdndrF9kIs5Zwg2EX2 kkmEfbGcdXHHjF5SlwuUPjDFjg== X-Received: by 2002:a62:5d55:: with SMTP id r82-v6mr2858670pfb.150.1531408085767; Thu, 12 Jul 2018 08:08:05 -0700 (PDT) Received: from kshutemo-mobl1.localdomain ([134.134.139.83]) by smtp.gmail.com with ESMTPSA id y4-v6sm38146030pgy.18.2018.07.12.08.08.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 08:08:05 -0700 (PDT) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id 4F92030029E; Thu, 12 Jul 2018 18:08:00 +0300 (+03) Date: Thu, 12 Jul 2018 18:08:00 +0300 From: "Kirill A. Shutemov" To: "Kirill A. Shutemov" Cc: Andrew Morton , Dmitry Vyukov , Oleg Nesterov , Andrea Arcangeli , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 0/2] Fix crash due to vma_is_anonymous() false-positives Message-ID: <20180712150759.acjj4jdw4ykwvzwg@kshutemo-mobl1> References: <20180712145626.41665-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712145626.41665-1-kirill.shutemov@linux.intel.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 05:56:24PM +0300, Kirill A. Shutemov wrote: > > Fix crash found by syzkaller. > > The fix allows to remove ->vm_ops checks. > > v2: > - Catch few more cases where we need to initialize ->vm_ops: > + nommu; > + ia64; > - Make sure that we initialize ->vm_ops even if ->mmap failed. > We need ->vm_ops in error path too. Just to be clear: it *should* help found issues, but I don't have setup to test nommu changes. And ion-related bug was actually caused by fault injection that failed page allocation and ->mmap not setting ->vm_ops. It should be fine now. But again I wasn't able to trigger the exact situation. -- Kirill A. Shutemov