<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>hackweek · Paolo Stivanin</title><link>https://paolostivanin.github.io/tags/hackweek/</link><description>Security QA engineer. FIPS, Common Criteria, openQA, and flaky tests.</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 04 Dec 2026 14:45:00 +0100</lastBuildDate><atom:link href="https://paolostivanin.github.io/tags/hackweek/index.xml" rel="self" type="application/rss+xml"/><item><title>What SLE 16 negotiates when nobody configures anything</title><link>https://paolostivanin.github.io/work/what-sle-16-negotiates-when-nobody-configures-anything/</link><pubDate>Fri, 04 Dec 2026 14:45:00 +0100</pubDate><guid>https://paolostivanin.github.io/work/what-sle-16-negotiates-when-nobody-configures-anything/</guid><category>security</category><category>openqa</category><category>opensuse</category><category>hackweek</category><category>fips</category><category>pqc</category><description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Every post-quantum test we had sets the algorithm explicitly, so&#10;none of them would notice a changed default. For my&#10;&lt;a href="https://hackweek.opensuse.org/26/projects/fips-and-pqc-crypto-surface-tracker-for-sle-16-snapshot-diff-and-coverage-in-openqa"&gt;Hack Week 26 project&lt;/a&gt;&#10;I wrote an openQA test that runs handshakes between the system's crypto stacks&#10;with untouched configurations, then turns on FIPS mode in the same VM and runs&#10;them again. With FIPS off, TLS on SLE 16.1 negotiates hybrid ML-KEM almost&#10;everywhere. With FIPS on, SSH and stunnel lose post-quantum key exchange. The&#10;test is in review as&#10;&lt;a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/27526"&gt;#27526&lt;/a&gt;.&#10;The runs produced two new bugs and new evidence on two existing ones.&lt;/p&gt;&#10;&lt;h2 id="what-was-missing"&gt;What was missing&lt;/h2&gt;&#10;&lt;p&gt;SLE 16 ships ML-KEM in OpenSSL 3.5, GnuTLS 3.8.10, NSS 3.125 and OpenSSH 10.&#10;We test all of them, and every test forces the group or the key exchange. That&#10;proves the algorithm works. It does not prove anyone uses it. The default comes&#10;from the library, the system crypto-policy or a list hard-coded in the&#10;application, and a change in any of them is silent. Nothing compared the&#10;system with FIPS off and on either.&lt;/p&gt;&#10;&lt;h2 id="what-the-test-does"&gt;What the test does&lt;/h2&gt;&#10;&lt;p&gt;The job records a crypto fingerprint: a JSON file with what OpenSSL, OpenSSH,&#10;GnuTLS, the kernel's &lt;code&gt;/proc/crypto&lt;/code&gt;, the crypto-policy back-ends, stunnel and&#10;Postfix offer and use by default. Then it runs 17 client/server pairs on&#10;127.0.0.1 (OpenSSL, GnuTLS, NSS, stunnel, Go, curl, python, OpenSSH, libssh)&#10;and records the group each pair negotiates. It enables FIPS kernel mode,&#10;reboots, does both again and diffs the two fingerprints.&lt;/p&gt;&#10;&lt;p&gt;The FIPS diff is over 500 lines on SLE 16, almost all expected: algorithms that&#10;are not FIPS approved disappear. Each expected change has an entry with a&#10;reason in an approvals file, and any other change fails the job:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nt"&gt;&amp;#34;scope&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;fips_off-vs-fips_kernel&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;kernel_fips_disabled&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;&amp;#34;op&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;+&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;value&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;ecdh-nist-p192&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;ecdsa-nist-p192&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;reason&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;P-192 is not FIPS approved&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;37 entries cover SLE 16.0 and 16.1 on x86_64, aarch64 and s390x.&lt;/p&gt;&#10;&lt;h2 id="what-it-found"&gt;What it found&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Client -&amp;gt; server&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;16.0&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;16.1&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;FIPS on (both)&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;OpenSSL, curl, python, NSS, GnuTLS&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;SecP256r1MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Go&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;stunnel&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;X25519MLKEM768&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;P-256&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;GnuTLS with &lt;code&gt;NORMAL&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;P-256&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;P-256&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;P-256&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;OpenSSH&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;sntrup761x25519&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;sntrup761x25519&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;ecdh-nistp256&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;curl sftp (libssh)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;curve25519&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;curve25519&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;ecdh-nistp256&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;With FIPS off, the stacks that read the system policy agree on X25519MLKEM768.&#10;stunnel 5.74 on 16.0 has its own classical list; 5.76 on 16.1 adds the hybrid.&#10;GnuTLS with its built-in &lt;code&gt;NORMAL&lt;/code&gt; priority stays on P-256. libssh 0.11.5 has no&#10;ML-KEM. OpenSSH picks sntrup761x25519 because the crypto-policy puts it before&#10;mlkem768x25519; with &lt;code&gt;ssh -F none&lt;/code&gt; it picks ML-KEM.&lt;/p&gt;&#10;&lt;p&gt;With FIPS on, TLS moves to SecP256r1MLKEM768 (P-256 plus ML-KEM) and stays&#10;post-quantum. OpenSSH falls back to ecdh-sha2-nistp256: its FIPS mode has no&#10;ML-KEM key exchange. stunnel hard-codes P-256, P-384 and P-521 when&#10;&lt;code&gt;fips = yes&lt;/code&gt;. Go keeps X25519MLKEM768: it has its own FIPS switch. The kernel&#10;diff also showed &lt;code&gt;ecb(cipher_null)&lt;/code&gt; disabled with &lt;code&gt;fips=1&lt;/code&gt;, a known bug that&#10;breaks IPsec in FIPS mode, now seen on 16.1 too.&lt;/p&gt;&#10;&lt;h2 id="the-first-bug-draft-was-wrong"&gt;The first bug draft was wrong&lt;/h2&gt;&#10;&lt;p&gt;On s390x, the curl sftp probe failed on 16.1 with &amp;quot;Could not set remote port&amp;quot;.&#10;curl 8.20 to 8.23 passes the port to libssh as a 16-bit value, and libssh reads&#10;it as an &lt;code&gt;int&lt;/code&gt;. On a big-endian CPU that reads the wrong bytes: ports from&#10;32768 up are rejected, and below that the host key is checked against the wrong&#10;port in &lt;code&gt;known_hosts&lt;/code&gt;. The fix is in curl 8.24.0&#10;(&lt;a href="https://github.com/curl/curl/issues/24112"&gt;curl#24112&lt;/a&gt;), and&#10;&lt;a href="https://src.fedoraproject.org/rpms/curl/c/3a83306219af243ad9b1383d11323915ff5395b5"&gt;Fedora hit the same bug&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The AI agent's first bug draft claimed that every sftp URL fails on s390x. Its&#10;reproducer used port 22 with &lt;code&gt;-k&lt;/code&gt;, which would have passed. s390x jobs see&#10;infrastructure failures often enough that I asked for proof first. The failure&#10;then reproduced under qemu-s390x in a container, the curl and libssh sources&#10;matched the shipped binaries, and the openQA history showed no infrastructure&#10;pattern. Those checks found the 32767/32768 boundary, and the bug went out with&#10;a reproducer that works.&lt;/p&gt;&#10;&lt;h2 id="what-the-review-changed"&gt;What the review changed&lt;/h2&gt;&#10;&lt;p&gt;When a module fails, openQA can revert the VM to the last good snapshot, which&#10;would have deleted the FIPS-off fingerprint the second run diffs against. The&#10;module now keeps it.&lt;/p&gt;&#10;&lt;p&gt;The approvals got stricter. &lt;code&gt;/proc/crypto&lt;/code&gt; drivers depend on the CPU, so they&#10;stay approved as a block, but an algorithm may only disappear if the kernel&#10;logs it as disabled due to FIPS. Fixes are reported too: an approval whose bug&#10;no longer matches anything, or a known gap that now negotiates a post-quantum&#10;group. Neither fails the job, so the update with the fix stays green.&lt;/p&gt;&#10;&lt;h2 id="result"&gt;Result&lt;/h2&gt;&#10;&lt;p&gt;The verification runs passed on SLE 16.0 and 16.1 on all three architectures.&#10;The job turns red only when something new changes. None of the four bugs is&#10;public.&lt;/p&gt;&#10;&lt;p&gt;The FIPS-off half also runs on Tumbleweed: the&#10;&lt;a href="https://openqa.opensuse.org/tests/6381690"&gt;verification run&lt;/a&gt; on&#10;openqa.opensuse.org passed, and the Tumbleweed job group gets it after the&#10;merge. Last year a crypto-policy change on Tumbleweed&#10;&lt;a href="https://bugzilla.suse.com/show_bug.cgi?id=1255093"&gt;disabled the X25519 key exchanges in SSH&lt;/a&gt;.&#10;The test would catch that kind of change on the first snapshot.&lt;/p&gt;&#10;&lt;p&gt;Not covered yet: Java and strongSwan. For Postfix the test records the&#10;configured group list, not a live handshake.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;&lt;strong&gt;How this was made&lt;/strong&gt;&lt;br&gt;&#10;AI help: an AI agent compared the fingerprints and matrices of all runs, sorted&#10;the FIPS diffs into the approvals baseline, ran the qemu-s390x checks behind the&#10;curl bug, and replayed the stricter checks against the stored runs before the&#10;new verification runs.&lt;br&gt;&#10;Code: reviewed line by line by me, like any other patch, and checked in&#10;verification runs.&lt;/p&gt;&#10;</description></item><item><title>The greeter that would not die</title><link>https://paolostivanin.github.io/opensource/the-greeter-that-would-not-die/</link><pubDate>Fri, 04 Dec 2026 14:30:00 +0100</pubDate><guid>https://paolostivanin.github.io/opensource/the-greeter-that-would-not-die/</guid><category>opensuse</category><category>hackweek</category><category>kde</category><category>plasma</category><category>wayland</category><category>nvidia</category><category>debugging</category><description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; After an idle lock dismissed with the mouse, later locks on my&#10;Tumbleweed workstation came up as a black screen with only the cursor. The lock&#10;screen process had hung, most likely in the NVIDIA driver, and a race in KDE's&#10;kscreenlocker turned that into a locked session with nothing to type a password&#10;into. The race reproduces in a VM without NVIDIA. My&#10;&lt;a href="https://hackweek.opensuse.org/26/projects/fix-the-kscreenlocker-stale-greeter-black-screen-root-cause-upstream-patch-and-openqa-test"&gt;Hack Week 26 project&lt;/a&gt;&#10;ended with two merge requests:&#10;&lt;a href="https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/401"&gt;kscreenlocker!401&lt;/a&gt;&#10;fixes the race,&#10;&lt;a href="https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/402"&gt;kscreenlocker!402&lt;/a&gt;&#10;fixes a file descriptor leak found on the way. The leak fix is merged and will&#10;ship in Plasma 6.8.5. The race fix is in review.&lt;/p&gt;&#10;&lt;h2 id="what-was-wrong"&gt;What was wrong&lt;/h2&gt;&#10;&lt;p&gt;Lock the screen, come back, black screen. The cursor moves, there is no&#10;password field, and only a VT gets you out. I reported it in November as&#10;&lt;a href="https://bugs.kde.org/show_bug.cgi?id=528681"&gt;bug 528681&lt;/a&gt;. A second reporter&#10;sees the same on a GTX 1050 Ti.&lt;/p&gt;&#10;&lt;p&gt;Plasma's lock screen is two processes. KSldApp runs inside kwin and decides&#10;when to lock. The greeter, &lt;code&gt;kscreenlocker_greet&lt;/code&gt;, draws the password field.&#10;With a grace time set, an idle lock can be dismissed without a password by&#10;moving the mouse. In kscreenlocker 6.8.3 that path is:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-cpp" data-lang="cpp"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;KSldApp&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;unlock&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;qCDebug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;KSCREENLOCKER&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="s"&gt;&amp;#34;Unlock requested&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;isGraceTime&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;m_requirePassword&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;// the process might take some time to exit; don&amp;#39;t wait for that to happen&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;doUnlock&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;s_graceTimeKill&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;m_lockProcess&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;terminate&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The session unlocks at once and the greeter only gets a SIGTERM. That is on&#10;purpose since 2024: waiting for the greeter only delayed the unlock. But if the&#10;greeter is still alive when the next lock comes, KSldApp calls&#10;&lt;code&gt;QProcess::start()&lt;/code&gt; on the same running process. Qt prints&#10;&lt;code&gt;QProcess::start: Process is already running&lt;/code&gt;, reports no error, and the&#10;session stays locked without a greeter.&lt;/p&gt;&#10;&lt;h2 id="how-i-found-it"&gt;How I found it&lt;/h2&gt;&#10;&lt;p&gt;My journal has two stuck greeters, on 30 October and 10 November. Both went&#10;silent less than half a second after they started, while their PAM worker was&#10;still starting, and never logged anything again. Why they ignored the SIGTERM&#10;is not proven: I recovered the session before taking a backtrace. The one I&#10;inspected had all threads asleep, with under a second of CPU time in two hours.&#10;The likeliest cause is the NVIDIA EGL stack (Pascal card, driver 580.196.07):&#10;&lt;a href="https://github.com/NVIDIA/egl-wayland/issues/208"&gt;egl-wayland#208&lt;/a&gt; reports the&#10;same driver hanging plasmashell inside EGL.&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;kill -STOP&lt;/code&gt; on the greeter has the same effect as a hang. In a Tumbleweed VM&#10;with Plasma 6.8.3: lock with a grace time, stop the greeter, move the mouse,&#10;lock again. Black screen, every time. The script is attached to the bug.&lt;/p&gt;&#10;&lt;p&gt;The stop is not even needed. A lock that comes before kwin has noticed the old&#10;greeter's exit hits the same code. Locking again as soon as the session&#10;reported unlocked broke 2 of 11 tries on stock 6.8.3. The window is a few tens&#10;of milliseconds, so in real use it takes a hung greeter.&lt;/p&gt;&#10;&lt;p&gt;One stock run went further. The &lt;code&gt;s_graceTimeKill&lt;/code&gt; flag from the grace unlock&#10;was still set, so KSldApp treated the next greeter's crash as expected and did&#10;not restart it. A &lt;code&gt;loginctl lock-session&lt;/code&gt; in that state sent SIGUSR1 to process&#10;ID 0, which means kwin's whole process group. kwin died and took the session&#10;with it.&lt;/p&gt;&#10;&lt;h2 id="the-fix"&gt;The fix&lt;/h2&gt;&#10;&lt;p&gt;kscreenlocker!401 replaces a greeter process that is still running with a new&#10;&lt;code&gt;QProcess&lt;/code&gt; before starting the next greeter. The old one is killed without&#10;waiting, because this code runs inside the compositor. The exit flags are reset&#10;for every greeter, and &lt;code&gt;lock()&lt;/code&gt; no longer signals pid 0. An earlier merge&#10;request, &lt;a href="https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/289"&gt;!289&lt;/a&gt;,&#10;had the same idea and was closed without being merged.&lt;/p&gt;&#10;&lt;p&gt;While testing I counted kwin's file descriptors: two more after every lock.&#10;kwin hands KSldApp a socket for the greeter's Wayland connection, KSldApp gave&#10;the greeter a &lt;code&gt;dup()&lt;/code&gt; of it, and neither was ever closed. &lt;code&gt;ss -xp&lt;/code&gt; showed every dead socket held twice by kwin. After review by&#10;Vlad Zahorodnii, kscreenlocker!402 lets the greeter inherit the socket itself&#10;instead of a copy, and makes KSldApp own it, so kwin needs no change.&lt;/p&gt;&#10;&lt;p&gt;Vlad merged !402 the same day, and the backport to Plasma 6.8,&#10;&lt;a href="https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/403"&gt;!403&lt;/a&gt;,&#10;right after. !401 is in review. The project page also promised an openQA&#10;test. I left it out: the real trigger is a hung greeter, and a &lt;code&gt;kill -STOP&lt;/code&gt;&#10;test would only soft-fail on every run.&lt;/p&gt;&#10;&lt;h2 id="result"&gt;Result&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Before&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;After&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Lock after a stuck grace greeter&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;black screen, cursor only&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;lock screen, stuck greeter killed&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Fast relock after a grace unlock&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;2 of 11 broken&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;0 of 20 broken&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;kwin file descriptors per lock&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;+2&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;0&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Not tested: locking before suspend, because both S3 and s2idle hang the test VM&#10;on resume. That path goes through the same &lt;code&gt;lock()&lt;/code&gt; call as the logind lock,&#10;which was tested. On the NVIDIA side, I switched to egl-wayland2 for another&#10;reason and have not seen the hang since, but &lt;code&gt;LockGrace=0&lt;/code&gt; has been set the&#10;whole time, so the grace path never ran.&lt;/p&gt;&#10;&lt;p&gt;Until the fix lands, &lt;code&gt;LockGrace=0&lt;/code&gt; avoids the bug. If the screen is already&#10;black, kill the greeter with &lt;code&gt;kill -9&lt;/code&gt; first, then run&#10;&lt;code&gt;loginctl unlock-session&lt;/code&gt;. In the other order, the unlock only sends another&#10;SIGTERM to a greeter that ignores it.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;&lt;strong&gt;How this was made&lt;/strong&gt;&lt;br&gt;&#10;AI help: an AI agent correlated the journal entries of the stuck greeters,&#10;drove the test VM over QMP, and ran the before/after loops and the descriptor&#10;counts.&lt;br&gt;&#10;Code: reviewed line by line by me, like any other patch, and checked in the VM&#10;runs.&lt;/p&gt;&#10;</description></item><item><title>Why renamed Konsole tabs lost their title</title><link>https://paolostivanin.github.io/opensource/konsole-renamed-tabs-lose-their-title/</link><pubDate>Fri, 04 Dec 2026 14:15:00 +0100</pubDate><guid>https://paolostivanin.github.io/opensource/konsole-renamed-tabs-lose-their-title/</guid><category>opensuse</category><category>hackweek</category><category>kde</category><description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Since Konsole 26.04, a renamed tab loses its title while it shows&#10;background activity. Run &lt;code&gt;top&lt;/code&gt; in it, switch to another tab, and the title is&#10;gone. The bug, &lt;a href="https://bugs.kde.org/show_bug.cgi?id=518666"&gt;518666&lt;/a&gt;, was&#10;reported on openSUSE in April, and I hit it on Tumbleweed. During Hack Week 26&#10;I traced it to the &amp;quot;None&amp;quot; entry of the tab colour menus: a transparent&#10;placeholder that leaked into sessions and profiles.&#10;&lt;a href="https://invent.kde.org/utilities/konsole/-/merge_requests/1381"&gt;konsole!1381&lt;/a&gt;&#10;fixes it, repairs profiles and sessions that already store the bad value, and&#10;is in review.&lt;/p&gt;&#10;&lt;h2 id="what-was-wrong"&gt;What was wrong&lt;/h2&gt;&#10;&lt;p&gt;Open two tabs, rename the first to &amp;quot;top&amp;quot;, run &lt;code&gt;top&lt;/code&gt; in it and switch to the&#10;second tab. A second later the first tab has no title. It comes back when the&#10;tab is selected again. Vadym Krevs reported it on openSUSE and found that it&#10;depends on the TabActivityColor and TabColor entries of the saved session.&#10;Lapo Luchini saw it on NixOS and noticed what renaming a tab writes into the&#10;profile:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-ini" data-lang="ini"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Appearance]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;TabActivityColor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;20,22,24,0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;TabColor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;20,22,24,0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The fourth number is the alpha. The title was painted in a fully transparent&#10;colour.&lt;/p&gt;&#10;&lt;h2 id="where-the-colour-came-from"&gt;Where the colour came from&lt;/h2&gt;&#10;&lt;p&gt;The Tab Properties dialog uses KColorCombo for both colours, and KColorCombo&#10;cannot hold &amp;quot;no colour&amp;quot;. Since 2020 the &amp;quot;None&amp;quot; entry has been the window's base&#10;colour with the alpha set to 0, so its label stays readable in the menu. The&#10;dialog returned that placeholder as if the user had picked it. Every OK in Tab&#10;Properties stored it and marked the colours as set by the user, so the&#10;profile's own colours stopped applying.&lt;/p&gt;&#10;&lt;p&gt;For five years this went unseen, because the tab bar skips transparent tab&#10;colours. Konsole 26.04 added a tab activity colour, and that path has no such&#10;check. The placeholder reached the title.&lt;/p&gt;&#10;&lt;h2 id="the-fix"&gt;The fix&lt;/h2&gt;&#10;&lt;p&gt;Lapo's earlier merge request,&#10;&lt;a href="https://invent.kde.org/utilities/konsole/-/merge_requests/1360"&gt;!1360&lt;/a&gt;, was&#10;called a workaround in review by Akseli Lahtinen. !1381 goes after the cause&#10;and adds no check where the tabs are painted:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;the dialog returns an invalid QColor, Qt's &amp;quot;no colour&amp;quot;, for &amp;quot;None&amp;quot;;&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;Session&lt;/code&gt; treats a fully transparent tab colour as unset, so profiles and&#10;sessions saved by 26.04 to 26.08 recover without editing.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Two new ViewManagerTest cases fail without the fix, and the full ctest run&#10;passes. !1381 supersedes !1360 and an older attempt,&#10;&lt;a href="https://invent.kde.org/utilities/konsole/-/merge_requests/1316"&gt;!1316&lt;/a&gt;, and&#10;credits Vadym and Lapo.&lt;/p&gt;&#10;&lt;h2 id="testing"&gt;Testing&lt;/h2&gt;&#10;&lt;p&gt;In a Tumbleweed container, the stock Konsole 26.08.3 package lost the title in&#10;three cases: a renamed tab, a profile that already contains &lt;code&gt;20,22,24,0&lt;/code&gt;&#10;without any renaming, and a renamed tab switched to a profile with a red&#10;activity colour. The patched build kept the title in all three, and the last&#10;one now turns red. The patched package also fixes it on my own Tumbleweed&#10;desktop.&lt;/p&gt;&#10;&lt;p&gt;Comment 8 on the bug reports a title vanishing without a rename. The second&#10;case is one way that happens, but I could not confirm that it is the&#10;reporter's.&lt;/p&gt;&#10;&lt;p&gt;Until the fix is released, picking any colour instead of &amp;quot;None&amp;quot; in Tab&#10;Properties avoids the bug. On Tumbleweed, a patched Konsole is in my OBS&#10;project&#10;&lt;a href="https://build.opensuse.org/package/show/home:polslinux:tools/konsole"&gt;home:polslinux:tools&lt;/a&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;&lt;strong&gt;How this was made&lt;/strong&gt;&lt;br&gt;&#10;AI help: an AI agent built the patched Konsole in a Tumbleweed container, ran&#10;the tests, and took screenshots of the stock and patched builds under Xvfb.&lt;br&gt;&#10;Code: reviewed line by line by me, like any other patch, and checked in the&#10;container runs.&lt;/p&gt;&#10;</description></item><item><title>WebGPU for ONNX Runtime on openSUSE, and a photo editor that uses it</title><link>https://paolostivanin.github.io/opensource/onnxruntime-webgpu-and-greycard/</link><pubDate>Fri, 04 Dec 2026 14:00:00 +0100</pubDate><guid>https://paolostivanin.github.io/opensource/onnxruntime-webgpu-and-greycard/</guid><category>opensuse</category><category>hackweek</category><category>obs</category><category>packaging</category><category>onnxruntime</category><category>webgpu</category><category>rust</category><description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; ONNX Runtime 1.31.0 in&#10;&lt;a href="https://build.opensuse.org/package/show/science:machinelearning/onnxruntime"&gt;science:machinelearning&lt;/a&gt;&#10;now has the WebGPU execution provider, so models can run on the GPU through&#10;Vulkan. In September that looked impossible to package. During Hack&#10;Week 26 I found a way to build Dawn, the WebGPU implementation it needs,&#10;offline. I also packaged greycard 0.13.1, a raw photo editor that loads the&#10;system ONNX Runtime for its AI denoising and masks. It is in review for the&#10;graphics project.&lt;/p&gt;&#10;&lt;h2 id="why-it-was-not-packaged"&gt;Why it was not packaged&lt;/h2&gt;&#10;&lt;p&gt;With WebGPU on, ONNX Runtime's build fetches Dawn, and Dawn's configure step&#10;git-clones about 20 more repositories. OBS builds have no network. When I&#10;updated the package to 1.29.0 in September, the only offline route I found&#10;meant bundling hundreds of megabytes of Dawn dependencies, so WebGPU stayed&#10;off.&lt;/p&gt;&#10;&lt;h2 id="how-it-builds-now"&gt;How it builds now&lt;/h2&gt;&#10;&lt;p&gt;Four of those sources turned out to be enough. The package carries them, at&#10;the commits pinned in Dawn's DEPS file: SPIRV-Headers, SPIRV-Tools,&#10;Vulkan-Headers and Vulkan-Utility-Libraries. abseil comes from the system, and so do the Python&#10;modules Dawn's code generators need. A custom Dawn source path skips ONNX&#10;Runtime's own Dawn patches, so the spec applies them by hand. Dawn is built&#10;from the version ONNX Runtime 1.31.0 pins, with its Vulkan backend. The&#10;C++ library gets WebGPU on x86_64 and aarch64; the Python flavours stay CPU&#10;only.&lt;/p&gt;&#10;&lt;p&gt;The first version shipped Dawn as its own library, &lt;code&gt;libwebgpu_dawn0&lt;/code&gt;. Dawn has&#10;no soname and no stable ABI, so that name would have been made up and could&#10;not stay unambiguous across Dawn updates. Debian packages Dawn as&#10;&lt;code&gt;libwebgpu-dawn0&lt;/code&gt;, with the same made-up soname, and I found no distribution&#10;that ships ONNX Runtime with WebGPU enabled. The current package links Dawn&#10;statically into &lt;code&gt;libonnxruntime1&lt;/code&gt;, as upstream does by default. It declares&#10;&lt;code&gt;bundled(dawn)&lt;/code&gt; and three of its dependencies that get compiled in, ships&#10;their licence texts, and recommends &lt;code&gt;libvulkan1&lt;/code&gt;, which Dawn opens at run&#10;time.&lt;/p&gt;&#10;&lt;p&gt;The request to the devel project had been created before the static version&#10;went into my branch, and it was accepted while I was submitting the update.&#10;OBS accepts a request at the revision it was created from, and its cleanup&#10;option then deleted the branched package, fix included. The fix went straight&#10;into science:machinelearning as&#10;&lt;a href="https://build.opensuse.org/package/rdiff/science:machinelearning/onnxruntime?rev=20"&gt;r20&lt;/a&gt;,&#10;13 minutes later. The package is not in Factory yet.&lt;/p&gt;&#10;&lt;h2 id="greycard"&gt;greycard&lt;/h2&gt;&#10;&lt;p&gt;greycard is written in Rust with Slint. Upstream loads its own prebuilt ONNX&#10;Runtime from beside the executable, and only on x86-64-v3 processors, which&#10;that build needs. A patch makes it take the system &lt;code&gt;libonnxruntime.so.1&lt;/code&gt; on&#10;any x86-64 processor. Two more changes: the check for new releases on GitHub is&#10;off by default, because zypper handles updates, and SQLite is the system&#10;library instead of the copy bundled in rusqlite.&lt;/p&gt;&#10;&lt;p&gt;A review before the submission found three problems, fixed before the request&#10;went out:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;the first loader patch still sat behind upstream's CPU check, so it did&#10;nothing on older processors;&lt;/li&gt;&#10;&lt;li&gt;the License tag missed an OFL font, and SQLite was still the bundled copy;&lt;/li&gt;&#10;&lt;li&gt;a Recommends line used a Fedora package name.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The request is&#10;&lt;a href="https://build.opensuse.org/request/show/1402769"&gt;sr#1402769&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Not tested: running a model through the WebGPU provider on a real GPU, and&#10;greycard's AI features. What was checked: the OBS builds (ONNX Runtime on&#10;Tumbleweed x86_64 and aarch64, greycard on x86_64), rpmlint with no errors on&#10;ONNX Runtime, and that Dawn is inside &lt;code&gt;libonnxruntime&lt;/code&gt; with no separate library&#10;to install.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;&lt;strong&gt;How this was made&lt;/strong&gt;&lt;br&gt;&#10;AI help: an AI agent checked how other distributions package Dawn, reviewed&#10;both packages before submission, and ran the local builds.&lt;br&gt;&#10;Code: the spec files and patches were reviewed line by line by me, like any&#10;other patch, and checked in OBS builds.&lt;/p&gt;&#10;</description></item></channel></rss>