Linux ~4.7 or so fixed a bug in fadvise, specifically FADV_DONTNEED, that incorrectly rounded page boundaries to the effect of making some calls less effective. Found and fixed by a developer who wondered why his page cache was filling up, even though the backup software he used made use of DONTNEED :) The bug was in from day 1.
The thing I wonder about in instances like this is how many people ran into the problem and thought, "Huh, there must be some quirky rationale here, and it's just an idiosyncrasy I'll have to deal with", or, "Huh, that's definitely wrong... oh well".
How I Found a 20-Year-Old Linux Kernel Bug
41–45 of 45 posts
Re: How I Found a 20-Year-Old Linux Kernel Bug
#42It's always nice to see fixes of problems found with improved testing. It would be nice to see something like Haskells QuickCheck rigorously applied on the majority of the kernel functions/interfaces.
Is there a Haskell type of Linux syscalls? If it is the case, we can automatically derive Haskell code to generate an arbitrary list of syscalls. (disclamer: I'm one of the QuickFuzz [0] developers and I'm very interested in testing for this kind of bugs) [0]: http://quickfuzz.org/
Re: How I Found a 20-Year-Old Linux Kernel Bug
#43Re: How I Found a 20-Year-Old Linux Kernel Bug
#44Terrifying to think that tiny, subtle bugs like this could exist in pacemakers and planes. Especially if something like this only happens once every decade or so: > I guess once in a while it would fail if your allocator happens to land one at the end of a page.
Re: How I Found a 20-Year-Old Linux Kernel Bug
#45Earlier quoted context omitted.
Is there a Haskell type of Linux syscalls? If it is the case, we can automatically derive Haskell code to generate an arbitrary list of syscalls. (disclamer: I'm one of the QuickFuzz [0] developers and I'm very interested in testing for this kind of bugs) [0]: http://quickfuzz.org/
Sorry for a bit of off-topic but can you point me at a good tutorial on what must be done exactly so I can use your software to test mine?
https://labdcc.fceia.unr.edu.ar/~amista/article.pdf
Feel free to contact us by email in case you need.