Live data from Hacker News

MIT Scheme on Apple Silicon

kennethfriedman.org

81–87 of 87 posts

Re: MIT Scheme on Apple Silicon

#81
post #4

Earlier quoted context omitted.

Just turn off dark mode. So many sites have css that claims to support dark mode but doesn’t. The other direction seems less common.

We should really expect better from someone who's about page says they are an interface designer, though.

We should expect better, and you deserve better! Luckily, the issue has been fixed :)

Re: MIT Scheme on Apple Silicon

#83
post #72
post #35

Earlier quoted context omitted.

Windows has had this enabled by default for a long time: https://docs.microsoft.com/en-us/windows/win32/memory/data-e... There's a per program exception list to handle legacy programs though.

On M1 CPUs you cannot ever have simultaneously writable and executable memory. Windows just makes default allocations write only, you have to explicitly request RWX, which is what every other OS has been doing basically since x86 actually added support for non executable memory :)

[deleted]

Re: MIT Scheme on Apple Silicon

#84
post #29
post #14

Earlier quoted context omitted.

MacOS on the M1 processor is the first to use, and require, the W^X bit in memory, meaning that pages of memory are either writable, or can be executed from, but not both. MIT Scheme's front page says this is fundamentally incompatible with their design, and therefore it won't build. When running in the emulator, this requirement would be relaxed for compatibility reasons. There is an escape hatch for writing JIT com…

Wow really? A common intro to security exercise (think CTFs and university courses) is to write increasingly complicated C programs that leverage W&X. Classic buffer overflow into the stack kind of stuff. On M1 it’s now impossible to exploit even a self-compiled toy in this way?

You can do it in a Linux VM container, it's just MacOS processes, not the HW.

Re: MIT Scheme on Apple Silicon

#85
post #46
post #29

Earlier quoted context omitted.

Wow really? A common intro to security exercise (think CTFs and university courses) is to write increasingly complicated C programs that leverage W&X. Classic buffer overflow into the stack kind of stuff. On M1 it’s now impossible to exploit even a self-compiled toy in this way?

Offtopic, but can you recommend such a course?

Hey sorry, didn't check back on this comment for a while. I can't recommend any _courses_ in particular (unless you're a Georgia Tech student, in which case "CS 6265: Information Security Lab" is absolutely incredible).

One really fun way to hone your skills is https://microcorruption.com/, a ctf-style simulated hacking game originally made by Square and Matasano.

Re: MIT Scheme on Apple Silicon

#86
post #84
post #29

Earlier quoted context omitted.

Wow really? A common intro to security exercise (think CTFs and university courses) is to write increasingly complicated C programs that leverage W&X. Classic buffer overflow into the stack kind of stuff. On M1 it’s now impossible to exploit even a self-compiled toy in this way?

You can do it in a Linux VM container, it's just MacOS processes, not the HW.

Ohh that makes more sense, thanks.

Re: MIT Scheme on Apple Silicon

#87
Very cool how much interest there is in mit-scheme and sicm. On the csail website I think the '.com' binary for scmutils only works with v10 and was released about a year ago. Does anyone know where there are instructions for finding/compiling a version that works with the latest version of mit scheme?
Post reply on HN