[PATCH] test: add coverage for CoredumpFilter=all
authorLuca Boccassi <bluca@debian.org>
Wed, 26 Apr 2023 13:32:04 +0000 (14:32 +0100)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Thu, 26 Jun 2025 00:44:53 +0000 (21:44 -0300)
Origin: upstream, https://github.com/systemd/systemd/commit/cf636aa59eb8c848ed04d5b08aac0acf3f6683d9
Forwarded: not-needed
Last-Update: 2025-07-27

Gbp-Pq: Name fix-stack-overflow-in-coredump-filter-2.patch

test/units/testsuite-74.coredump.sh

index ff23418b2b28fdb9ec752ded1e9c52ee973736bc..99c3f93245b6b7efd28c12a400ca543d05dfb463 100755 (executable)
@@ -126,6 +126,8 @@ coredumpctl info COREDUMP_TIMESTAMP=1679509902000000
 coredumpctl info COREDUMP_HOSTNAME="youmachine"
 coredumpctl info COREDUMP_DUMPABLE="1"
 
+# This used to cause a stack overflow
+systemd-run -t --property CoredumpFilter=all ls /tmp
 systemd-run -t --property CoredumpFilter=default ls /tmp
 
 (! coredumpctl --hello-world)