4 ms·
>Could something like Xen be more secure than the Linux kernel? Maybe. That's a good question, and one I haven't seen the answer to. It ought to be, because th
by lmm 11y ago
>Could something like Xen be more secure than the Linux kernel? Maybe. That's a good question, and one I haven't seen the answer to.
It ought to be, because the attack surface is zillions of times smaller (x86 spec vs all the system calls offered by linux).
>you always have Linux in addition. You generally use its drivers for the real hardware. It would seem that Linux + hypervisor is less secure than Linux alone
Doesn't have to be Linux - but even if it is, users have no way to exploit most Linux vulnerabilities because the hypervisor (hopefully) doesn't make most possible system calls.
- cyphar 11y ago> >Could something like Xen be more secure than the Linux kernel? Maybe. That's a good question, and one I haven't seen the answer to. > It ought to be, because the attack surface is zillions of times smaller (x86 spec vs all the system calls offered by linux). Bullshit. Either your Hypervisor is a user mode program (it uses syscalls) and therefore requires a full kernel underneath all of the other abstractions you've got (which makes it slower). Or it's like KVM, where it's kernel mode and thus doesn't need syscalls to break the host (does the phrase "floppy driver local root" mean anything to you?).
- lmm 11y agoI'm talking about the complexity of what the kernel-level thing is implementing. It's pretty easy to make a secure Hello World program, even if it's running in kernel mode. It's arguably impossible to make a secure implementation of the linux API, which is not even formally documented. The x86 spec is not simple but at least there is a spec. Floppy driver local root is a good example - the linux kernel suffers from that, but a hypervisor might well not even implement a floppy driver.