mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Mike Galbraith <efault@gmx.de>
Cc: Greg KH <gregkh@suse.de>, "Martin J. Bligh" <mbligh@google.com>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Andy Whitcroft <apw@shadowen.org>,
	linux-kernel@vger.kernel.org, Steve Fox <drfickle@us.ibm.com>
Subject: Re: 2.6.19-rc3-mm1 -- missing network adaptors
Date: Tue, 31 Oct 2006 21:25:08 -0800	[thread overview]
Message-ID: <20061031212508.1b116655.akpm@osdl.org> (raw)
In-Reply-To: <1162356198.6105.18.camel@Homer.simpson.net>

On Wed, 01 Nov 2006 05:43:18 +0100
Mike Galbraith <efault@gmx.de> wrote:

> On Tue, 2006-10-31 at 19:14 +0100, Mike Galbraith wrote:
> 
> > Seems it's driver-core-fixes-sysfs_create_link-retval-checks-in.patch
> > 
> > Tomorrow, I'll revert that alone from 2.6.19-rc3-mm1 to confirm...
> 
> Confirmed.  Boots fine with that patch reverted.

Could you test with something like this applied?

diff -puN drivers/base/core.c~driver-core-fixes-sysfs_create_link-retval-checks-in-debug drivers/base/core.c
--- a/drivers/base/core.c~driver-core-fixes-sysfs_create_link-retval-checks-in-debug
+++ a/drivers/base/core.c
@@ -24,6 +24,8 @@
 #include "base.h"
 #include "power/power.h"
 
+#define DB() printk(KERN_ERR "sysfs failure at %s:%d\n", __FILE__, __LINE__)
+
 int (*platform_notify)(struct device * dev) = NULL;
 int (*platform_notify_remove)(struct device * dev) = NULL;
 
@@ -373,30 +375,39 @@ static int device_add_class_symlinks(str
 		return 0;
 	error = sysfs_create_link(&dev->kobj, &dev->class->subsys.kset.kobj,
 				  "subsystem");
-	if (error)
+	if (error) {
+		DB();
 		goto out;
+	}
 	error = sysfs_create_link(&dev->class->subsys.kset.kobj, &dev->kobj,
 				  dev->bus_id);
-	if (error)
+	if (error) {
+		DB();
 		goto out_subsys;
+	}
 #ifdef CONFIG_SYSFS_DEPRECATED
 	if (dev->parent) {
 		char *class_name;
 
 		error = sysfs_create_link(&dev->kobj, &dev->parent->kobj,
 					  "device");
-		if (error)
+		if (error) {
+			DB();
 			goto out_busid;
+		}
 		class_name = make_class_name(dev->class->name, &dev->kobj);
 		if (!class_name) {
+			DB();
 			error = -ENOMEM;
 			goto out_busid;
 		}
 		error = sysfs_create_link(&dev->parent->kobj, &dev->kobj,
 					  class_name);
 		kfree(class_name);
-		if (error)
+		if (error) {
+			DB();
 			goto out_device;
+		}
 	}
 #endif
 	return 0;
@@ -574,8 +585,10 @@ int device_add(struct device *dev)
 		dev->devt_attr = attr;
 	}
 
-	if ((error = device_add_class_symlinks(dev)))
+	if ((error = device_add_class_symlinks(dev))) {
+		DB();
 		goto SymlinkError;
+	}
 	if ((error = device_add_attrs(dev)))
 		goto AttrsError;
 	if ((error = device_add_groups(dev)))
