From: "Mark M. Hoffman" <mhoffman@lightlink.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Robert Hancock <hancockr@shaw.ca>,
Rene Herman <rene.herman@keyaccess.nl>,
Hans de Goede <j.w.r.degoede@hhs.nl>,
Zhang Rui <rui.zhang@intel.com>,
Jean Delvare <khali@linux-fr.org>,
linux-acpi@vger.kernel.org, lm-sensors@lm-sensors.org,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.6.26-rc] ACPI Thermal Zone driver breaks lm-sensors 2 userspace
Date: Tue, 24 Jun 2008 07:45:01 -0400 [thread overview]
Message-ID: <20080624114501.GL7306@mars.solarsys.private> (raw)
In-Reply-To: <alpine.LFD.1.10.0806232004480.2926@woody.linux-foundation.org>
Hi Linus:
* Linus Torvalds <torvalds@linux-foundation.org> [2008-06-23 20:07:15 -0700]:
>
>
> On Mon, 23 Jun 2008, Robert Hancock wrote:
>
> > Mark M. Hoffman wrote:
> > >
> > > 1) The bug is in libsensors (2.10), not the kernel.
> >
> > This doesn't matter. Breaking userspace in such a fashion is severely frowned
> > upon unless essentially unavoidable, even if it is just triggering a bug.
>
> I do tend to agree. If it used to work, it should continue to work, even
> if it wasn't _meant_ to work.
>
> That's not always 100% possible, but the fact is, neither is updating user
> space always possible. The kernel needs to try its best to maintain stable
> interfaces, and no, "..but the interface was broken" is _not_ an
> acceptable excuse for unbreaking it if it causes problems.
No excuses... it's just a simple case of userspace making a bad assumption.
(Queue rant about how sysfs interfaces are prone to this sort of thing.)
> > > - but more importantly -
> > >
> > > 2) This patch is broken.
> >
> > You didn't indicate what was wrong with the patch.
>
> Yes. Leaving everybody wondering whether it's just an opinionated
> expression of the former problem, or whether there is a real and
> understandable reason why it was NACK'ed.
IMO Jean Delvare and Zhang Rui had explained this well enough elsewhere in the
thread, but...
In summary: the patch adds a meaningless symbolic link to an arbitrary thermal
zone device where the was none before. This keeps (one version of) libsensors
from tripping over itself. But if the TZ devices are unregistered in the wrong
order, OOPS. Apparently this can't happen in practice; but it's a bad trade
to add an implicit dependency on the order of device reg/unreg just to wall-
paper over a bug in userspace (IMHO).
Regards,
--
Mark M. Hoffman
mhoffman@lightlink.com
next prev parent reply other threads:[~2008-06-24 11:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.4PGqX9CuLbgiTimfCcon+PlAMxk@ifi.uio.no>
[not found] ` <fa.PWu620xEt5OlYdOezvRtQriuNjM@ifi.uio.no>
2008-06-24 2:17 ` Robert Hancock
2008-06-24 3:07 ` Linus Torvalds
2008-06-24 3:47 ` Zhang Rui
2008-06-24 12:14 ` Mark M. Hoffman
2008-06-24 17:38 ` Rene Herman
2008-06-25 23:12 ` Len Brown
2008-06-26 0:17 ` Matthew Garrett
2008-06-25 23:16 ` Len Brown
2008-06-25 23:38 ` Rene Herman
2008-06-26 0:57 ` Zhang Rui
2008-06-24 6:59 ` Jean Delvare
2008-06-24 9:28 ` Rene Herman
2008-06-24 11:45 ` Mark M. Hoffman [this message]
2008-06-23 15:06 Rene Herman
2008-06-23 17:06 ` 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=20080624114501.GL7306@mars.solarsys.private \
--to=mhoffman@lightlink.com \
--cc=hancockr@shaw.ca \
--cc=j.w.r.degoede@hhs.nl \
--cc=khali@linux-fr.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=rene.herman@keyaccess.nl \
--cc=rui.zhang@intel.com \
--cc=torvalds@linux-foundation.org \
/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
all inboxes | Powered by JetHome®