VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Eric W. Biederman <ebiederm@xmission.com> 2021-06-10 15:11:11 -0500 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-06-10 14:02:29 -0700 commit: 06af8679449d4ed282df13191fc52d5ba28ec536 parent: f09eacca59d27efc15001795c33dbc78ca070732
Commit Summary:
coredump: Limit what can interrupt coredumps
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/coredump.c b/fs/coredump.c
index 2868e3e171ae..c3d8fc14b993 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -519,7 +519,7 @@ static bool dump_interrupted(void)
 	 * but then we need to teach dump_write() to restart and clear
 	 * TIF_SIGPENDING.
 	 */
-	return signal_pending(current);
+	return fatal_signal_pending(current) || freezing(current);
 }
 
 static void wait_for_dump_helpers(struct file *file)