]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Zero pages on allocation for mondo and error queues.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 5 Jan 2017 20:58:41 +0000 (15:58 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 9 Mar 2017 03:30:06 +0000 (19:30 -0800)
commit7f6a6dd4a07aeea3904ec4cfa6c0d2433d10262d
treefb968641209d40299cdca831839581bf5af66c69
parentf6100a00a484ee012b501e7bf65f89bb546365f8
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 this 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.

orabug: 23054018

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/irq_64.c