Forwarded: Test for 6ed94e81a1492fe1d512

syzbot posted 1 patch 1 week, 6 days ago
There is a newer version of this series
Forwarded: Test for 6ed94e81a1492fe1d512
Posted by syzbot 1 week, 6 days ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: Test for 6ed94e81a1492fe1d512
Author: syoshida@redhat.com

#syz test

diff --git a/net/9p/client.c b/net/9p/client.c
index f0dcf252af7e..73098249f379 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -599,7 +599,7 @@ p9_client_rpc(struct p9_client *c, int8_t type, const char *fmt, ...)
 	smp_rmb();
 
 	if (err == -ERESTARTSYS && c->status == Connected &&
-	    type == P9_TFLUSH) {
+	    type == P9_TFLUSH && !fatal_signal_pending(current)) {
 		sigpending = 1;
 		clear_thread_flag(TIF_SIGPENDING);
 		goto again;