]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Zero pages on allocation for mondo and error queues.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 17 Jan 2017 15:59:02 +0000 (10:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 22:27:53 +0000 (14:27 -0800)
commitfe164dbea3183558c379691ca0a3268c5cf9f6a7
tree6d18264e4ff905ecea9eeb23b83b731b1308a5a1
parent8a7d14a02cc09eadbea70dfff37fed9c04827c0d
sparc64: Zero pages on allocation for mondo and error queues.

Error queues use a non-zero first word to detect if the queues are full.
Using pages that have not been zeroed may result in false positive
overflow events.  These queues are set up once during boot so zeroing
all mondo and error queue pages is safe.

Note that the false positive overflow does not always occur because the
page allocation for these queues is so early in the boot cycle that
higher number CPUs get fresh pages.  It is only when traps are serviced
with lower number CPUs who were given already used pages that this issue
is exposed.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/irq_64.c