From: Pavel Machek <pavel@ucw.cz>
To: kernel list <linux-kernel@vger.kernel.org>, vojtech@ucw.cz
Subject: Not so theoretical race in atkbd_command
Date: Mon, 26 Apr 2004 23:35:55 +0200 [thread overview]
Message-ID: <20040426213555.GA1368@elf.ucw.cz> (raw)
Hi!
There's quite real race in atkbd_command:
static int atkbd_command(struct atkbd *atkbd, unsigned char *param,
int command)
{
int timeout = 500000; /* 500 msec */
int send = (command >> 12) & 0xf;
int receive = (command >> 8) & 0xf;
int i;
atkbd->cmdcnt = receive;
[user presses key here]
atkbd_interrupt eats user keypress, thinking its reply. Boom. To
exploit:
while true; do setleds +num; setleds -num; done
then try typing.
Pavel
--
934a471f20d6580d5aad759bf0d97ddc
next reply other threads:[~2004-04-26 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-26 21:35 Pavel Machek [this message]
2004-04-26 22:49 ` Not so theoretical race in atkbd_command Pavel Machek
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=20040426213555.GA1368@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@ucw.cz \
/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