summary refs log tree commit diff stats
path: root/results/classifier/108/other/1878413
diff options
context:
space:
mode:
Diffstat (limited to 'results/classifier/108/other/1878413')
-rw-r--r--results/classifier/108/other/187841358
1 files changed, 58 insertions, 0 deletions
diff --git a/results/classifier/108/other/1878413 b/results/classifier/108/other/1878413
new file mode 100644
index 00000000..16e9d748
--- /dev/null
+++ b/results/classifier/108/other/1878413
@@ -0,0 +1,58 @@
+graphic: 0.772
+performance: 0.759
+device: 0.710
+other: 0.616
+semantic: 0.575
+permissions: 0.554
+socket: 0.487
+network: 0.458
+PID: 0.430
+vnc: 0.390
+files: 0.359
+boot: 0.343
+debug: 0.340
+KVM: 0.203
+
+/proc/sys/fs/binfmt_misc/ empty even though binfmt_misc is loaded
+
+_apksigner_ uses binfmt to execute via _jarwrapper_, since it is a JAR.  We have a test suite that relies on _apksigner_ working.  It was running fine in Ubuntu/bionic.  Since it was pegged to LTS, it got upgraded to Ubuntu/focal and it stopped working.  This is likely because /proc/sys/fs/binfmt_misc/ is totally empty.  The "binfmt_misc" kernel module shows as loaded:
+
+$ grep binfmt /proc/modules
+binfmt_misc 20480 1 - Live 0xffffffffc0452000
+
+This relies on binfmt support in gitlab.com's CI runner setup, based on Docker.  binfmt works in containers there, for example on Ubuntu/bionic:
+https://gitlab.com/fdroid/fdroidserver/-/jobs/516857857
+
+Something in Ubuntu/focal broke this when running focal in the container on the same Docker host runners:
+https://gitlab.com/fdroid/fdroidserver/-/jobs/547148092
+
+Debian's ci.debian.net lxc runners also have a similar problem, it might be related:
+https://salsa.debian.org/ci-team/debian-ci-config/-/issues/1
+
+The binfmt_misc filesystem must be mounted on /proc/sys/fs/binfmt_misc to work.
+
+$ mount|grep ^binfmt_misc
+binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
+
+
+From my experience, that mounting happens automatically once
+binfmt-support is installed.  At least that is the case on the
+Ubuntu/bionic jobs and on my own Debian machines.  Did something change
+so that now it must be manually mounted?
+
+
+It seems in the focal container, binfmt_misc doesn't get setup properly:
+https://gitlab.com/eighthave/fdroidserver/-/jobs/550962360
+
+$ grep binfmt /proc/modules
+binfmt_misc 20480 1 - Live 0xffffffffc0461000
+$ mount | grep binfmt_misc || mount binfmt_misc /proc/sys/fs/binfmt_misc
+mount: /proc/sys/fs/binfmt_misc: special device binfmt_misc does not exist.
+$
+
+Ok, your hint lead me to the fix:
+
+$ mount | grep binfmt_misc || mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
+
+I guess this mounting was somehow happening automatically before, but now it seems that it is handled by systemd in a user system.  But a container usually doesn't run systemd.
+