lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120816172711.GB27415@kroah.com>
Date:	Thu, 16 Aug 2012 10:27:11 -0700
From:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To:	Fengguang Wu <fengguang.wu@...el.com>
Cc:	Cornelia Huck <cornelia.huck@...ibm.com>,
	devel@...verdev.osuosl.org, Kay Sievers <kay.sievers@...y.org>,
	Alan Stern <stern@...land.harvard.edu>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: show_uevent() and general protection fault

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@...mea ~/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@...mea ~/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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