@@ -941,6 +954,7 @@ int device_rename(struct device *dev, ch
 
 	error = kobject_rename(&dev->kobj, new_name);
 	if (error) {
+		DB();
 		strlcpy(dev->bus_id, old_device_name, BUS_ID_SIZE);
 		goto out;
 	}
@@ -951,8 +965,10 @@ int device_rename(struct device *dev, ch
 		if (new_class_name) {
 			error = sysfs_create_link(&dev->parent->kobj,
 						  &dev->kobj, new_class_name);
-			if (error)
+			if (error) {
+				DB();
 				goto out;
+			}
 			sysfs_remove_link(&dev->parent->kobj, old_class_name);
 		}
 	}
_

> I'm getting a slew of....
> BUG: atomic counter underflow at:
>  [<c0104282>] dump_trace+0x1b7/0x1e6
>  [<c01042cb>] show_trace_log_lvl+0x1a/0x30
>  [<c010495f>] show_trace+0x12/0x14
>  [<c01049e6>] dump_stack+0x16/0x18
>  [<c01b5262>] sysfs_d_iput+0x68/0x96
>  [<c01860de>] dentry_iput+0x5d/0xb1
>  [<c0186f25>] dput+0xd2/0x133
>  [<c01b4f45>] sysfs_remove_dir+0xd2/0x120
>  [<c02d59e4>] kobject_del+0xb/0x15
>  [<c03612f1>] device_del+0x199/0x1b0
>  [<c0361313>] device_unregister+0xb/0x15
>  [<c03613a2>] device_destroy+0x85/0x8e
>  [<c033e827>] vcs_remove_sysfs+0x1c/0x38
>  [<c034414d>] con_close+0x5e/0x6b
>  [<c0336bca>] release_dev+0x13d/0x65b
>  [<c03370fa>] tty_release+0x12/0x1c
>  [<c0176bad>] __fput+0xab/0x1d8
>  [<c0176dd8>] fput+0x22/0x3b
>  [<c0174314>] filp_close+0x41/0x67
>  [<c01753e8>] sys_close+0x6e/0xb6
>  [<c010317c>] syscall_call+0x7/0xb
>  [<0805cdc7>] 0x805cdc7
>  =======================
> ...with 2.6.19-rc3-mm1 with the patch reverted, which I did not get with
> the patched up 2.6.19-rc3, but it does boot and run without exploding.

Hopefully that's due to the cherry-unpicking of this patch..


  reply	other threads:[~2006-11-01  5:26 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-30  0:00 2.6.19-rc3-mm1 Andrew Morton
2006-10-30  2:50 ` 2.6.19-rc3-mm1 Dave Jones
2006-10-30  3:54   ` 2.6.19-rc3-mm1 Greg KH
2006-10-30  5:16     ` 2.6.19-rc3-mm1 Andrew Morton
2006-10-30  5:56       ` 2.6.19-rc3-mm1 Greg KH
2006-10-30 19:55       ` 2.6.19-rc3-mm1 - ATI SATA controller not detected Rafael J. Wysocki
2006-10-30 20:04         ` Greg KH
2006-10-30 20:15           ` 2.6.19-rc3-mm1 - udev doesn't work (was: ATI SATA controller not detected) Rafael J. Wysocki
2006-10-30 20:22             ` Greg KH
2006-10-30 20:48               ` Rafael J. Wysocki
2006-10-30 20:57                 ` Greg KH
2006-10-31  0:19                   ` Rafael J. Wysocki
2006-10-31  7:29                   ` Rafael J. Wysocki
2006-10-31  7:40                     ` Andrew Morton
2006-10-31  7:48                       ` Rafael J. Wysocki
2006-10-31  7:58                         ` Andrew Morton
2006-11-02  2:29                           ` 2.6.19-rc3-mm1 - udev doesn't work Andy Whitcroft
2006-10-30 20:36             ` Jeff Garzik
2006-10-30 20:45               ` Rafael J. Wysocki
2006-10-30 10:36 ` 2.6.19-rc3-mm1 Reuben Farrelly
2006-10-30 16:53   ` 2.6.19-rc3-mm1 Om Narasimhan
2006-10-30 15:25 ` 2.6.19-rc3-mm1 -- missing network adaptors Andy Whitcroft
2006-10-30 15:47   ` Martin J. Bligh
2006-10-30 16:47     ` Andrew Morton
2006-10-30 17:09       ` Martin Bligh
2006-10-30 17:21         ` Andy Whitcroft
2006-10-30 20:14           ` Cornelia Huck
2006-10-31  6:30             ` Mike Galbraith
2006-10-31  6:37               ` Martin J. Bligh
2006-10-31  6:54                 ` Mike Galbraith
2006-10-31  7:13                   ` Greg KH
2006-10-31  7:15                     ` Mike Galbraith
2006-10-31  7:21                       ` Greg KH
2006-10-31  7:31                         ` Mike Galbraith
2006-10-31  8:03                           ` Mike Galbraith
2006-10-31 19:07                             ` Greg KH
2006-10-31  6:59                 ` Greg KH
2006-10-31  7:09                   ` Mike Galbraith
2006-10-31  7:22                     ` Greg KH
2006-10-31 16:28                       ` Mike Galbraith
2006-10-31 18:14                         ` Mike Galbraith
2006-11-01  4:43                           ` Mike Galbraith
2006-11-01  5:25                             ` Andrew Morton [this message]
2006-11-01  6:12                               ` Mike Galbraith
2006-11-01  7:43                                 ` Mike Galbraith
2006-11-01  9:26                                 ` Mike Galbraith
2006-11-01 18:48                                   ` Andrew Morton
2006-11-01 20:13                                     ` Greg KH
2006-11-01 21:15                                     ` Mike Galbraith
2006-10-31  7:30                   ` Martin J. Bligh
2006-10-31  7:58                     ` Greg KH
2006-10-31 15:52                       ` Martin J. Bligh
2006-10-31 16:46                         ` Cornelia Huck
2006-10-31 17:09                           ` Martin J. Bligh
2006-10-31 17:29                             ` Cornelia Huck
2006-10-31 17:55                               ` Andy Whitcroft
2006-11-01  1:39                               ` Martin Bligh
2006-11-01  2:08                                 ` Greg KH
2006-11-01  2:11                                   ` Martin Bligh
2006-11-01 16:43                                     ` Greg KH
2006-11-02  5:24                                     ` Greg KH
2006-11-02  5:26                                       ` Martin J. Bligh
2006-11-02  5:49                                         ` Greg KH
2006-11-02  5:54                                         ` Mike Galbraith
2006-11-02  6:02                                         ` Greg KH
2006-11-02  6:07                                           ` Andrew Morton
2006-11-02  6:42                                             ` Greg KH
2006-11-02  6:49                                               ` Andrew Morton
2006-11-02  6:56                                                 ` Greg KH
2006-11-02  9:22                                                   ` Andy Whitcroft
2006-11-02 10:26                                                   ` Cornelia Huck
2006-11-03  0:57                                                     ` Greg KH
2006-11-02  6:32                                           ` Martin J. Bligh
2006-11-02  6:41                                             ` Andrew Morton
2006-11-01 10:00                                   ` Andy Whitcroft
2006-10-31 21:31                           ` Greg KH
2006-11-01  4:44                             ` Mike Galbraith
2006-10-31  7:36                   ` Mike Galbraith
2006-10-31  8:03             ` Cornelia Huck
2006-10-30 20:38           ` Andy Whitcroft
2006-10-31  1:03             ` Andy Whitcroft
2006-10-31  1:26 ` [2.6.19-rc3-mm1] BUG at arch/i386/mm/pageattr.c:165 Andrew James Wade
2006-10-31  2:04   ` Andrew Morton
2006-10-31  3:03     ` Andrew James Wade
2006-10-31  3:13       ` Andrew Morton
2006-10-31  3:58         ` Andrew James Wade
2006-10-31  4:11           ` Andrew Morton
2006-10-31  4:20             ` Greg KH
2006-10-31  5:09               ` Andrew James Wade
2006-11-01 16:25                 ` Andrew James Wade
2006-10-31  5:10           ` Andrew Morton
2006-10-31  6:31             ` Mike Galbraith
2006-10-31  7:03             ` Greg KH
2006-10-31  7:34               ` Andrew Morton
2006-10-31  7:48                 ` Andrew Morton
2006-10-31  8:01                 ` Greg KH
2006-10-31  8:12                   ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061031212508.1b116655.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=apw@shadowen.org \
    --cc=cornelia.huck@de.ibm.com \
    --cc=drfickle@us.ibm.com \
    --cc=efault@gmx.de \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome