mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 11:48:27 +02:00
a7cb17cea9
When erasing blocks, block2mtd checks the block on the physical disk to see if everything's filled with 0xff. When grabbing a page from the page cache, it initializes the limit as <start address> + PAGE_SIZE. Turns out that the pointer to the status page is (unsigned long *), and thus it adds (PAGE_SIZE * 4). This would never have been caught, if it wasn't for the unlikely event that block2mtd catches the *last* page available in the system ram and thus tries to scan 4 memory pages from there. The absolutely trivial fix is to do a double cast (cast to (u8 *), add PAGE_SIZE, then cast to (unsigned long *)) ... and there was much rejoicing git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6318 3c298f89-4303-0410-b956-a3cf2f4a3e73 |
||
---|---|---|
.. | ||
000-reinstate-devfs.patch | ||
001-squashfs.patch | ||
002-squashfs_lzma.patch | ||
004-extra_optimization.patch | ||
006-gcc4_inline_fix.patch | ||
007-samsung_flash.patch | ||
008-mtd_uaccess.patch | ||
010-disable_old_squashfs_compatibility.patch | ||
011-mips_boot.patch | ||
012-mips_cpu_tlb.patch | ||
050-mtdpart_redboot_partition_truncate.patch | ||
100-netfilter_layer7_2.8.patch | ||
101-netfilter_layer7_pktmatch.patch | ||
110-ipp2p_0.8.1rc1.patch | ||
120-openswan-2.4.0.kernel-2.6-natt.patch | ||
130-netfilter-ipset.patch | ||
140-netfilter_time.patch | ||
150-netfilter_imq.patch | ||
160-netfilter_route.patch | ||
170-netfilter_chaostables.patch | ||
200-sched_esfq.patch | ||
201-multiple_default_gateways.patch | ||
202-mips-freestanding.patch | ||
204-jffs2_eofdetect.patch | ||
207-powerpc_asm_segment_h.patch | ||
208-rtl8110sb_fix.patch | ||
209-mini_fo.patch | ||
210-d80211_compat.patch | ||
211-no_block2mtd_readahead.patch | ||
212-block2mtd_erase_scan.patch | ||
900-headers_type_and_time.patch | ||
901-asm_bitops_include.patch | ||
902-darwin_scripts_include.patch | ||
903-stddef_include.patch |