From 338f25e2408a360bd3af7f03091b1cbda0887a52 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 16 Jul 2025 19:02:46 +0200 Subject: executor: neutralize errors=panic for gfs2 mounts Append errors=withdraw to the mount options so that gfs2 withdrawals don't lead to kernel panics. Closes #6189. --- executor/common_linux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index f9d23ad29..dea1ba0c8 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3151,6 +3151,9 @@ static long syz_mount_image( // For xfs we need nouuid because xfs has a global uuids table // and if two parallel executors mounts fs with the same uuid, second mount fails. strcat(opts, ",nouuid"); + } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { + // Otherwise ordinary withdrawals turn into kernel panics, see #6189. + strcat(opts, ",errors=withdraw"); } debug("syz_mount_image: size=%llu loop='%s' dir='%s' fs='%s' flags=%llu opts='%s'\n", (uint64)size, loopname, target, fs, (uint64)flags, opts); #if SYZ_EXECUTOR -- cgit mrf-deployment