Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp606498ybz; Wed, 15 Apr 2020 15:02:17 -0700 (PDT) X-Google-Smtp-Source: APiQypI+WSrsWNOg/xi/zAQ80cYhy6LPDkz0B7C42Re7lP8uzXFQVlyl+kRd4ujbXsKpBeOTcUi4 X-Received: by 2002:a05:6402:120a:: with SMTP id c10mr7019218edw.15.1586988137594; Wed, 15 Apr 2020 15:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988137; cv=none; d=google.com; s=arc-20160816; b=FMUQulXOOygcZ4kqSTw3uqgdLylgXxzrg3uHJDWQOvQHgkm5G51QyBNvF/6+kHlmVD 1W6PuvNCDx98GILSV81ZRZibL0QHpUMufO0NzekH/0FbyIPoLx6P5sgMZywrojiflRrT nNx3HexeqnNM8xqsuGGZKnFgzYnKfNHbNftg6WuNim+SgmfhHqY5ZHGiF0zEUlNqrklg +4S9eksG+sdbipbLPeS5kgEX2Iig4WQUlGMgQEdqaX9ZRc2b+ovOA8OSP+kz2xCY1eYa Lcvx5H08o0HiC8ji6HP5EWIS3klsXx1FGuNr7lt9OsEDwH8B3kAJHXE9iQvCGA7DBwT8 iPnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=qJrsAMQC3UtkKECDKD0hIDlMAg1PjK+8E5kP7gbjHKE=; b=0Au3FSWFyZ3vu1OjFwVevfZtMsHkp0fvGEe2mQgiya+0MNERIMXG7yn4tCo4RXjFdF xhFA3vI1LQ2WMN+xS5gxVLT3DDibN2946vQ69t/r+rL6ht26APhhf2Jtq86YGFQJ2WF5 Hl2PNcNdvj7+88ESrEgnxQjG5FUEic0QXEdPLh/mTGDUgWeLu83wwOdlDXp34Eobnl12 xhySiOv3t3uku/2JNNOrBshsKQqwkXNCIB84zdiBahfOe/Hj9LQT5MFzJXcP11nCGKQ2 yohmRyP/C4mzlYnz2FkXi6vkMquGybRX8lxjowTqHiKmcQ/kMLval4AjDBnE70j6p11s /xcw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp4si2215559ejb.205.2020.04.15.15.01.53; Wed, 15 Apr 2020 15:02:17 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392833AbgDOCCB (ORCPT + 99 others); Tue, 14 Apr 2020 22:02:01 -0400 Received: from mga05.intel.com ([192.55.52.43]:40304 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392789AbgDOCB5 (ORCPT ); Tue, 14 Apr 2020 22:01:57 -0400 IronPort-SDR: TxEr8Kj0dMWMhLLIKlDjaSS4qPK087B27BYnFZWOjdjpvpI9IKiTGeZcY5r9wv5AhGFbs9VBri nGLDtsaQNoVA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 19:01:56 -0700 IronPort-SDR: Hmt0b3bWk3FGU0LKmcKgQ0wNl3GKIVKo4Fb+10Tv+bsqQf9j0sO0wYR8CZxlB27WI+ElswuQJu QGh6XA0w7J5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,385,1580803200"; d="scan'208";a="242172668" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.159.23]) by orsmga007.jf.intel.com with ESMTP; 14 Apr 2020 19:01:54 -0700 From: "Huang\, Ying" To: Qian Cai Cc: Linux-MM , LKML , Minchan Kim , Hugh Dickins , "Andrew Morton" Subject: Re: linux-next: not-present page at swap_vma_readahead() References: <62A0ACFC-E023-4269-8121-F96B879A8C51@lca.pw> <81F06AA9-F25B-4342-9CF7-2763AC394A18@lca.pw> Date: Wed, 15 Apr 2020 10:01:53 +0800 In-Reply-To: <81F06AA9-F25B-4342-9CF7-2763AC394A18@lca.pw> (Qian Cai's message of "Tue, 14 Apr 2020 17:22:54 -0400") Message-ID: <874ktl1p7y.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Qian Cai writes: >> On Apr 14, 2020, at 10:32 AM, Qian Cai wrote: >> >> Fuzzers are unhappy. Thoughts? > > This is rather to reproduce. All the traces so far are from copy_from_user() to trigger a page fault, > and then it dereferences a bad pte in swap_vma_readahead(), > > for (i = 0, pte = ra_info.ptes; i < ra_info.nr_pte; > i++, pte++) { > pentry = *pte; <— crashed here. > if (pte_none(pentry)) Is it possible to bisect this? Because the crash point is identified, it may be helpful to collect and analyze the status of the faulting page table and readahead ptes. But I am not familiar with the ARM64 architecture. So I cannot help much here. Best Regards, Huang, Ying