• An operation that just described a range to fill with zeroes was taking up more than 4 KiB in our VHDX log replay code.

    The replay plan in Docker VMM contains operations to apply to a virtual disk. Some write a sector of data, while others fill a range with zeroes. Both were stored in the same Rust enum, which meant the zero-fill operations took up space for a write buffer they didn’t use.

    [read more]
  • Whilst working on VM snapshots, I came across a Linux guest that would sometimes hang after restore. Serial output stopped, and the guest stayed halted waiting for an interrupt.

    It turned out we could lose a timer wakeup while taking the snapshot. We’d stopped the virtual CPUs, but time was still advancing.

    [read more]
  • In the last post, I looked at security descriptors on files. They also turn up on registry keys, processes, threads, services and named pipes. Even access tokens have them.

    OK, “everything” is a bit of a stretch. Microsoft calls these securable objects, meaning objects that can have a security descriptor.

    [read more]
  • In the last post, I looked at how Windows walks a file’s permission entries to decide whether to let us in. But some of those entries might be permissions I never set on that file.

    The advanced security settings show an “Inherited from” column. Usually, it points at a parent folder.

    But where do those entries actually live? Does Windows go back up the directory tree every time we open a file? And what happens when we click “Disable inheritance”?

    [read more]
  • Driving home from the train station this morning, I managed to spill some coffee down myself. In my short burst of frustration, I started to think about this post, which then turned into thoughts about documentation.

    [read more]