public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Possible bug in keyboard.c (2.6.10)
@ 2005-01-27  3:16 Sasa Stevanovic
  2005-01-27  4:50 ` Dmitry Torokhov
  2005-01-27 12:56 ` Andries Brouwer
  0 siblings, 2 replies; 22+ messages in thread
From: Sasa Stevanovic @ 2005-01-27  3:16 UTC (permalink / raw)
  To: linux-kernel

Hi,

I had some problems with my laptop's onetouch keys and it eventually led me to 
keyboard.c file from 2.6.10 kernel (Vojtech Pavlik and others).  There may be 
a bug in the file, please read below.

Well, actually, when all omnibook/messages/setkeycodes/hotkeys/xev/showkey etc 
stuff is stripped off, what remains is that x86_keycodes array has only first 
240 members initialized, while remaining 16 are set to 0 due to [256]:

static unsigned short x86_keycodes[256] = { <only 240 here> };

(For my scenario, workaround was possible.)

I am not sure if this is a bug or not; it worked in 2.4.18 without workaround. 
Might be that someone wanted to prevent reading invalid memory.  There are 
many versions of the file/array definition found on the web, none of which has 
a comment about this.

Please also use my email address <mg94c18@alas.matf.bg.ac.yu> if you respond 
to this.  I am a member but not sure for how long (depends on number of 
messages/day).

Thanks,
Sasa

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2005-02-03  6:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27  3:16 Possible bug in keyboard.c (2.6.10) Sasa Stevanovic
2005-01-27  4:50 ` Dmitry Torokhov
2005-01-27 10:16   ` Sasa Stevanovic
2005-01-27 12:56 ` Andries Brouwer
2005-01-28  0:39   ` Roman Zippel
2005-01-28 10:59     ` Vojtech Pavlik
2005-01-29  4:50       ` Al Viro
2005-01-29 11:25         ` Vojtech Pavlik
2005-01-29 23:35           ` Dmitry Torokhov
2005-01-31  9:01             ` Vojtech Pavlik
2005-01-30  8:41           ` Al Viro
2005-01-30 23:21             ` Dmitry Torokhov
2005-01-30 23:29               ` Dmitry Torokhov
2005-02-03  6:54               ` Dmitry Torokhov
2005-01-29 12:11       ` Roman Zippel
2005-01-29 14:04         ` Vojtech Pavlik
2005-01-30 20:13           ` Roman Zippel
2005-01-28 11:10     ` Vojtech Pavlik
2005-01-28 21:59       ` Andries Brouwer
2005-01-29 11:12         ` Vojtech Pavlik
2005-01-29 23:30           ` Dmitry Torokhov
2005-01-30 23:16     ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox