From: Linda Xie <lxiep@us.ibm.com>
To: Greg KH <greg@kroah.com>, John Rose <johnrose@austin.ibm.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH]: Fix buffer overrun in rpadlpar_sysfs.c
Date: Fri, 09 Sep 2005 17:00:41 -0500 [thread overview]
Message-ID: <43220609.7090305@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
Hi Greg,
The attached patch was created against 2.6.13-git9.
Please consider it for inclusion.
Thanks,
Linda
Signed-off-by: Linda Xie <lxie@us.ibm.com>
[-- Attachment #2: rpadlpar_sysfs.patch --]
[-- Type: text/plain, Size: 644 bytes --]
--- linux-2.6.13-git9/drivers/pci/hotplug/rpadlpar_sysfs.c 2005-08-28 18:41:01.000000000 -0500
+++ linux-2.6.13-git9-linda/drivers/pci/hotplug/rpadlpar_sysfs.c 2005-09-09 16:28:56.000000000 -0500
@@ -62,7 +62,7 @@ static ssize_t add_slot_store(struct dlp
char drc_name[MAX_DRC_NAME_LEN];
char *end;
- if (nbytes > MAX_DRC_NAME_LEN)
+ if (nbytes >= MAX_DRC_NAME_LEN)
return 0;
memcpy(drc_name, buf, nbytes);
@@ -83,7 +83,7 @@ static ssize_t remove_slot_store(struct
char drc_name[MAX_DRC_NAME_LEN];
char *end;
- if (nbytes > MAX_DRC_NAME_LEN)
+ if (nbytes >= MAX_DRC_NAME_LEN)
return 0;
memcpy(drc_name, buf, nbytes);
reply other threads:[~2005-09-09 22:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=43220609.7090305@us.ibm.com \
--to=lxiep@us.ibm.com \
--cc=greg@kroah.com \
--cc=johnrose@austin.ibm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox