From: kladit@t-online.de (Klaus Dittrich)
To: linux mailing-list <linux-kernel@vger.kernel.org>
Subject: Re: usb hotplug $DEVICE empty
Date: Wed, 27 Oct 2004 13:59:43 +0200 [thread overview]
Message-ID: <20041027115943.GA1674@xeon2.local.here> (raw)
I found out why $DEVICE did not show of in /sbin/hotplug
any more. (2.6.10-rc1-bk5)
Depending on the setting of CONFIG_USB_DEVICEFS
either the environment variables DEVICE or PRODUCT
which should be passed to /sbin/hotplug become overwritten
by the environment variable SEQNUM.
This happens in kobject_hotplug() of lib/kobject_uevent.c.
The here called hotplug_ops->hotplug function usb_hotplug()
advances both, the index to envp and the pointer into buffer
but the calling function gets no notice of that.
So to add SEQNUM later on it advances index/pointer to
envp/buffer from where it has stopped before calling
usb_hotplug(), thus overwriting the first entry that
usb_hotplug() has added before.
--
Klaus
next reply other threads:[~2004-10-27 12:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 11:59 Klaus Dittrich [this message]
2004-10-29 4:24 ` [PATCH] kobject hotplug: don't let SEQNUM overwrite other vars (was Re: usb hotplug $DEVICE empty) Roland Dreier
2004-10-29 4:38 ` Greg KH
2004-10-29 18:44 ` [PATCH] kobject hotplug: don't let SEQNUM overwrite other vars Roland Dreier
-- strict thread matches above, loose matches on Subject: below --
2004-10-25 12:32 usb hotplug \$DEVICE empty Klaus Dittrich
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=20041027115943.GA1674@xeon2.local.here \
--to=kladit@t-online.de \
--cc=linux-kernel@vger.kernel.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 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.