Forwarded: Sending for testing

syzbot posted 1 patch 2 weeks, 1 day ago
Forwarded: Sending for testing
Posted by syzbot 2 weeks, 1 day ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: Sending for testing
Author: kriish.sharma2006@gmail.com

#syz test

diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index b677c0e6b9ab..5fdde7d4a393 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -2284,10 +2284,21 @@ static void dump_holder(struct seq_file *seq, const
struct gfs2_holder *gh,
  if (gh_owner)
  comm = gh_owner->comm;
  }
- gfs2_print_dbg(seq, "%s H: s:%s f:%s e:%d p:%ld [%s] %pS\n",
-       fs_id_buf, state2str(gh->gh_state),
-       hflags2str(flags_buf, gh->gh_flags, gh->gh_iflags),
-       gh->gh_error, (long)owner_pid, comm, (void *)gh->gh_ip);
+
+ if(seq){
+        gfs2_print_dbg(seq, "%s H: s:%s f:%s e:%d p:%ld [%s] %pS\n",
+    fs_id_buf, state2str(gh->gh_state),
+    hflags2str(flags_buf, gh->gh_flags, gh->gh_iflags),
+    gh->gh_error, (long)owner_pid, comm, (void *)gh->gh_ip);
+ }
+
+ else{
+        gfs2_print_dbg(seq, "%s H: s:%s f:%s e:%d p:%ld [%s] %p\n",
+                fs_id_buf, state2str(gh->gh_state),
+                hflags2str(flags_buf, gh->gh_flags, gh->gh_iflags),
+                gh->gh_error, (long)owner_pid, comm,
+                (void *)gh->gh_ip);
+ }
  rcu_read_unlock();
 }

-- 
2.34.1