5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions
comment 8y ago · link · parent
At least on the server side, that's realistic. Big companies like Google already run their own trusted code on their own hardware. For everyone else, it's not impossible to move from VPS hosting to "bare metal cloud" like Scaleway offers.
(Vision for the Future™: instead of their tied-to-Linux "someone else's Raspberry Pi" experience, it would be a bunch of tiny single core processors, each connected to their own tiny DRAM chip. You upload unikernel images or CloudABI binaries (that would be then wrapped into unikernels) into the Cloud™, where the load balancer boots up your images on-demand on as many of these tiny computers as needed. RAM is zeroed before boot.)
The other big environment with tons of untrusted code is of course the web browser. This is significantly more ridiculous, but: why not embed a ton of tiny simple in-order ARM cores without any shared cache into desktop processors, and run JS/WASM on them? (One core used per origin per site) :D
comment 8y ago · link · parent
Disable TSC access, lower clock_gettime precision, make clock_gettime return fuzzy (randomized) time. Randomize CPU frequency to make usage of spinning threads for time measurement hard. Insert randomized delays into untrusted binaries, kinda like DTrace inserts probes (i.e. imagine a JavaScript JIT that inserts no-ops all over the compiled code, and randomly changes these to random sleeps). etc.
comment 8y ago · link · parent
The paper they linked to references this one: https://www.usenix.org/system/files/conference/usenixsecurit...
I think this is what all sandboxes have to do: set the TSC disable flag, restrict system timer precision (make it configurable per sandbox: web servers generally don't need more than 1ms precision), make system timer report fuzzy (randomized) time. Heck, why not also make the CPU run at randomized frequency to mess with busy loop timers.
comment 8y ago · link · parent
Compiling C to printable x86, to make an executable research paper https://www.youtube.com/watch?v=LA_DrBwkiJA
HDR Photography in Microsoft Excel?! https://www.youtube.com/watch?v=bkQJdaGGVM8
Zebras All the Way Down https://www.youtube.com/watch?v=fE2KDzZaxvE
Solving Layout Problems with CSS Grid and Friends https://www.youtube.com/watch?v=2XkzpgWoYEI
Console Security - Switch https://media.ccc.de/v/34c3-8941-console_security_-_switch
Let's move SMM out of firmware and into the kernel https://www.youtube.com/watch?v=6GEaw4msq6g
Bringing Linux back to server boot ROMs with NERF and Heads https://media.ccc.de/v/34c3-9056-bringing_linux_back_to_serv...
Sharing the Chisel https://youtu.be/2C8F7GBRluY?t=11m31s (looks like the actual conference video wasn't released)
comment 8y ago · link · parent
There is nothing wrong with porting from Linux.
We have a compatibility layer for Linux drivers in the kernel (LinuxKPI), so the GPU drivers are not modified that much. A lot of work on LinuxKPI has been sponsored by Mellanox, by the way :) since it's also used for their network drivers (mlx4/5).
And it works fine, I'm currently writing this from a PC with an RX 480 running FreeBSD 12-CURRENT. DRI3, Wayland, Vulkan — everything works.
Also, the Sony driver would've been completely irrelevant to desktop systems. It supports one specific GPU model, Sony proprietary APIs, probably nothing in terms of KMS/DRM/GBM/EGL!
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Yeah, OpenCL is a problem, clover crashes, the new AMD OpenCL driver is not ported yet (I guess it depends on kernel 4.15? we have amdgpu from 4.12 for now)...
I wish people started using Vulkan for compute instead of OpenCL!!
comment 8y ago · link · parent
WASM can CALL INTO JAVASCRIPT CODE. Which means it can do anything JS can do — in a "clunky hack" kind of way, sure, but people are building sugar on top of this already: https://github.com/koute/stdweb
So it's not the kind of sandbox you're thinking about. It's literally the same sandbox as JavaScript itself.
Also, I just realized — you're probably thinking of "compiling to JS" as in TypeScript/BuckleScript/Elm/ghcjs/ScalaJS/… — and yeah, that isn't easy to replace, because you'd have to implement a whole garbage collected runtime for WASM currently and that's kinda ridiculous.
Others (including me) are thinking of "compiling" as in Emscripten, and WASM was literally created to optimize this at first.
comment 8y ago · link · parent
JavaScript is also a compile target in a sandbox. Emscripten started with outputting plain JS, then that was optimized to asm.js, now optimized to WASM.
I completely agree that WASM should NOT replace JS for normal DOM apps. It's currently possible through awkward calls into JS, and might be possible in the future more directly, but there's no need to replace JS.
comment 8y ago · link · parent
But IMO there's nothing wrong with freebsd-update.