1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-12 14:44:37 +03:00
openwrt-xburst/target/linux
nbd a7cb17cea9 Finally fix the pesky x86-2.6 block2mtd related crash (#1058)
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
2007-02-18 13:52:14 +00:00
..
ar7-2.4 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
aruba-2.6 move tlb change for mips 4KC to generic patches (required for most mips targets) 2007-02-13 00:55:11 +00:00
atheros-2.6 disable dma offset for now 2007-02-17 23:02:49 +00:00
au1000-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
brcm47xx-2.6 update work in progress rewritten bcm947xx code. wifi and usb seem to be working, flash access still has problems 2007-02-08 02:34:18 +00:00
brcm63xx-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
brcm-2.4 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
brcm-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
generic-2.4 add kernel branch emulation fix from #1345 2007-02-12 22:18:17 +00:00
generic-2.6 Finally fix the pesky x86-2.6 block2mtd related crash (#1058) 2007-02-18 13:52:14 +00:00
ixp4xx-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
magicbox-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
pxa-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
rb532-2.6 move tlb change for mips 4KC to generic patches (required for most mips targets) 2007-02-13 00:55:11 +00:00
rdc-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
sibyte-2.6 port [6229] to kamikaze 2007-02-08 01:25:18 +00:00
uml-2.6 make the uml kernel config compatible with both 32 bit and 64 bit systems 2007-02-13 15:20:45 +00:00
x86-2.6 add e1000 support 2007-02-16 19:51:27 +00:00
Makefile make kernel_menuconfig work without target toolchain 2007-02-16 17:28:22 +00:00