Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
Education

Students Take Pictures From Space On $150 Budget 215

An anonymous reader writes "Two MIT students have successfully photographed the earth from space on a strikingly low budget of $148. Perhaps more significantly, they managed to accomplish this feat using components available off-the-shelf to the average layperson, opening the door for a new generation of amateur space enthusiasts. The pair plan to launch again soon and hope that their achievements will inspire teachers and students to pursue similar endeavors."

Comment Re:CFLAGS (Score 1) 391

Good point. The boundary would be any structure member offset from 0, like in the example. Otherwise, it could be the architectural page size (for x86 it'd be 4K).

But it doesn't need a boundary if checked at a stage where the original construct is still accessible. if ptr->member is used before ptr is checked for NULL, throw the warning. Most coding is not going to make a structure that starts at zero. I can imagine doing it in 16-bit real mode code, maybe, but not sure it'd happen even then, and then the warning could be disabled.

This would be useful, and in the kernel, most coders would be surprised by such an optimization and would rather fix the problem or, as has been the case with some truly unnecessary checks, remove them from the source.

I agree that gcc should make it a warning. It may be that it identifies it too late (in optimization) and no longer has line number info?

I also agree this is due to a kernel bug, but a warning could've eliminated that.

Comment Re:CFLAGS (Score 1) 391

Why do we still allow users to map stuff at page 0? This compiler optimization is clever and useful, but it assumes that 0 is an invalid address (as it should be and usually is). The exploit is taking advantage of the fact that mmap to address 0 is allowed. To answer my own question: mmap to 0 might be useful for emulation sometimes, for example, if emulating an IBM-PC BIOS in 16-bit mode where physical memory 0 is valid. Also, it'd break things to change it now. We could require a special system setting before allowing users to do that, but that would also break things. However, there's hope for the NULL deref bugs in the kernel. I've seen patches to fix such problems which seem to be identified by static analysis tools, so someone's running them. Very interesting exploit, though.

Comment Re:25 square mm, not 25 mm square (Score 1) 126

Well, lah-di-dah. I didn't choose the place of my birth, but I think I come from an OK place, too.
And I have two engineering degrees, so there! :-)

I don't think the units had as much to do with it as the ambiguity of area vs. dimensional size.
Since the original posting had said "measured 25 mm square" it wasn't clear whether it
was referring to it's area or actual dimensions. Go have a pint of ale on me.

Slashdot Top Deals

"Sometimes insanity is the only alternative" -- button at a Science Fiction convention.

Working...