public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* memcpy_fromio in dmi_scan.c
@ 2013-04-22 13:18 Jean Delvare
  2013-04-23  3:25 ` DuanZhenzhong
  0 siblings, 1 reply; 12+ messages in thread
From: Jean Delvare @ 2013-04-22 13:18 UTC (permalink / raw)
  To: Zhenzhong Duan, Andrew Morton; +Cc: linux-kernel

Hi Duan, Andrew,

I am looking at the following commit:

commit 9f9c9cbb60576a1518d0bf93fb8e499cffccf377
Author: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Date:   Thu Dec 20 15:05:14 2012 -0800

    drivers/firmware/dmi_scan.c: fetch dmi version from SMBIOS if it exists

And I am worried about calls to memcpy_fromio(), or lack thereof. Before
this commit, the code would take great care to always call
memcpy_fromio() to get data from the 0xF0000-0xFFFFF memory range (BIOS
data) and operate on that copy. After this commit, the code is happily
calling memcmp() directly on an __iomem pointer. It seems to be harmless
on x86, but it will break on IA64, won't it?

-- 
Jean Delvare
Suse L3


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

end of thread, other threads:[~2013-07-08 13:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 13:18 memcpy_fromio in dmi_scan.c Jean Delvare
2013-04-23  3:25 ` DuanZhenzhong
2013-04-23  7:28   ` Jean Delvare
2013-04-23 22:00     ` Luck, Tony
2013-04-24 19:22       ` Jean Delvare
2013-04-24 20:16         ` Luck, Tony
2013-04-25  2:07           ` Robin Holt
2013-04-25  9:52             ` Robin Holt
2013-04-25 20:37               ` Andrew Morton
2013-07-08 13:54                 ` Jean Delvare
2013-04-25  1:51         ` Zhenzhong Duan
2013-04-25 10:02         ` Robin Holt

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