Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8762220ybi; Tue, 9 Jul 2019 22:45:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR5rStlC0SPbFX5HXsFBUiU9chJ4S9r8POK0vEUYz9UG6nR20NoFtLcZeuLMIOj9FVPIKh X-Received: by 2002:a63:5212:: with SMTP id g18mr33791762pgb.387.1562737507026; Tue, 09 Jul 2019 22:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562737507; cv=none; d=google.com; s=arc-20160816; b=w4CW6xexVMowK7yCtOz1tsKKQAhC7hUGRCrOMdeK5CsP1/JzoFMpH4CePP8k8Vom66 yOcsCIdRVNT2UuzCzeNt+WrAvOQrUnwoSIY/dHmYQ5PQR5Pq8o1zC38k7XrOxv4awBiW Jpz+DLuEp8ciD9lB3SfHnsI0dfT7305SggD/UZBLiyb0VGPRYpQfTJ/NE6XBDn3iMRWq YZC/+bvTDU3wNyRI+4LmXkOkuREKcFiuy1uV5zegxaPhoRKcLHtE9RphF6Pr2onVr0Zg eU5go5NqgjdC1jRszdoR7mwViNNa3TRMgGrmGSUudR1GfKKxQuiaS006p+Aq3cFM8sfQ OYpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:date:cc:to:from :subject:message-id:dkim-signature; bh=GRrheC6yZnCgSZrciA+fCazzXFyCSHlC1LBmIR19mkE=; b=DfN3e9muIDdwxdZJxVYRs4mY+d1qKAm/eYkYLBawy+TXyOB2OQ1265IhMHypTT1yP9 +b5nB/0YqsyBB7iaRifVLTr3UVpUB6wi+ej6vk5o3dWa/15FDaipIik9mPGveQ86KJhX mtu9Z6DewihAPCT7aUmXaDIjcoD7ezHtbXXNa8kONIZLQiCQ83gxFRJLvU3KMvR+fvgs nQ5z6aw/2QLzKFvRpsqwri/woJU++Hn4EpVPO/1VA/yuAEbAqKPhgLQMGECT0oNzCUBm yDKIhBbaW4WwbWYZ87a0Y70Vd13yJs7Nq+de4Jp9isfK6RHxjSbIZsJfzmQPcA/9nfKo SfTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mengyan1223.wang header.s=mail header.b=Rz+8KWX7; 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=mengyan1223.wang Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 79si1152082pga.276.2019.07.09.22.44.51; Tue, 09 Jul 2019 22:45:07 -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=@mengyan1223.wang header.s=mail header.b=Rz+8KWX7; 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=mengyan1223.wang Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbfGJFo1 (ORCPT + 99 others); Wed, 10 Jul 2019 01:44:27 -0400 Received: from mengyan1223.wang ([89.208.246.23]:37690 "EHLO mengyan1223.wang" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbfGJFo0 (ORCPT ); Wed, 10 Jul 2019 01:44:26 -0400 Received: from xry111-laptop.lan (unknown [IPv6:2001:250:1006:dff0:7508:eb03:297c:cb52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: xry111@mengyan1223.wang) by mengyan1223.wang (Postfix) with ESMTPSA id 6C33565B54; Wed, 10 Jul 2019 01:44:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mengyan1223.wang; s=mail; t=1562737465; bh=GRrheC6yZnCgSZrciA+fCazzXFyCSHlC1LBmIR19mkE=; h=Subject:From:To:Cc:Date:From; b=Rz+8KWX7f0FdUlr+XjwifZ/ttPMAjn4MbNQ/tnEa8I8DF17+ZC28IbqW87nkEt41N l8FVK+E1CF31SUbumpRccJWXFUk+gN2I0WlJv+sh7CmO/G2JopQNvqN7kyoUN/bPPg EeWP6/fPByE2hcC4AcTtFLi0Ai6ZjnBtnYm+6vvebiVUwWNnQRerzZJvTMZd/ZUTZw lHcLxyVOusWTvqbESVrQQLVJQ7qO7+I25zBf4PUFus/7vJ/nt+DRb3F7rLP2JQbtfF zAA9YrjGBm7Q0GE/a6RbFTYknTb7XPMTdIBafz31ELkMJynrpQnjTpoUceHhyaLWcI b1Pt90gwSAqCw== Message-ID: Subject: kernel oops loading i915 after "x86/asm: Pin sensitive CR4 bits" (873d50d58) From: Xi Ruoyao To: Kees Cook , Jani Nikula , David Airlie , Jessica Yu Cc: kernel-hardening@lists.openwall.com, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 10 Jul 2019 13:44:17 +0800 Content-Type: multipart/mixed; boundary="=-8sC1bMl1WM6oK8eaXuPt" User-Agent: Evolution 3.32.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-8sC1bMl1WM6oK8eaXuPt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hello, When I try to build and run the latest mainline kernel, it Oops loading i915 module: BUG: unable to handle page fault for address: ffffffff9edc1598 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD 1a20c067 P4D 1a20c067 PUD 1a20d063 PMD 8000000019e000e1 Oops: 0003 [#1] SMP PTI The complete log is attached. Bisection tells "x86/asm: Pin sensitive CR4 bits" (873d50d58) is the first "bad" commit. I can revert it and also "x86/asm: Pin sensitive CR0 bits" (8dbec27a2) to make the kernel "seems to" work. I'm not a kernel expert so I can't tell if there is a bug in Kees' patch, or his patch exploits a bug in i915 or module loader. My CPU is an i3-3217u. If a kdump is helpful I'll try to gather it. -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University --=-8sC1bMl1WM6oK8eaXuPt Content-Disposition: attachment; filename="log" Content-Type: text/plain; name="log"; charset="UTF-8" Content-Transfer-Encoding: base64 SnVsIDEwIDEyOjU4OjUyIHhyeTExMS1sYXB0b3Aga2VybmVsOiBCVUc6IHVuYWJsZSB0byBoYW5k bGUgcGFnZSBmYXVsdCBmb3IgYWRkcmVzczogZmZmZmZmZmY5ZWRjMTU5OApKdWwgMTAgMTI6NTg6 NTIgeHJ5MTExLWxhcHRvcCBrZXJuZWw6ICNQRjogc3VwZXJ2aXNvciB3cml0ZSBhY2Nlc3MgaW4g a2VybmVsIG1vZGUKSnVsIDEwIDEyOjU4OjUyIHhyeTExMS1sYXB0b3Aga2VybmVsOiAjUEY6IGVy cm9yX2NvZGUoMHgwMDAzKSAtIHBlcm1pc3Npb25zIHZpb2xhdGlvbgpKdWwgMTAgMTI6NTg6NTIg eHJ5MTExLWxhcHRvcCBrZXJuZWw6IFBHRCAxYTIwYzA2NyBQNEQgMWEyMGMwNjcgUFVEIDFhMjBk MDYzIFBNRCA4MDAwMDAwMDE5ZTAwMGUxIApKdWwgMTAgMTI6NTg6NTIgeHJ5MTExLWxhcHRvcCBr ZXJuZWw6IE9vcHM6IDAwMDMgWyMxXSBTTVAgUFRJCkp1bCAxMCAxMjo1ODo1MiB4cnkxMTEtbGFw dG9wIGtlcm5lbDogQ1BVOiAyIFBJRDogMTUxIENvbW06IHN5c3RlbWQtdWRldmQgTm90IHRhaW50 ZWQgNS4yLjArICM1NApKdWwgMTAgMTI6NTg6NTIgeHJ5MTExLWxhcHRvcCBrZXJuZWw6IEhhcmR3 YXJlIG5hbWU6IExFTk9WTyAyMDE3NS9JTlZBT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