From: Tiago Vignatti <tiago.vignatti@nokia.com>
To: Dave Airlie <airlied@redhat.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
"Paulo R. Zanoni" <przanoni@gmail.com>,
Henry Zhao <Henry.Zhao@Sun.COM>,
Andy Getzendanner <james.getzendanner@students.olin.edu>,
Brad Spengler <spender@grsecurity.net>,
"dri-devel@lists.sf.net" <dri-devel@lists.sf.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Tiago Vignatti <tiago.vignatti@nokia.com>
Subject: [PATCH] vgaarb: fix typo deference when copying from userspace
Date: Tue, 12 Jan 2010 19:58:31 +0200 [thread overview]
Message-ID: <1263319113-6631-1-git-send-email-tiago.vignatti@nokia.com> (raw)
From: Brad Spengler <spender@grsecurity.net>
libpciaccess is not triggering such code though.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
---
Andy Getzendanner tried to fix this, but he seems did a wrong approach:
http://marc.info/?l=linux-kernel&m=126112173704466
Andy: please test (and put your tag review!) this one instead. Thanks.
drivers/gpu/vga/vgaarb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c
index 1ac0c93..2f6cf69 100644
--- a/drivers/gpu/vga/vgaarb.c
+++ b/drivers/gpu/vga/vgaarb.c
@@ -961,7 +961,7 @@ static ssize_t vga_arb_write(struct file *file, const char __user * buf,
remaining -= 7;
pr_devel("client 0x%p called 'target'\n", priv);
/* if target is default */
- if (!strncmp(buf, "default", 7))
+ if (!strncmp(curr_pos, "default", 7))
pdev = pci_dev_get(vga_default_device());
else {
if (!vga_pci_str_to_vars(curr_pos, remaining,
--
1.6.0.4
next reply other threads:[~2010-01-12 18:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 17:58 Tiago Vignatti [this message]
2010-01-12 17:58 ` [PATCH] vgaarb: fix trylock behaviour accordingly vga_tryget return value Tiago Vignatti
2010-01-12 17:58 ` [PATCH-again] vgaarb: use MIT license Tiago Vignatti
2010-01-14 15:07 ` Paulo Zanoni
2010-01-13 4:05 ` [PATCH] vgaarb: fix trylock behaviour accordingly vga_tryget return value Henry Zhao
2010-01-12 18:56 ` [PATCH] vgaarb: fix typo deference when copying from userspace Helge Deller
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=1263319113-6631-1-git-send-email-tiago.vignatti@nokia.com \
--to=tiago.vignatti@nokia.com \
--cc=Henry.Zhao@Sun.COM \
--cc=airlied@redhat.com \
--cc=benh@kernel.crashing.org \
--cc=dri-devel@lists.sf.net \
--cc=james.getzendanner@students.olin.edu \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=przanoni@gmail.com \
--cc=spender@grsecurity.net \
/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®