lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 25 Jan 2010 15:31:44 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Dmitry Torokhov <dmitry.torokhov@...il.com>
CC:	Vojtech Pavlik <vojtech@...e.cz>,
	Robert Hancock <hancockrwd@...il.com>,
	Bastien Nocera <hadess@...ess.net>,
	linux-kernel <linux-kernel@...r.kernel.org>, pjones@...hat.com
Subject: Re: [PATCH] Disable i8042 checks on Intel Apple Macs

On 01/25/2010 03:28 PM, Dmitry Torokhov wrote:
> 
> /*
>  * i8042_flush() flushes all data that may be in the keyboard and mouse
>  * buffers
>  * of the i8042 down the toilet.
>  */
> 
> static int i8042_flush(void)
> {
>         unsigned long flags;
>         unsigned char data, str;
>         int i = 0;
> 
>         spin_lock_irqsave(&i8042_lock, flags);
> 
>         while (((str = i8042_read_status()) & I8042_STR_OBF) && (i < I8042_BUFFER_SIZE)) {
>                 udelay(50);
>                 data = i8042_read_data();
>                 i++;
>                 dbg("%02x <- i8042 (flush, %s)", data,
>                         str & I8042_STR_AUXDATA ? "aux" : "kbd");
>         }
> 
>         spin_unlock_irqrestore(&i8042_lock, flags);
> 
>         return i;
> }
> 

Given that I would say it's pretty safe to say the A20 code doesn't get
executed on these boxes, so I don't think there is anything I can add
here, unfortunately.

	-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