Received: by 10.223.164.221 with SMTP id h29csp1012548wrb; Thu, 26 Oct 2017 10:50:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+S7hytTMvlhzptqDKWpNyPghgaJTDeXl/vrz30Cozw4l1B4CGkuWsngFCIcyzoL4kZ5NIc7 X-Received: by 10.98.207.71 with SMTP id b68mr6104923pfg.125.1509040231910; Thu, 26 Oct 2017 10:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509040231; cv=none; d=google.com; s=arc-20160816; b=iNTtlLWGfUVPchMgZBhslqJayc7IKSg4PSYb12GxnpLIqZVsjgn4iY0+BRJrlXm5rn KGokTOuAOM5fJ5Rc0SIYR8G514ZnOYKNsWo2J8OjlQCmfBUPuYFOTeov+zwK21kwUmRS A2lC048QnClZx3JG3b+lH1xjRu5mdkbVGaRX0ZOucwFHO/22aYzBO9lIPiAdXNtywEAt 5TzfKPmAQxIBW8CffHZKub8YqxtrnKI+2U2wajKpcv4ZfqOVmUyzLhyAz+cIjsinjzkh TIwusLfAAsrCPpBP3MfwX5be/iuaXittu+N9GN2gVgkGQz40BJ5mP2NbZ4XeGe2oRuiA y3ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bvvfhmr++JxzS7frFTrAvWfS0TgCZFZzeWT7UTcnNuA=; b=f1yEGgnzWVe8bm/4cLT+m4VmVOoV6iuDS8/CU3tUvYIB/n3ZOtZaCUKmMXOuLzePjS HdmnVykp7ZJCQchy1ch/fxLxLFa1oshjcuml3TIkWHkj0r5I7vKNvzWuGF+9mLHw439L LJ0sW4yRGvI/ITIGNNDizv9Ro7MXW4L5FqaeWskIafvndUP6Y5T3hjAyllSruKTFvifC DzOmLzGvxJGdD/eF7lN4rWPD1Duazy6adWHh75Yo0qGgj7ooSV6VQCPnshybqFvHvA0S 9PIqaGL8OKEZD4BLa2CYnC3gv7B5Y7Csr+ZHvJetz1ubJWZZ3MIASxelv4UlVGs1MvgN n2/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ta23YM4b; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si3680837pgc.766.2017.10.26.10.50.17; Thu, 26 Oct 2017 10:50:31 -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=@google.com header.s=20161025 header.b=Ta23YM4b; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932427AbdJZRt4 (ORCPT + 99 others); Thu, 26 Oct 2017 13:49:56 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:54457 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932291AbdJZRtx (ORCPT ); Thu, 26 Oct 2017 13:49:53 -0400 Received: by mail-wm0-f46.google.com with SMTP id r68so9905525wmr.3 for ; Thu, 26 Oct 2017 10:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bvvfhmr++JxzS7frFTrAvWfS0TgCZFZzeWT7UTcnNuA=; b=Ta23YM4bDNLD+WQw9YRoQofovhJw9IyRZLlSSsq/RiN2KVsZnKziPoPJwH+mc2U8cv 5iEn0kLAf7vGqu1fc/ja+j0/E291kxfvwRn9bgpgoKCUYEt3R3fOvwfjIQfw4ra8Bo93 aV/8jy7rphPeYmpL1F9J9vQVnTPiJtvvlrMAbP7oDipcrgZ+Sr7xLzllJOBBWJ2evNBP /tcg+vS72J9QxCEO0DoULQr9xQBU1paHRUjEXQs10EK/i/n20eoInphe4/3eS3XAltAb 4ImgPu0Ifqp1PhRV6wboXAVeiGCobvCK6ofvZXq+sinyYg4wfxxkKiKlkLrg+bOlACso 7nlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bvvfhmr++JxzS7frFTrAvWfS0TgCZFZzeWT7UTcnNuA=; b=e8pb1fMJrQsR7BUtXhDuKIv9boT5sodTk62vPBtLy/P3GAuIJ2R4JUUzLYpNkZynll Kr6uL4/XQrmforvOy/A3zVHHROlXn+FBiBSKOpeppFE133K+IwxSErNnINUUVu50XtHg LiLGvlUmoF/sNZiVBOSMZi651EYdN/UCKQcCR5+ruP7NcpBDis3wqj4KEBgTKZIZDO2n sKEkXT+ez3biaj4naV1uobV6Y94S75l61jeWJxQhO/rMmCfhVh8x6lQR0mZGCyd86EhM dbdYh93F5ujsMkT1QdxZBEPc9ZxNrFffwgJTydKDBJeAjv9z+wJcvUwi6s7P+p55rf2y naCQ== X-Gm-Message-State: AMCzsaWIRu+Lh/cF5/YuZmIDJT+zTmvvx/I/S12qt9sP91kfJUKWYDn7 O6cE4YJ1CbItxmWt+yZLCAJTG4NmcId2ewOeXO3I1w== X-Received: by 10.28.94.3 with SMTP id s3mr2384952wmb.78.1509040192352; Thu, 26 Oct 2017 10:49:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.176.4 with HTTP; Thu, 26 Oct 2017 10:49:50 -0700 (PDT) In-Reply-To: <20171026163911.dnovh4zaik5qumtt@gmail.com> References: <20171024024439.u3ywfgvi67fe4mbg@wfg-t540p.sh.intel.com> <440615a7-6cc0-a607-ce7c-22a34b69e8fe@eikelenboom.it> <1d203c07-0595-a33a-620b-c51eea9721d1@eikelenboom.it> <8721eeac-a644-e815-55e9-5f01956dd22a@eikelenboom.it> <20171026163911.dnovh4zaik5qumtt@gmail.com> From: Craig Bergstrom Date: Thu, 26 Oct 2017 11:49:50 -0600 Message-ID: Subject: Re: ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79! To: Ingo Molnar Cc: Sander Eikelenboom , Boris Ostrovsky , Fengguang Wu , wfg@linux.intel.com, linux-kernel@vger.kernel.org, LKP , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sander, thanks for the details, they've been very useful. I suspect that your host system's mem=2048M parameter is causing the problem. Any chance you can confirm by removing the parameter and running the guest code path? More specifically, since you're telling the kernel that it's high memory address is at 2048M and your device is at 0xfe1fe000 (~4G), the new mmap() limits are preventing you from mapping addresses that are explicitly disallowed by the parameter. On Thu, Oct 26, 2017 at 10:39 AM, Ingo Molnar wrote: > > * Craig Bergstrom wrote: > >> Yes, not much time left for 4.14, it might be reasonable to pull the >> change out since it's causing problems. [...] > > Ok, I'll queue up a revert tomorrow morning and send it to Linus ASAP if there's > no good fix by then. In hindsight I should have queued it for v4.15 ... > > Thanks, > > Ingo From 1582339026935016708@xxx Thu Oct 26 16:41:29 +0000 2017 X-GM-THRID: 1582105239086831553 X-Gmail-Labels: Inbox,Category Forums