]> git.ipfire.org Git - thirdparty/systemd.git/commit
machine-register: don't unref borrowed varlink reply 41813/head
authorKai Lüke <kai@amutable.com>
Fri, 24 Apr 2026 16:49:09 +0000 (01:49 +0900)
committerKai Lüke <kai@amutable.com>
Mon, 27 Apr 2026 13:14:05 +0000 (22:14 +0900)
commit70d75c22d700098dea39151b12bba9729bed0f67
treee049a1ff490fc744a416e1e5217f028992f2a3cf
parent41cf6891213dd78c5af3c2b8ff05194c52efa62f
machine-register: don't unref borrowed varlink reply

ASAN showed a use-after-free error for systemd-vmspawn's
machine_register call because the reply got accessed and freed again
through _cleanup. The same problem exists in two
verb_machine_control_one/unregister_machine.
Fix these call sites to not set up _cleanup.
src/machine/machinectl.c
src/shared/machine-register.c