Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/kaslr: Fix incorrect i8254 outb() parameters

The outb() function takes parameters value and port, in that order. Fix
the parameters used in the kalsr i8254 fallback code.

Fixes: 5bfce5ef55cb ("x86, kaslr: Provide randomness functions")
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: bp@alien8.de
Cc: hpa@zytor.com
Cc: linux@endlessm.com
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20190107034024.15005-1-drake@endlessm.com

authored by

Daniel Drake and committed by
Thomas Gleixner
7e6fc2f5 5962dd22

+2 -2
+2 -2
arch/x86/lib/kaslr.c
··· 36 36 u16 status, timer; 37 37 38 38 do { 39 - outb(I8254_PORT_CONTROL, 40 - I8254_CMD_READBACK | I8254_SELECT_COUNTER0); 39 + outb(I8254_CMD_READBACK | I8254_SELECT_COUNTER0, 40 + I8254_PORT_CONTROL); 41 41 status = inb(I8254_PORT_COUNTER0); 42 42 timer = inb(I8254_PORT_COUNTER0); 43 43 timer |= inb(I8254_PORT_COUNTER0) << 8;