This website works better with JavaScript.
Explore
Help
Sign In
hsist
/
freifunkist-firmware
Watch
6
Star
1
Fork
You've already forked freifunkist-firmware
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
5302
Commits
1
Branch
0
Tags
164 MiB
Tag:
Branch:
Tree:
d4cce8a452
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'd4cce8a452'
${ noResults }
Commit Graph
1 Commits (d4cce8a452b1f1457b19b356245d1b91eb3357e8)
Author
SHA1
Message
Date
Felix Fietkau
912e5867ef
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 SVN-Revision: 6318
18 years ago