Skip to content

R5 tracking: A distribution, with systemd #14

Open
3 of 12 issues completed
Open

Description

@tamnd

The L4 distribution images boot to multi user mode with systemd.

Items

Exit criterion

The L4 images boot to multi user mode and pass their smoke tests on both tier 1 architectures: Debian 13, Ubuntu 26.04 and 26.10, Fedora 44, Arch, Alpine 3.22 and NixOS 26.05. The systemd TEST-* integration tests reach the pass set of the reference, apart from the listed exceptions.

If we stop here

We have a kernel that distributions can use in place of Linux in virtual machines.

Refer to spec/22-milestones.md.

Activity

  1. added
    kind/milestone
    priority/p2
    area/vfs
    area/net
    area/bpf
    area/security
    area/containers
    on Oct 23, 2026
  2. tamnd commented on Nov 1, 2026

    @tamnd
    OwnerAuthor

    Added #533: the bench on KVM for CortenMM and the huge page flush, moved from #405 and #435 in R4. It also decides open question 1 (#22).

  3. 271 remaining items

  4. tamnd commented on Nov 20, 2026

    @tamnd
    OwnerAuthor

    #539 item 5, part 1 of 3: #815. A write of 2 or 3 to /proc/sys/vm/drop_caches now removes the evictable fanotify marks of unused inodes. LTP fanotify10 and fanotify23 pass on x86_64 and arm64. FAN_PRE_ACCESS (fanotify24) and the time of fanotify05 follow in two more PRs.

  5. tamnd commented on Nov 20, 2026

    @tamnd
    OwnerAuthor

    #816 merged: an IPv4 route can go through an IPv6 gateway (RTA_VIA), as Linux 5.2 and later. With this, test_route_via_ipv6 and test_nexthop of the networkd tests pass on rukernel x86_64, and NetworkdNetworkTests gives 31 passes of 42 (29 before) (#538).

  6. tamnd commented on Nov 20, 2026

    @tamnd
    OwnerAuthor

    cgroup2 file handles: #817 is merged.

    • name_to_handle_at on cgroup2 gives FILEID_KERNFS with the cgroup ID. open_by_handle_at finds the cgroup, gives the file its path in the mount of mount_fd, and gives ESTALE for a removed cgroup or one outside the mount.
    • Before, systemd read the cgroup ID of a unit as 0, so NFTSet=cgroup: added no element, and TEST-75 stopped at testcase_11_nft.
    • TEST-75-RESOLVED on rukernel x86_64: all 10 test cases pass (03 to 12), testok, in 492 s under QEMU TCG. Before: it stopped at testcase_11_nft. The Linux reference passes 10 of 10.
    • The systemd boot test passes on x86_64.
  7. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor

    #539 item 5, part 2 of 3: #818. fanotify has FAN_PRE_ACCESS on ext3, ext4 and XFS, as SB_I_ALLOW_HSM of Linux 7.x. LTP fanotify24 passes on x86_64 and arm64 (ext3 and ext4 pass, ext2 and tmpfs give TCONF as in Linux).

  8. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor

    #539 item 5, part 3 of 3: #819. A lookup in /proc/PID makes only the entry of the name, and ext2/ext4 find a free inode 64 bits at a time. LTP fanotify05 on x86_64 under QEMU TCG at a load average of about 8 takes 146 s and passes; before, it took 269 s and timed out.

  9. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor
  10. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor

    #821 merged for #540 (SELinux, part 10). The checks of the maps of files and of anonymous memory, as selinux_mmap_file and file_map_prot_check of Linux: a map of a file needs map, read, write if it is shared and can write, and execute if it can run code. A map that can run code needs execmem if it is anonymous memory, a file without an inode, or a private map that can also write. The selinux boot test passed with 122 of 122 checks on x86_64 and on arm64. mprotect comes in the next part.

  11. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor

    #822 merged for #540 (SELinux, part 11). The checks of the operations on other tasks, as selinux_task_kill, the task hooks, selinux_capget, selinux_capset and the ptrace hooks of Linux: a signal needs sigkill, sigstop, sigchld, signull or signal, and the process group, the session, the scheduler, the limits, the capabilities and ptrace need their permissions of the class process. prlimit on the caller itself does not call the hook. The selinux boot test passed with 134 of 134 checks on x86_64 and on arm64.

  12. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor

    #823: arm64 CLOCK_MONOTONIC, CLOCK_REALTIME and jiffies now come from CNTVCT_EL0 (mult and shift, no tick count), in the kernel and the vDSO, and the tick is armed at an absolute CVAL (#813). On loaded TCG (load 11), sleep(60) and a 20 s busy loop now give ratio 1.000 to the host and the counter; before they gave 3.1 and 7.8.

  13. tamnd commented on Nov 21, 2026

    @tamnd
    OwnerAuthor

    #824 merged for #540 (SELinux, part 12). The checks of the mounts, as selinux_mount, selinux_move_mount and selinux_umount of Linux: a new mount and a move of a mount need mounton on the place of the mount, a remount needs remount of the file system, and an unmount needs unmount of the file system. The selinux boot test passed with 140 of 140 checks on x86_64 and on arm64.

  14. tamnd commented on Nov 22, 2026

    @tamnd
    OwnerAuthor

    Released v0.5.39 (#825). It has the PRs #821 to #824: the SELinux checks of maps, of the operations on other tasks and of mounts (#540), and the arm64 clock from the virtual counter (#813).

  15. tamnd commented on Nov 23, 2026

    @tamnd
    OwnerAuthor

    #826: multipath routes (RTA_MULTIPATH) for IPv4 and IPv6, as Linux. NetworkdNetworkTests.test_route_static now passes on x86_64 and arm64, and NetworkdNetworkTests gives 32 of 42 on x86_64 (31 before) (#538).

  16. tamnd commented on Nov 23, 2026

    @tamnd
    OwnerAuthor

    #542: copy-on-write for the sets of nf_tables, #827.

    • The batch begin no longer copies the elements of the sets. A batch copies a set only at its first change there.
    • A commit makes the program data of a set again only if the set changed, and the programs of the base chains share it.
    • Unit test: for a vmap of 2 elements and a set of 10000, the clone at the batch begin copies 0 elements (10002 before), and the commit puts 3 elements in the programs (10004 before).
    • Focused tests/shell: x86_64 27/28 (sets/reset_command_0 follows Linux 7.4). arm64 25/28: also sets/automerge_0 (as before) and maps/vmap_timeout give hang at 1800 s with 2 VMs at a load of 9 to 15. Alone, vmap_timeout passes in 1010 s, and in 1087 s with main.

    The "Sets and maps" item stays open. It needs a full run of the sets and maps tests on both architectures.

  17. tamnd commented on Nov 23, 2026

    @tamnd
    OwnerAuthor

    #828 merged for #540 (SELinux, part 13). The check of the capabilities, as selinux_capable and cred_has_capability of Linux: after the capability module, a capability needs its permission on the task itself in capability or capability2, or in cap_userns or cap2_userns for another user namespace. The capable hook now gets the user namespace, as on Linux. The selinux boot test passed with 145 of 145 checks on x86_64 and on arm64.

  18. tamnd commented on Nov 23, 2026

    @tamnd
    OwnerAuthor

    #829: #752 item 3 (TEST-55-OOMD), part 1. The reclaim and the swap reads count in memory.pressure, the reclaim of memory.high works in batches and walks the address space in steps of 2 MiB, one swap I/O runs at a time and the other tasks sleep, and a killed thread does not reclaim. systemd-oomd now kills testmunch in each run. All 5 test cases pass in about 1 run of 3 (host load 2.0 to 2.6). The other runs fail because the test does not see testchill in the 15 seconds before the next kill of systemd-oomd: the system is too slow under the load of stress-ng. Item 3 stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/bpfarea/containersarea/netarea/securityarea/vfskind/milestonepriority/p2

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions