Re: [RFC Patch 0/7] kernel: Introduce multikernel architecture support
Stefan Hajnoczi <[email protected]> Wed, 24 Sep 2025 15:03:16 -0400
| Newsgroups | dev.linux.lists.multikernel,org.infradead.lists.kexec,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <20250924190316.GA8709@fedora> |
--io8Dp1r+z0FFF6O3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 24, 2025 at 11:28:04AM -0700, Cong Wang wrote: > On Wed, Sep 24, 2025 at 5:51=E2=80=AFAM Stefan Hajnoczi <stefanha@redhat.= com> wrote: > > > > On Wed, Sep 24, 2025 at 01:38:31PM +0200, David Hildenbrand wrote: > > > > > > > > > > Two more points: > > > > > > > > > > 1) Security lockdown. Security lockdown transforms multikernel fr= om > > > > > "0-day means total compromise" to "0-day means single workload > > > > > compromise with rapid recovery." This is still a significant impr= ovement > > > > > over containers where a single kernel 0-day compromises everything > > > > > simultaneously. > > > > > > > > I don't follow. My understanding is that multikernel currently does= not > > > > prevent spawned kernels from affecting each other, so a kernel 0-da= y in > > > > multikernel still compromises everything? > > > > > > I would assume that if there is no enforced isolation by the hardware= (e.g., > > > virtualization, including partitioning hypervisors like jailhouse, pk= vm etc) > > > nothing would stop a kernel A to access memory assigned to kernel B. > > > > > > And of course, memory is just one of the resources that would not be > > > properly isolated. > > > > > > Not sure if encrypting memory per kernel would really allow to not le= t other > > > kernels still damage such kernels. > > > > > > Also, what stops a kernel to just reboot the whole machine? Happy to = learn > > > how that will be handled such that there is proper isolation. > > > > The reason I've been asking about the fault isolation and security > > statements in the cover letter is because it's unclear: > > 1. What is implemented today in multikernel. > > 2. What is on the roadmap for multikernel. > > 3. What is out of scope for multikernel. > > > > Cong: Can you clarify this? If the answer is that fault isolation and > > security are out of scope, then this discussion can be skipped. >=20 > It is my pleasure. The email is too narrow, therefore I wrote a > complete document for you: > https://docs.google.com/document/d/1yneO6O6C_z0Lh3A2QyT8XsH7ZrQ7-naGQT-rp= djWa_g/edit?usp=3Dsharing >=20 > I hope it answers all of the above questions and provides a clear > big picture. If not, please let me know. >=20 > (If you need edit permission for the above document, please just > request, I will approve.) Thanks, that gives a nice overview! I/O Resource Allocation part will be interesting. Restructuring existing device drivers to allow spawned kernels to use specific hardware queues could be a lot of work and very device-specific. I guess a small set of devices can be supported initially and then it can grow over time. This also reminds me of VFIO/mdev devices, which would be another solution to the same problem, but equally device-specific and also a lot of work to implement the devices that spawned kernels see. Anyway, I look forward to seeing how this develops. Stefan --io8Dp1r+z0FFF6O3 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmjUQHQACgkQnKSrs4Gr c8g6GQf/dmqLH7btBgBhJhQSXIXjdWf+M92gUSUpXzizVaSB2xUrl68p4xZlWEzc 7ijpcKjxMVVGeUgLU7ziduh4sS/Pu/GclMmyTU17mrlVCZjbJsxwz4NmcbWJbvjl sne3cnef4ov/U/AOPKpTLWHdNMLVvtCltuc+bZ7uS2Zeae7u0ZLWUgZUllddDu2y OjZBAa4PxbDLrBvm5btURx7kzh4t3bP4TAcKC4GkEngI47jyl5E4XTEWYpFUSEEF PrlgE+22skiH038nIpmPvHvQhfeM52npehlqBajdFjgmpTMOeNjDNTR0mM+b8+nr UtE9Nt0gu32myYQUKVwt+vAfC7hNBw== =9wqm -----END PGP SIGNATURE----- --io8Dp1r+z0FFF6O3--