From: Greg KH <greg@kroah.com>
To: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Kay Sievers <kay.sievers@vrfy.org>
Subject: Re: [PATCH] Fix kobject uevent string handling errors
Date: Fri, 24 Aug 2007 21:49:44 -0700 [thread overview]
Message-ID: <20070825044944.GA13282@kroah.com> (raw)
In-Reply-To: <20070825041754.GA18557@Krystal>
On Sat, Aug 25, 2007 at 12:17:54AM -0400, Mathieu Desnoyers wrote:
> Fix kobject uevent string handling errors
>
> - increment env->buflen in dmi-id.c
> - fix off-by-one in add_uevent_var in error checking of vsnprintf
> - add warnings when add_uevent_var. Proper handling of its return values should
> really be done by the callers, but they aren't, so things currently
> fail silently. This is why I add warnings.
Ah, thanks, but Kay just sent me an updated version with portions of
this fix in it already.
Thanks a lot for helping us track this all down, hopefully the scsi
layer isn't still overflowing the buffer :(
> - if (env->envp_idx >= ARRAY_SIZE(env->envp))
> + if (env->envp_idx >= ARRAY_SIZE(env->envp)) {
> + printk("add_uevent_var: too small array size %u %u\n",
> + env->envp_idx, ARRAY_SIZE(env->envp));
> + WARN_ON(1);
printk's always need a KERN_level.
thanks,
greg k-h
next prev parent reply other threads:[~2007-08-25 4:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 22:47 kernel BUG with 2.6.23-rc3-mm1: skb_over_panic Mathieu Desnoyers
2007-08-24 23:10 ` Andrew Morton
2007-08-24 23:46 ` Greg KH
2007-08-25 0:16 ` Mathieu Desnoyers
2007-08-25 0:44 ` Andrew Morton
2007-08-25 0:46 ` Greg KH
2007-08-25 1:26 ` Kay Sievers
2007-08-25 3:02 ` Mathieu Desnoyers
2007-08-25 3:44 ` Kay Sievers
2007-08-25 3:52 ` Mathieu Desnoyers
2007-08-25 3:56 ` Mathieu Desnoyers
2007-08-25 3:58 ` Daniel Walker
2007-08-25 4:17 ` [PATCH] Fix kobject uevent string handling errors Mathieu Desnoyers
2007-08-25 4:49 ` Greg KH [this message]
2007-08-25 14:25 ` Kay Sievers
2007-08-25 18:38 ` Mathieu Desnoyers
2007-08-25 1:59 ` kernel BUG with 2.6.23-rc3-mm1: skb_over_panic Randy Dunlap
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=20070825044944.GA13282@kroah.com \
--to=greg@kroah.com \
--cc=akpm@linux-foundation.org \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
/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