Forwarded: [PATCH] fuse: allow fatal signals to interrupt forced requests

syzbot posted 1 patch 10 hours ago
There is a newer version of this series
fs/fuse/dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Forwarded: [PATCH] fuse: allow fatal signals to interrupt forced requests
Posted by syzbot 10 hours ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] fuse: allow fatal signals to interrupt forced requests
Author: jeffinphilip14@gmail.com

#syz test

Signed-off-by: Jeffin Philip <jeffinphilip14@gmail.com>
---
 fs/fuse/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 5763a7cd3b37..837f3cec3c86 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -714,7 +714,7 @@ static void request_wait_answer(struct fuse_req *req)
 			queue_interrupt(req);
 	}
 
-	if (!test_bit(FR_FORCE, &req->flags)) {
+	if (!test_bit(FR_FORCE, &req->flags) || unlikely(fatal_signal_pending(current))) {
 		bool removed;
 
 		/* Only fatal signals may interrupt this */
--
2.55.0