Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8550881ybi; Tue, 9 Jul 2019 18:25:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfV6ms0hWOqO8/rVL14GEpfL2LnxYinNvMhU7Da29WfbKaIKZeQN04yFi+E1yfVf3W24rD X-Received: by 2002:a17:90b:f0f:: with SMTP id br15mr3480370pjb.101.1562721943657; Tue, 09 Jul 2019 18:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562721943; cv=none; d=google.com; s=arc-20160816; b=Re24TwfZjGdaP9MuK4WZq1HsFrc7+Q9d5SEe6qIDfdfqTaVWLT+WvL4VMR2fxxki6V cZ3Fr0WQ9pQ80TK1hFwdmdA7FUTQv5rnh5k4ohMoUbR/xHgg0N2NfAAe+d/nmZZYwFOV izkUkc81FWvbvJCNtqGWVpiMK1/RzTdh1RFlfKgfgaV3/KP/zwGI6NF+DH0Ut95oDtXd zuHHzlgxn5dO+wzMyLiJmzrekgFCxMNrGpPvcjfRpR/5q2AESzQBENmLMiGgoizCm2bJ 2DWmoUFi98G3ouwUp1QECQCtP3C7qPhjGaJV9BhqRcozQrlplBAMsuNGowo1VtpyG96A BroQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7k/lgMwyAOSzNGQqdDXXYMv79vityN/pwh1Ws1jVVNs=; b=JlFKbFGsB+PfhPrc9JES7hlLgKbxTLTPPxHtZLwCzf1SYW31Rkg+DZRNPeih9k1nED OzYaboR7XokWogt4uQwbxE66ycIM3Lvz8qICpIlXLDRGI/WV2N/oVliHh1XB8HHRstmW FItQYsivUngkVcxC4+uIy5zL9ew5kzFAyIUj4v008s1TeAzb9RaBof+15Gf/BVKrsAMX MqHIj5W97Bb5+njiBs/KGd3GskJk0foBg9iPFDVIeuWeTOecJ0+VizD12wsHlhkis46f XM+ikjYQsfnY0fyP9BcI09O4KFvWw6RJYjsWHnUFexMbm1m3WAVE0lkG3ccPL5dIlBTh amFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=bdqZj66S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si659103pjp.80.2019.07.09.18.25.28; Tue, 09 Jul 2019 18:25:43 -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=@nvidia.com header.s=n1 header.b=bdqZj66S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfGJBY6 (ORCPT + 99 others); Tue, 9 Jul 2019 21:24:58 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:8784 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfGJBY6 (ORCPT ); Tue, 9 Jul 2019 21:24:58 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 09 Jul 2019 18:25:02 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 09 Jul 2019 18:24:57 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 09 Jul 2019 18:24:57 -0700 Received: from rcampbell-dev.nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 10 Jul 2019 01:24:57 +0000 Subject: Re: [PATCH] mm/hmm: Fix bad subpage pointer in try_to_unmap_one To: Andrew Morton CC: , , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , "Kirill A. Shutemov" , Mike Kravetz References: <20190709223556.28908-1-rcampbell@nvidia.com> <20190709172823.9413bb2333363f7e33a471a0@linux-foundation.org> X-Nvconfidentiality: public From: Ralph Campbell Message-ID: <05fffcad-cf5e-8f0c-f0c7-6ffbd2b10c2e@nvidia.com> Date: Tue, 9 Jul 2019 18:24:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190709172823.9413bb2333363f7e33a471a0@linux-foundation.org> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1562721902; bh=7k/lgMwyAOSzNGQqdDXXYMv79vityN/pwh1Ws1jVVNs=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=bdqZj66SSKe/Sej2HEmOBrXJF+zC/5PRqfyUvCr6pR8GfmbS1yp5prYZc/+vQeU11 +2fuVzrvi2SZd/aDuTcIlMzu7sf7T1kK4E0C9ThIPyJt+GyxmtMYTfrYTI3WUyBQ7S +6sp5Z11zhxQ54RUOpuTxIXG6ddnyycB9I+s4NZYlGqbISCfwy+xe0qyJxnibrjLOa IbXVXKq0PzfXx2np9JUzGj7empCUXNl/cmmb0f5RZttV/ZFDmwMrWJxt9sqKUQHICq gWBtYR07FoHZy1mtc1BmG0WrxibQgD7Hf0aSBCLARpAs6lPNveVsx3oBmKuAzxtJtT U9fy2s4k1Gd+A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/9/19 5:28 PM, Andrew Morton wrote: > On Tue, 9 Jul 2019 15:35:56 -0700 Ralph Campbell wrote: > >> When migrating a ZONE device private page from device memory to system >> memory, the subpage pointer is initialized from a swap pte which computes >> an invalid page pointer. A kernel panic results such as: >> >> BUG: unable to handle page fault for address: ffffea1fffffffc8 >> >> Initialize subpage correctly before calling page_remove_rmap(). > > I think this is > > Fixes: a5430dda8a3a1c ("mm/migrate: support un-addressable ZONE_DEVICE page in migration") > Cc: stable > > yes? > Yes. Can you add this or should I send a v2?