Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp838906img; Mon, 18 Mar 2019 15:48:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnAMhQoOo5niLusr1VihWGIoss9ToEgBFkx1LleacLlGcGI/abxGtLQLtP+Tf7PUheV7VY X-Received: by 2002:a62:20d2:: with SMTP id m79mr21985390pfj.135.1552949293675; Mon, 18 Mar 2019 15:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552949293; cv=none; d=google.com; s=arc-20160816; b=E2+5ktyVG7hkzN4dOIGrjy6umKC2yKu8i7Y24wcEkm9xemCcCWvj3tEVXEZZa5R46U bolu59KRHJUwGFjApysQUnuw2Qx1/4bG9+bS+SEltWkLyvHzAHN1JEgpDksVgp3zWGJ6 REE4532hBZS1mXnopc53ixuIb6cBKrzVrO0TbcmI1vxtMJcR5raYov2RPUrjWRCLFWZK G75QW+CEFHFIZzUVOQxRNOsSeyamxb+kUl+fQSd/1E0T845byiXWez/TTc1Tr9bF2IJH CLv+EfycPAcJlFo07YHaz9eMegOd6XLcHim9wqVbUX2fhlE+l+yELZx1+CXJmKk4B7Uc 7PWg== 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 :mime-version:message-id:date:subject:cc:to:from; bh=NTlkLDX13fuAizR+ABtxTxwPWLPcmoYda6V4Bq6ahTI=; b=mTa4oumaWflaumxxXl1JjmYxJf0MbYtiHtBgcgTC9C4dtRs5OOeCf7qS+IKi3MoMgc MN2itNeDki94hxgqvArdA2tgLdx8VfikFQkEe/xbkjJBiM34F2g+c8KHGT3wrgbnVHMx fNwHtWDYw6IfEaVaaCTltRGfnmUdqQFcQxMHilMx4MKfkgLeE4B9IFojH0xOeLq5XxPH 9NLvt0pxJSbcfZEcbnwCYJ0Hv5djc7qAXkU+8O7/xj9yIjnCggXYIVBn6N7ZKgcseahw iT4MvYd989ZBM1WjY02WkURYDy3egMfX2WTQItQt9s+yQeSOIIRWXruFEQ384wrMElQe yiJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=aIN8g3yZ; 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 j17si10856489pfn.210.2019.03.18.15.47.58; Mon, 18 Mar 2019 15:48:13 -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=aIN8g3yZ; 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 S1727304AbfCRWrU (ORCPT + 99 others); Mon, 18 Mar 2019 18:47:20 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:7126 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbfCRWrT (ORCPT ); Mon, 18 Mar 2019 18:47:19 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 18 Mar 2019 15:47:04 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 18 Mar 2019 15:47:19 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 18 Mar 2019 15:47:19 -0700 Received: from rcampbell-dev.nvidia.com (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 Mar 2019 22:47:18 +0000 From: To: CC: Ralph Campbell , Craig Bergstrom , Linus Torvalds , Boris Ostrovsky , Fengguang Wu , Greg Kroah-Hartman , Hans Verkuil , Mauro Carvalho Chehab , Peter Zijlstra , Sander Eikelenboom , Sean Young , Thomas Gleixner , Ingo Molnar Subject: [PATCH 0/1] x86/mm: Fix limit mmap() of /dev/mem to valid physical Date: Mon, 18 Mar 2019 15:46:52 -0700 Message-ID: <20190318224653.26549-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL101.nvidia.com (172.20.187.10) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1552949224; bh=NTlkLDX13fuAizR+ABtxTxwPWLPcmoYda6V4Bq6ahTI=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:X-Originating-IP: X-ClientProxiedBy:Content-Transfer-Encoding:Content-Type; b=aIN8g3yZ1Dc0ar04crB/Ah9hHtOAZu5GJvp9IDuudusTgC4SrMvHARIIWhD0cXRDW 0p7FY/3CNvWZQjV+uljyTlI5tRiuk3rSnPF31V0WS9C+2k83PstKhkNjbdl7Lm72Jq CCjBbIyQf8RoSeeKfWBI5fv4gzCEJ79OdxDTyCd+iEC3VlLTgmv80T2QB9SfUDLm5P XHptAsIi+lHvENoguCuOVU7jnXeu//Q1qG8P48kwT7GzTivYqyS8+QJd1KfzLE4fzr jt04M91dKech1d/w2oEiaqFRGiNV6QGAjpLvkEj71xQ+HfhQWEdKYjlP+Oah3FnTxI HYYv4hy10+bsA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ralph Campbell I was debugging with v5.1.0-rc1 and while booting I hit a kernel BUG at arch/x86/mm/physaddr.c:27 which I fixed with the following patch but now I can't seem to reproduce the exact setup that triggered it. Still, it seems like a valid problem and maybe my difficulty in reproducing it explains why others haven't seen it earlier. Ralph Campbell (1): x86/mm: Fix limit mmap() of /dev/mem to valid physical addresses arch/x86/mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 2.20.1