All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Greg KH <greg@kroah.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>,
	"Mark M. Hoffman" <mhoffman@lightlink.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	lm-sensors@lm-sensors.org
Subject: Re: [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs
Date: Tue, 12 Feb 2008 15:37:33 +0000	[thread overview]
Message-ID: <20080212163733.461a8684@hyperion.delvare> (raw)
In-Reply-To: <20080212152715.GB19441@kroah.com>

On Tue, 12 Feb 2008 07:27:15 -0800, Greg KH wrote:
> On Tue, Feb 12, 2008 at 09:27:22AM +0100, Jean Delvare wrote:
> > Hi Yinghai,
> > 
> > On Mon, 11 Feb 2008 15:39:39 -0800, Yinghai Lu wrote:
> > > On Feb 10, 2008 10:01 AM, Jean Delvare <khali@linux-fr.org> wrote:
> > > > Yeah, I am an idiot. In 5b34dbcd88251508d02e48ad9b0f9b8232a13ee0 I
> > > > introduced two new sysfs file groups but forgot to NULL-terminate them.
> > > > Sorry about that, here's the fix:
> > > >
> > > > * * * * *
> > > >
> > > > The missing NULL at the end of two sysfs file groups causes a kernel
> > > > crash when calling sysfs_create_group().
> > > >
> > > > Signed-off-by: Jean Delvare <khali@linux-fr.org>
> > > > ---
> > > >  drivers/hwmon/adm1026.c |    2 ++
> > > >  1 file changed, 2 insertions(+)
> > > >
> > > > --- linux-2.6.25-rc0.orig/drivers/hwmon/adm1026.c       2008-02-10 11:21:54.000000000 +0100
> > > > +++ linux-2.6.25-rc0/drivers/hwmon/adm1026.c    2008-02-10 18:51:00.000000000 +0100
> > > > @@ -1624,6 +1624,7 @@ static struct attribute *adm1026_attribu
> > > >         &dev_attr_temp3_crit_enable.attr,
> > > >         &dev_attr_temp3_auto_point1_pwm.attr,
> > > >         &dev_attr_temp3_auto_point2_pwm.attr,
> > > > +       NULL
> > > >  };
> > > >
> > > >  static const struct attribute_group adm1026_group_temp3 = {
> > > > @@ -1639,6 +1640,7 @@ static struct attribute *adm1026_attribu
> > > >         &sensor_dev_attr_in9_max.dev_attr.attr,
> > > >         &sensor_dev_attr_in9_min.dev_attr.attr,
> > > >         &sensor_dev_attr_in9_alarm.dev_attr.attr,
> > > > +       NULL
> > > >  };
> > > >
> > > >  static const struct attribute_group adm1026_group_in8_9 = {
> > > >
> > > > * * * * *
> > > 
> > > it works. Thanks
> > 
> > Great, thanks. Mark, please include this patch in your next patch to
> > Linus for 2.6.25.
> 
> Can someone send it to stable@kernel.org also when it goes into Linus's
> tree, as it looks like a pretty bad thing :)

I certainly could, but then you would laugh at me because 2.6.24 isn't
affected by the bug.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

WARNING: multiple messages have this Message-ID (diff)
From: Jean Delvare <khali@linux-fr.org>
To: Greg KH <greg@kroah.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>,
	"Mark M. Hoffman" <mhoffman@lightlink.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	lm-sensors@lm-sensors.org
Subject: Re: [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026)
Date: Tue, 12 Feb 2008 16:37:33 +0100	[thread overview]
Message-ID: <20080212163733.461a8684@hyperion.delvare> (raw)
In-Reply-To: <20080212152715.GB19441@kroah.com>

