From: "David S. Miller" <davem@davemloft.net>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org, akpm@osdl.org
Subject: [PATCH]: Fix get_compat_sigevent()
Date: Mon, 4 Apr 2005 22:44:09 -0700 [thread overview]
Message-ID: <20050404224409.1a34e732.davem@davemloft.net> (raw)
I have no idea how a bug like this lasted so long.
Anyways, obvious memset()'ing of incorrect pointer.
Please apply, thanks.
Signed-off-by: David S. Miller <davem@davemloft.net>
===== kernel/compat.c 1.46 vs edited =====
--- 1.46/kernel/compat.c 2005-03-13 15:29:47 -08:00
+++ edited/kernel/compat.c 2005-04-04 22:36:13 -07:00
@@ -640,7 +640,7 @@
int get_compat_sigevent(struct sigevent *event,
const struct compat_sigevent __user *u_event)
{
- memset(&event, 0, sizeof(*event));
+ memset(event, 0, sizeof(*event));
return (!access_ok(VERIFY_READ, u_event, sizeof(*u_event)) ||
__get_user(event->sigev_value.sival_int,
&u_event->sigev_value.sival_int) ||
next reply other threads:[~2005-04-05 5:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-05 5:44 David S. Miller [this message]
2005-04-05 7:37 ` Stephen Rothwell
2005-04-05 7:43 ` David S. Miller
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=20050404224409.1a34e732.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®