Showing error 340

User: Jiri Slaby
Error type: BUG/WARNING
Error type description: An unsatisfied assertion in the code
File location: arch/x86/kernel/setup.c
Line in file: 718
Project: Linux Kernel
Project version: 2.6.28
Tools: Web Crawler (0.1)
URL: https://bugzilla.kernel.org/show_bug.cgi?id=11259
Entered: 2011-09-08 08:47:39 UTC


Source:

 688
 689        printk(KERN_INFO "Scanning %d areas for low memory corruption\n",
 690               num_scan_areas);
 691        update_e820();
 692}
 693
 694static struct timer_list periodic_check_timer;
 695
 696void check_for_bios_corruption(void)
 697{
 698        int i;
 699        int corruption = 0;
 700
 701        if (!memory_corruption_check)
 702                return;
 703
 704        for(i = 0; i < num_scan_areas; i++) {
 705                unsigned long *addr = __va(scan_areas[i].addr);
 706                unsigned long size = scan_areas[i].size;
 707
 708                for(; size; addr++, size -= sizeof(unsigned long)) {
 709                        if (!*addr)
 710                                continue;
 711                        printk(KERN_ERR "Corrupted low memory at %p (%lx phys) = %08lx\n",
 712                               addr, __pa(addr), *addr);
 713                        corruption = 1;
 714                        *addr = 0;
 715                }
 716        }
 717
 718        WARN(corruption, KERN_ERR "Memory corruption detected in low memory\n");
 719}
 720
 721static void periodic_check_for_corruption(unsigned long data)
 722{
 723        check_for_bios_corruption();
 724        mod_timer(&periodic_check_timer, round_jiffies(jiffies + corruption_check_period*HZ));
 725}
 726
 727void start_periodic_check_for_corruption(void)
 728{
Show full sources