Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756316Ab2HPR1R (ORCPT ); Thu, 16 Aug 2012 13:27:17 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:37672 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754333Ab2HPR1P (ORCPT ); Thu, 16 Aug 2012 13:27:15 -0400 Date: Thu, 16 Aug 2012 10:27:11 -0700 From: Greg Kroah-Hartman To: Fengguang Wu Cc: Cornelia Huck , devel@driverdev.osuosl.org, Kay Sievers , Alan Stern , LKML Subject: Re: show_uevent() and general protection fault Message-ID: <20120816172711.GB27415@kroah.com> References: <20120713083140.GA19738@localhost> <20120713084616.GA20037@localhost> <20120717013342.GD21914@kroah.com> <20120718051552.GA9124@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120718051552.GA9124@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2730 Lines: 60 On Wed, Jul 18, 2012 at 01:15:52PM +0800, Fengguang Wu wrote: > On Mon, Jul 16, 2012 at 06:33:42PM -0700, Greg Kroah-Hartman wrote: > > On Fri, Jul 13, 2012 at 04:46:16PM +0800, Fengguang Wu wrote: > > > This is another kconfig, produced a bit different call trace, however > > > also related to sysfs_read_file(). > > > > Any hint as to which file is being read? > > Good idea! I added this debugging aid: > > --- a/fs/sysfs/file.c > +++ b/fs/sysfs/file.c > @@ -129,6 +129,11 @@ sysfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) > { > struct sysfs_buffer * buffer = file->private_data; > ssize_t retval = 0; > + char pathname[300], *path; > + > + path = d_path(&(file->f_path), pathname, sizeof(pathname)); > + if (!IS_ERR(path)) > + printk("%s\n", path); > > mutex_lock(&buffer->mutex); > if (buffer->needs_read_fill || *ppos == 0) { > > And find some sysfs files that triggered the errors: > > wfg@waimea ~/kvm% grep -hB1 'kernel paging request' /tmp/dmesg-kvm_bisect-waimea-*|grep /sys/ > [ 28.995741] /sys/module/tpm_tis/parameters/hid > [ 60.885798] /sys/module/tpm_tis/parameters/hid > > wfg@waimea ~/kvm% grep -hB1 'general protection fault' /tmp/dmesg-kvm_bisect-waimea-*|grep -o /sys/.* | sort -u > /sys/devices/LNXSYSTM:00/device:00/PNP0103:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:21/PNP0303:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:21/PNP0400:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:21/PNP0501:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:21/PNP0700:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:21/PNP0B00:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:21/PNP0F13:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0C0F:00/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0C0F:01/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0C0F:02/uevent > /sys/devices/LNXSYSTM:00/device:00/PNP0C0F:03/uevent > /sys/devices/LNXSYSTM:00/LNXCPU:00/uevent > /sys/devices/LNXSYSTM:00/LNXCPU:01/uevent > /sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0/uevent > /sys/devices/LNXSYSTM:00/LNXPWRBN:00/uevent > /sys/devices/LNXSYSTM:00/uevent > /sys/devices/platform/i8042/serio0/input/input1/uevent This is odd, I can't duplicate it at all, is it still showing up for you? greg k-h -- 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/