Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 8y ago · link · parent

Yeah, and for developers of sandboxed code (i.e. JS/WASM in webpages) precise timing should be available in a special Developer Mode.

comment 8y ago · link · parent

We can also try to avoid concurrently executing untrusted code on a single processor?

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

Deal with them on OS/VM/sandbox/"system" level. Treat time measurement as privileged. Make it really hard to get precise enough timing in untrusted processes.

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

> isn't enriching yourself, it's flicking through instagram posts like a cat pawing at a washing machine

How is looking at cats not enriching yourself though?

comment 8y ago · link · parent

This Mozilla post https://blog.mozilla.org/security/2018/01/03/mitigations-lan... mentions that "other timing sources and time-fuzzing techniques are being worked on".

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

ex-Sun team != Oracle execs

comment 8y ago · link · parent

Did people really talk to strangers on public transportation back in the old days? Or did they actually read books, magazines and newspapers?

comment 8y ago · link · parent

Probably the paid hardware RAID unlock key.

comment 8y ago · link · parent

On The Turing Completeness of PowerPoint https://www.youtube.com/watch?v=uNjxe8ShM-8

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

"hacked" driver, yeah, no.

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

You have https://pcpartpicker.com, tons of guides on YouTube, and how do you even screw up so badly as to render the whole thing useless?!

comment 8y ago · link · parent

When play services are not installed, it's "never been googled". It's AOSP.

comment 8y ago · link · parent

IIRC all the spoofing patches required a special app permission to spoof.

comment 8y ago · link · parent

Listen to unintentional radio emissions of various devices: https://youtu.be/5N1C3WB8c0o?t=17m48s

comment 8y ago · link · parent

Isn't on-drive encryption considered untrustworthy?

comment 8y ago · link · parent

Honestly, most of the concerns are rather superficial.

You might want to try HardenedBSD instead of regular FreeBSD though, to get all the exploit mitigation stuff.

comment 8y ago · link · parent

ncdu is not a general purpose file browser, it's specifically for deleting large stuff

comment 8y ago · link · parent

Try mosh, it displays keystrokes locally before the response from the server comes in.

comment 8y ago · link · parent

Another interesting sorta-related thing I've noticed is that good applications only refresh the necessary part of the screen. The Weston compositor has a debug mode that shows colorful rectangles over repainted areas. When typing in gnome-terminal, the repaints only happen on affected characters.

comment 8y ago · link · parent

I'm using amdgpu on FreeBSD (-CURRENT, drm-next-kmod), with Vulkan (RADV) + Wayland, it's awesome :)

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

Wasn't New Zealand the country with the highest level of liberty?

Also, yeah, no reeducation camps, but cops getting away with murder all the time…

comment 8y ago · link · parent

Javascript also does not have access to the chrome of the browser. Unless it's running in a WebExtension context, in which case you can also run WASM there.

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

"Discontinued" does not mean "they don't work". Have you tried them?

comment 8y ago · link · parent

WASM replaces Javascript as the target of other language compilers.

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

Did anyone make similar boards for RPi Compute Modules?

comment 8y ago · link · parent

I think clang's OpenMP implementation might not be 100% ready? Many FreeBSD ports that have an OPENMP option straight up use gcc when that option is enabled.

comment 8y ago · link · parent

I don't agree with the "without our permission" thing. You installed Firefox — you gave them permission.

comment 8y ago · link · parent

How do these companies know who to contact for a given IP address? Do ISPs just cooperate with them?

comment 8y ago · link · parent

W3C has absolutely nothing to do with mail, they never touched anything mail related.

comment 8y ago · link · parent

Packaged base is a beta feature in FreeBSD https://wiki.freebsd.org/PkgBase

But IMO there's nothing wrong with freebsd-update.

1
656667
97