Tough Issue: kernel instruction corruption
Hello, I'm faced a tough issue recently: instructions of kernel were corrupted. There has 2 PCI buses on my board and lots of PCI devices with DMA capabality involved. I'm suspecting the kernel instructions were corrupted by DMA operations driving by those PCI devices with DMA capabality.
Anybody have tried to protect kernel instructions from this case or have any ideas to protect kernel text section?
Thanks in advance, Gavin�翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m����鹅�⒏?朓�
Quoted 8 lines · On Sat, 5 Jul 2008 22:20:46 +0800 "Gavin Shan" <[email protected]> wrote:
Hello, I'm faced a tough issue recently: instructions of kernel were corrupted. There has 2 PCI buses on my board and lots of PCI devices with DMA capabality involved. I'm suspecting the kernel instructions were corrupted by DMA operations driving by those PCI devices with DMA capabality.
Anybody have tried to protect kernel instructions from this case or have any ideas to protect kernel text section?
if you have a modern Intel board, you can enable the IOMMU on it that will protect the kernel text (well, all of memory) from rogue DMA. PPC generally has similar capabilities, as do some IBM x86 chipsets.
Without an IOMMU it's basically impossible to protect against such DMA.
Signature · 3 lines
If you want to reach me at my work email, use [email protected] For development, discussion and tips for power savings, visit http://www.lesswatts.org
Quoted 6 lines
Quoted 6 lines
Hello, I'm faced a tough issue recently: instructions of kernel were corrupted. There has 2 PCI buses on my board and lots of PCI devices with DMA capabality involved. I'm suspecting the kernel instructions were corrupted by DMA operations driving by those PCI devices with DMA capabality.
Quoted 6 lines
Quoted 2 lines
Anybody have tried to protect kernel instructions from this case or have any ideas to protect kernel text section?
if you have a modern Intel board, you can enable the IOMMU on it that will protect the kernel text (well, all of memory) from rogue DMA. PPC generally has similar capabilities, as do some IBM x86 chipsets.
PPC is used now and PPC doesn't have 2 kinds of MMUs. I don't know much about IOMMU. Is it part of CPU?
Quoted 2 lines
Without an IOMMU it's basically impossible to protect against such DMA.
I did a google with "instruction"+"corruption"+"DMA" and found one matched patent. And I go through the datasheet of PCI chips on my board, unfortunately, the PCI chip didn't supply address protection from vager DMA.
http://www.freepatentsonline.com/y2005/0182862.html
Quoted 11 lines
Signature · 10 lines
-- If you want to reach me at my work email, use [email protected] For development, discussion and tips for power savings, visit http://www.lesswatts.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ÿôèº{.nÇ+‰·Ÿ®‰†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þG«�éÿŠ{ayºÊ‡Ú™ë,j¢f£¢·hš�ï�êÿ‘êçz_è®(階ŠÝ¢j"�ú¶m§ÿÿ¾«þG«�éÿ¢¸?™¨èÚ&£ø§~�á¶iO•æ¬z·švØ^¶m§ÿÿÃÿ¶ìÿ¢¸?–I¥
Quoted 6 lines · Gavin Shan
I'm suspecting
the kernel instructions were corrupted by DMA operations driving by those PCI devices with DMA capabality.Anybody have tried to protect kernel instructions from this case or have any ideas to protect kernel text section?
IOMMU hardware can give some protection. Correctly working PCI devices and _correct drivers_ would be good to have too.
Signature · 3 lines
Stefan Richter -=====-==--- -=== --=== http://arcgraph.de/sr/