Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753763Ab1EWVdk (ORCPT ); Mon, 23 May 2011 17:33:40 -0400 Received: from mga03.intel.com ([143.182.124.21]:37631 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751614Ab1EWVdj convert rfc822-to-8bit (ORCPT ); Mon, 23 May 2011 17:33:39 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,258,1304319600"; d="scan'208";a="87678" From: "Yu, Fenghua" To: "Rafael J. Wysocki" CC: Parag Warudkar , Linus Torvalds , "H. Peter Anvin" , Ingo Molnar , Dmitry Torokhov , "linux-kernel@vger.kernel.org" Date: Mon, 23 May 2011 14:31:24 -0700 Subject: RE: Resume Issues :Exec of NX page, Synaptics Botchup Thread-Topic: Resume Issues :Exec of NX page, Synaptics Botchup Thread-Index: AcwZj4QPbeNgZdRiRgiV5SGW0nemTgAASCSw Message-ID: <493994B35A117E4F832F97C4719C4C04011E134650@orsmsx505.amr.corp.intel.com> References: <201105230041.14729.rjw@sisk.pl> <493994B35A117E4F832F97C4719C4C04011E13400F@orsmsx505.amr.corp.intel.com> <201105232322.37991.rjw@sisk.pl> In-Reply-To: <201105232322.37991.rjw@sisk.pl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2906 Lines: 83 > On Monday, May 23, 2011, Yu, Fenghua wrote: > > > On Monday, May 23, 2011, Parag Warudkar wrote: > > > > > > > > On Sun, 22 May 2011, Linus Torvalds wrote: > > > > > > > > > > > > > > Hmm. The "Code: " line is just full of complete garbage, so I > think > > > > > the real issue is that you really are trying to execute data. > > > > > > > > > > And that in turn seems to be because "setup_disablecpuid()" has > > > > > actually been free'd, because it is marked as __init. > > > > > > > > > > Which is fine at the initial bootup, but not so fine at resume > > > time, > > > > > since it was free'd long long ago by then. > > > > > > > > > > And it definitely shouldn' t be called at resume time. There's > > > > > something wrong there. That call trace is odd: > > > > > > > > > > Call Trace: > > > > > [] ? identify_cpu+0xd8/0x2d8 > > > > > [] identify_secondary_cpu+0x14/0x1b > > > > > [] smp_store_cpu_info+0x3c/0x3e > > > > > [] start_secondary+0xf7/0x1d2 > > > > > > > > > > because none of those should be calling "setup_disablecpuid()" > at > > > all. > > > > > > > > > > Hmm. In fact, RIP is "setup_disablecpuid+0x40/0x40", ie it is > one > > > past > > > > > the _end_ of setup_disablecpuid. > > > > > > > > > > I suspect that is actually "setup_smep()" that got called, an > dthat > > > > > there was some garbage data in there that caused it to jump > back a > > > > > bit. > > > > > > > > > > Does the attached patch fix it? > > > > > > > > > > > > > Now I get a different call trace for the same NX error. (And > > > Synaptics is > > > > completely dead this time - not attributable to the patch, it was > > > dumb > > > > luck perhaps that it wored last time.) > > > > > > Any chance to try with commit > de5397ad5b9ad22e2401c4dacdf1bb3b19c05679 > > > (x86, cpu: Enable/disable Supervisor Mode Execution Protection) > > > reverted? > > > > > > Rafael > > > > de5397ad5b9ad22e2401c4dacdf1bb3b19c05679 shouldn't affect a system > unless the CPU has SMEP feature which is unlikely available out there. > > > > You can check if your CPU has "smep" feature in /proc/cpuinfo. > Unlikely you will see the feature on your machine. Then the commit > shouldn't cause the problem. > > > > You can unconditionally disable SMEP by kernel option "nosmep". > > Still, it is known to cause problems to people (see for example > https://bugzilla.kernel.org/show_bug.cgi?id=35602), so it might be a > good idea to set "nosmep" by default. > > Thanks, > Rafael See if commit 1d487624fcc17a40aa67acaa9e8f3815fb7cd0f0 in latest Linus' tree fixes the issue. Thanks. -Fenghua -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/