On Tue, 12 Feb 2008 07:27:15 -0800, Greg KH wrote:
> On Tue, Feb 12, 2008 at 09:27:22AM +0100, Jean Delvare wrote:
> > Hi Yinghai,
> > 
> > On Mon, 11 Feb 2008 15:39:39 -0800, Yinghai Lu wrote:
> > > On Feb 10, 2008 10:01 AM, Jean Delvare <khali@linux-fr.org> wrote:
> > > > Yeah, I am an idiot. In 5b34dbcd88251508d02e48ad9b0f9b8232a13ee0 I
> > > > introduced two new sysfs file groups but forgot to NULL-terminate them.
> > > > Sorry about that, here's the fix:
> > > >
> > > > * * * * *
> > > >
> > > > The missing NULL at the end of two sysfs file groups causes a kernel
> > > > crash when calling sysfs_create_group().
> > > >
> > > > Signed-off-by: Jean Delvare <khali@linux-fr.org>
> > > > ---
> > > >  drivers/hwmon/adm1026.c |    2 ++
> > > >  1 file changed, 2 insertions(+)
> > > >
> > > > --- linux-2.6.25-rc0.orig/drivers/hwmon/adm1026.c       2008-02-10 11:21:54.000000000 +0100
> > > > +++ linux-2.6.25-rc0/drivers/hwmon/adm1026.c    2008-02-10 18:51:00.000000000 +0100
> > > > @@ -1624,6 +1624,7 @@ static struct attribute *adm1026_attribu
> > > >         &dev_attr_temp3_crit_enable.attr,
> > > >         &dev_attr_temp3_auto_point1_pwm.attr,
> > > >         &dev_attr_temp3_auto_point2_pwm.attr,
> > > > +       NULL
> > > >  };
> > > >
> > > >  static const struct attribute_group adm1026_group_temp3 = {
> > > > @@ -1639,6 +1640,7 @@ static struct attribute *adm1026_attribu
> > > >         &sensor_dev_attr_in9_max.dev_attr.attr,
> > > >         &sensor_dev_attr_in9_min.dev_attr.attr,
> > > >         &sensor_dev_attr_in9_alarm.dev_attr.attr,
> > > > +       NULL
> > > >  };
> > > >
> > > >  static const struct attribute_group adm1026_group_in8_9 = {
> > > >
> > > > * * * * *
> > > 
> > > it works. Thanks
> > 
> > Great, thanks. Mark, please include this patch in your next patch to
> > Linus for 2.6.25.
> 
> Can someone send it to stable@kernel.org also when it goes into Linus's
> tree, as it looks like a pretty bad thing :)

I certainly could, but then you would laugh at me because 2.6.24 isn't
affected by the bug.

-- 
Jean Delvare

  reply	other threads:[~2008-02-12 15:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-10  7:55 panic about sysfs with adm1026 Yinghai Lu
2008-02-10 17:10 ` [lm-sensors] " Greg KH
2008-02-10 17:10   ` Greg KH
2008-02-10 18:01   ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs Jean Delvare
2008-02-10 20:31     ` Yinghai Lu
2008-02-10 20:31       ` [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) Yinghai Lu
2008-02-11 23:39     ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs Yinghai Lu
2008-02-11 23:39       ` [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) Yinghai Lu
2008-02-12  8:27       ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs Jean Delvare
2008-02-12  8:27         ` [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) Jean Delvare
2008-02-12 15:27         ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs Greg KH
2008-02-12 15:27           ` [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) Greg KH
2008-02-12 15:37           ` Jean Delvare [this message]
2008-02-12 15:37             ` Jean Delvare
2008-02-12 16:02             ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs Greg KH
2008-02-12 16:02               ` [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) Greg KH
2008-02-12 16:13             ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs MillTek
2008-02-12 16:13               ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) MillTek
2008-02-13 13:17     ` [lm-sensors] [PATCH] hwmon: (adm1026) Properly terminate sysfs Mark M. Hoffman
2008-02-13 13:17       ` [PATCH] hwmon: (adm1026) Properly terminate sysfs groups (Was: panic about sysfs with adm1026) Mark M. Hoffman

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=20080212163733.461a8684@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=mhoffman@lightlink.com \
    --cc=yhlu.kernel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.