Received: by 10.192.165.156 with SMTP id m28csp916427imm; Mon, 16 Apr 2018 10:45:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YH/9KIaCjzKZ5JrMz7rkDctlJhskVSm69aOXkNp3DnLBlEU4e7AhAwGiJ1Xnyij3xEea4 X-Received: by 10.99.95.79 with SMTP id t76mr5950210pgb.108.1523900705566; Mon, 16 Apr 2018 10:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523900705; cv=none; d=google.com; s=arc-20160816; b=CaUIcFgbQT+xBc8KfrCR4Qx6KvYnzVBoMjhePYpBynPw69S1e7RfgVfWUdkB3Kw5Sw RtFXpQTkmwWQb1k1IVX9oqWlB70cd9yohseN9blq2kaHOkKzcDrhw+pco4ZUBHyCAqV/ v7yBhzXgxt1xUaC46XHk98nEhae1BEOs4skwhNAgffDfEaMp28nHojEqbZORthXojLip y+BCwPRbMIFHSFDR157WtBr82u0voH5M24NBRJmDx+y/e86UX0EeRR+Rd3AHZVHJH7pi O6MQUbsR+YXlWBEa4EIOjvDhDuclaEz4ovs+hxWKLX0/h8seurey1Mj0KsMZxAn6x81t yPqQ== 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:dkim-signature :arc-authentication-results; bh=QIba5sAwcLyEyDESYLjun6T2sBIqBXsQvWS8o7uwoMk=; b=s+VRwKhI94+dNRhCJT4jyH9wq6NbJmC87FJXb+Ah1L9t0u9jNRCpQ5R94u/RcBK83q 1vATZfluJx3B7CxRxx/vM1EoLEehcrtmt/J06oG6tg2NehAzA+yxehFU8eaCFy2SnEj5 iaobZQTAuiFoadF3cMz9r1BoSHtvLxSoGMT/K5cN3rkY4G4Y19Mrp9Gi/0nxiHTF5gDn SR2+7DYLSyiQgdwguAE0iSjHFX+segvqvSRw5EG+Jd3ZpX/ua3+XoJuUFeAdkRg3ZOog c8Hokq06HkCUrf4cy1QtLHKxvCYCBO1WhSX7JVx3iGXVFxB39GSUV6JXrvJQ0WDLZosT UnUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=e2DGUJCa; dkim=fail header.i=@linux-foundation.org header.s=google header.b=ZD1TK/CV; 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 m12si9595650pgp.528.2018.04.16.10.44.51; Mon, 16 Apr 2018 10:45:05 -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=fail header.i=@gmail.com header.s=20161025 header.b=e2DGUJCa; dkim=fail header.i=@linux-foundation.org header.s=google header.b=ZD1TK/CV; 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 S1753097AbeDPRnL (ORCPT + 99 others); Mon, 16 Apr 2018 13:43:11 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:45508 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752776AbeDPRnJ (ORCPT ); Mon, 16 Apr 2018 13:43:09 -0400 Received: by mail-io0-f170.google.com with SMTP id a7so3167680ioc.12; Mon, 16 Apr 2018 10:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QIba5sAwcLyEyDESYLjun6T2sBIqBXsQvWS8o7uwoMk=; b=e2DGUJCasaJShXVDMQBF4vKZ7JmI8whWqY+e5kam1kSnp2Bj4Is6chrA+K5oJ/H1Vo H9kUYltDpBrwr67J0hVpgJZlWGX9oGqmRq6HfiSoeuyZyKFqqxnUM9fsT8oZS1Oh7m8a 8HXvj/bvSSRsxObuyqylDQc711qJfaWQxGZ8+ZI2+C/oZJKs/WEdXzK7+2Ab06pOYJq2 jBP9+aojjyMRbjH537GrUgXSQmgjdYiwUTB7H/zw0nNKL6p6LOmq/9EqD/XeRpGziSql KvSGuNki5q75eODdQfdSfr8npGUNQAoXj51ELMaDwODoNuJh1YgAcrPOrxpw3b8LMUYz 6QdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QIba5sAwcLyEyDESYLjun6T2sBIqBXsQvWS8o7uwoMk=; b=ZD1TK/CVZbvgkMxSPxCJY6k4NnF7T4pYxDTP0CZ8p4aTZ6vnnzo67+NGtvjyPR/hUn fg5pbzkJwbBjjmYLk+YOzshJDUiFIhmKoOuhk5kW78vF8R1nkpBbD3a5lum228Ijy3iS K2S2pU5zJoNdjdcQaFuXJFYW9YVHNtnO8Xt5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=QIba5sAwcLyEyDESYLjun6T2sBIqBXsQvWS8o7uwoMk=; b=bprGmIWYqTEchzAACbVpz+rE2Kgig+rKPoCy3+w9xDtYolPj1xV8CFVQd99lGecAuF FXUtbdNqQWK9v+aYzKnJdrjFJxpHr4woAft8afVIh0KBtct64agaMF7vNIDqqKiPcu50 9/sk0R+EKn5cTJeGyND7Por+u2vSVJxKaX9yZJoD+5cgfhroQQxP4cj6Eymiu/BJV6rX ECK9h4GXRQTK3RtQRqnO20eZQ4ZCiI6dppoQJzOZilW90rKAZTxJMsyB8D3AtuhNyq2e EELVuI/8+e3sWBM+AQ3lH/HfFgmbDzcEU+ea5lru/23rAHkRBv4l6xokeW2mvMRl0A9u Q7lQ== X-Gm-Message-State: ALQs6tAkGZq3XwlpvLLwmgcXqc9SSQ57vT1HAT0kKdfDDknP50JVTaVG c9PzJ/oK8Ru2a4R7l6DH7juNBb0b1ecohS/kbdU= X-Received: by 10.107.175.219 with SMTP id p88mr24046204ioo.257.1523900588484; Mon, 16 Apr 2018 10:43:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Mon, 16 Apr 2018 10:43:07 -0700 (PDT) In-Reply-To: <1dcd116c-9384-6885-2d9e-f620c14bd955@osg.samsung.com> References: <1dcd116c-9384-6885-2d9e-f620c14bd955@osg.samsung.com> From: Linus Torvalds Date: Mon, 16 Apr 2018 10:43:07 -0700 X-Google-Sender-Auth: SGqIu3JshTG17HL6szwN1BrC0dc Message-ID: Subject: Re: Linux 4.17-rc1 - kernel paging errors running x86 selftests To: Shuah Khan Cc: Andy Lutomirski , Ingo Molnar , Greg Kroah-Hartman , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , "the arch/x86 maintainers" , "# .39.x" 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 On Mon, Apr 16, 2018 at 10:01 AM, Shuah Khan wrote: > > [ 884.496588] BUG: unable to handle kernel paging request at fffffe8000010030 This is the LDT remap area. > [ 884.496614] Oops: 0009 [#1] SMP KASAN PTI This is RSVD + P, so it's a system read access that got a protection fault due to reserved bits. > [ 884.496741] RIP: 0033:0x4031c2 > [ 884.496745] RSP: 002b:00007ffd805b56d8 EFLAGS: 00010246 This is not actually a kernel paging request, it's all user space, but it's user space that does a system access. That's normal - something loading a segment in user space, and thus accessing the system LDT. But: > [ 884.496601] PGD 372870067 P4D 372870067 PUD 346e84067 PMD 34005f067 PTE ffffffffffffffff WTF? What's that odd bogus PTE entry? That's also why it gets a RSVD fault. That's just garbage. All-ones is not a valid PTE. The other levels look valid, although it strikes me that maybe we shouldn't have the user bit set in the kernel page tables. I realize that we clear it at the leaf node, but.. So the user page table is somehow badly set up. I don't see *why* it would be badly set up, and that test works fine for me, though. It doesn't seem to have anything to do with KASAN, although > [ 884.650095] BUG: unable to handle kernel paging request at fffffe8000000000 > [ 884.650103] PGD 363699067 P4D 363699067 PUD 3371c6067 PMD 37cfbc067 PTE ffffffffffffffff > [ 884.650112] Oops: 0009 [#2] SMP KASAN PTI > [ 884.650200] RIP: 0033:0x401471 > [ 884.650203] RSP: 002b:00007fc8e6775eb0 EFLAGS: 00010206 The other one is exactly the same thing. Linus