mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* amd64_edac making improper assumptions?
@ 2009-09-18 13:02 Jan Beulich
  2009-09-18 13:36 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2009-09-18 13:02 UTC (permalink / raw)
  To: borislav.petkov, dougthompson; +Cc: linux-kernel

Doug, Borislav,

the sizing of pvt_lookup[] and mci_lookup[] is done based on a config
setting (CONFIG_NODES_SHIFT), and the indexing happens using the
raw value read from hardware without any bounds checking. Hence,
running a kernel with e.g. !CONFIG_NUMA on a multi-socket system
would happily access other than the first and only array element.

Likewise, the use of rdmsr_on_cpu() doesn't seem to do what is
intended when !CONFIG_NUMA.

Also, assuming you can use cpumask_of_node() directly on the
node ID read from hardware seems bogus (even in general, but
namely again when MAX_NUMNODES is less than the actual number
of nodes).

Thanks for your explanation,
Jan


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

end of thread, other threads:[~2009-09-18 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18 13:02 amd64_edac making improper assumptions? Jan Beulich
2009-09-18 13:36 ` Borislav Petkov

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

all inboxes | Powered by JetHome®