529 karma · joined Jan 2, 2018 (8y ago) · 142 submissions
comment 8y ago · link · parent
(2) From a job seeker's perspective, I don't want to be secretly spied on by a potential employer. I can (and often will) volunteer any information necessary, through a mutually agreed upon channel. I wouldn't want someone prying through my personal social network accounts, secretly contacting random people that may or may not know me from past workplaces. I wouldn't want a potential employer making baseless assumptions based on my social media accounts (or lack thereof).
comment 8y ago · link · parent
This is just random FUD.
(1) AMD boards are vulnerable to Spectre - https://www.amd.com/en/corporate/speculative-execution-previ....
(2) There are other vulnerabilities that affect AMD boards - https://community.amd.com/community/amd-corporate/blog/2018/...
(3) Vulnerabilities are found everywhere. That's not the first time vulnerabilities are found, and it won't be the last. How is that an argument for anything exactly?
comment 8y ago · link · parent
I don't think you are wrong. Timing APIs are tricky and complicated. The small print really matters. Experienced engineers will know this, and so the answer in this instance, as annoying as it may be - absolutely RTFM. Also, funky documentation/APIs exist everywhere, unfortunately.
Quoting the article:
> "You're a new coder, and you find yourself tasked with taking a Unix time_t type value and turning it into some kind of human-readable format"
I'd argue that's exactly the kind of mistakes inexperienced coders are prone to make. Hence we have code-reviews.
comment 8y ago · link · parent
In my opinion, as time goes by and advancements are made, the coupling should grow weaker - and so we'll reach a point where there would be a more clear distinction between the two tracks, and they won't share much of the same curriculum, similarly to where we stand today with CS and electrical engineering.
comment 8y ago · link · parent
comment 8y ago · link · parent
One of the key points I'd like to raise is the (unsurprisingly) substantial performance degradation caused by tracing every syscall/ioctl a process makes. I submit tracing tens (or hundreds) of processes with ptrace/gVisor simply won't fly. Tracing the syscalls alone is expensive, let alone applying any other intricate mid-hook logic.
http://www.linux-kongress.org/2009/slides/system_call_tracin...
> "gVisor is a userspace application and is not itself tied to kernel implementations the way a kernel module would be"
I was referring to the never-ending chase that comes with having to keep tabs on any new/existent ioctls/syscalls. Ioctls are device/driver/hardware specific, which complicates things further.
> "This is true of existing container technologies. An application running under Ubuntu on bare hardware will potentially not run in an Ubuntu Docker image. You'll need to test it extensively."
There's a similarity, but solutions like VMWare/VirtualBox/hypervisors are fighting to be as transparent as possible to the underlying software. That makes things easier on software developers - as we don't all have to spend our time testing those products.
It would appear that gVisor is fundamentally different. It intercepts and tampers with the various syscalls a process makes with the sole purpose of affecting the underlying application - ie. failing a syscall that would otherwise succeed.
comment 8y ago · link · parent
Imagine some applications expect the syscall to actually fail (ie. some odd way to test permissions).
I fail to grasp how this is a strength. Pulling the rug from under applications is dangerous. You're in a direct battle with internal implementation specifics - you don't want to get into that as an abstraction layer. You don't want to tailor various hacks for specific applications.
comment 8y ago · link · parent
That's not how access control works (on most systems). The system calls are still issued from a single process. If the gVisor process is running in the context of a non-privileged user, the system calls will fail regardless of the codepath.
comment 8y ago · link · parent
TLDR; This is a user-space process that hooks syscalls/ioctls made by your "containerised" applications.
(1) This is hardly a strong security model. Proper security cannot be guaranteed by simply hooking API calls in user-space alone.
(2) With this framework in mind, developers now need to worry about yet another layer of indirection. Assume <application> was tested to work on Ubuntu, that fact alone is not sufficient to assume it will keep running under gVisor.
(3) I would personally like to see more documentation/benchmarks regarding the performance impacts that come with using this.
(4) This is strongly coupled with internal Kernel implementations. It will not be easy to port and maintain this across different Kernels.
> "but much like a VMM, it will not allow the application to directly control the system calls it makes."
From user-space? hold my beer.
comment 8y ago · link · parent
I disagree. I submit the whole reason we pass objects by reference or by value in the first place, has much more to do with conserving computational resources/reducing runtime, than with providing abstract programming semantics for software developers.
comment 8y ago · link · parent
"Alias" means nothing to a CPU, nor is it an ABI. At the core, passing by reference is usually implemented by providing the "address-of" something to a function (for example). The "address-of" itself, is passed by value. Going by that logic, everything everywhere is passed by value.
comment 8y ago · link · parent
comment 8y ago · link · parent
They were working hard in that studio, with passion and conviction.
comment 8y ago · link · parent
Lucky you're here!
> "The state is anti-innovation"
Not in Sweden, it isn't. Ad hominem all the way.
> "They're arguing that a monopoly of the state is better than a "monopoly" of four different companies"
There are examples in recent history that support this model: https://en.wikipedia.org/wiki/1983_Israel_bank_stock_crisis
comment 8y ago · link · parent
I don't know what "a small amount" means. You are bound by hardware (cores, hyper-threading). It simply makes no sense to spawn 32 threads executing computation intensive code (no IO), on a machine with 2 cores.
comment 8y ago · link · parent
Which is a supporting argument against using a thread-per-connection. Use a reactor instead (IOCP, epoll, etc).
> "Generally if you implement green threads, such as in Erlang, Ruby, or Go, you can do "thread per request" very efficiently and in a cache friendly way - such that you should achieve the same performance as an event based model."
"Green threads" are not operating system threads, they shouldn't be confused. The runtime will still need some way to handle blocking IO, so under the hood, you will often find some sort of reactor/thread-pool/event-driven-system making it all work (it's simply abstracted for you by the runtime). Bottom line, a "Green-thread-per-connection" is not "OS-thread-per-connection.".
comment 8y ago · link · parent
Actually, they could not. If data is geo-replicated across multiple clusters, spread all over the place, divided into hot and cold storage layers - it's crystal clear you can't perform "real time deletion of data". Instantaneous deletion of all data, leaving no trace behind, can not happen under such complex constraints.
comment 8y ago · link · parent
comment 8y ago · link · parent
My personal stand is to prohibit exposing any metadata on the connection whatsoever, but given the counterarguments, I don't think the proposed solution is ideal.