v9fs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Charalampos Mitrodimas <charmitro@posteo.net>
To: syzbot <syzbot+eb83fe1cce5833cd66a0@syzkaller.appspotmail.com>
Cc: asmadeus@codewreck.org, ericvh@kernel.org,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux_oss@crudebyte.com, lucho@ionkov.net,
	syzkaller-bugs@googlegroups.com, v9fs@lists.linux.dev
Subject: Re: [syzbot] [v9fs?] KMSAN: uninit-value in v9fs_evict_inode
Date: Mon, 18 Mar 2024 21:49:00 +0000	[thread overview]
Message-ID: <ec51cc1d-beaa-4aa1-a54d-e503223dd365@posteo.net> (raw)
In-Reply-To: <0000000000002750950613c53e72@google.com>

please test uv in v9fs_evict_inode

#syz test 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 360a5304ec03..5d046f63e5fa 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -353,7 +353,8 @@ void v9fs_evict_inode(struct inode *inode)
      filemap_fdatawrite(&inode->i_data);

  #ifdef CONFIG_9P_FSCACHE
-    fscache_relinquish_cookie(v9fs_inode_cookie(v9inode), false);
+    if (v9fs_inode_cookie(v9inode))
+        fscache_relinquish_cookie(v9fs_inode_cookie(v9inode), false);
  #endif
  }



  parent reply	other threads:[~2024-03-18 21:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-16 11:15 [syzbot] [v9fs?] KMSAN: uninit-value in v9fs_evict_inode syzbot
2024-03-18 15:48 ` Charalampos Mitrodimas
2024-03-18 21:38   ` syzbot
2024-03-18 21:49 ` Charalampos Mitrodimas [this message]
2024-03-19  6:26   ` syzbot
2024-03-19 10:18 ` Charalampos Mitrodimas
2024-03-19 10:40   ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec51cc1d-beaa-4aa1-a54d-e503223dd365@posteo.net \
    --to=charmitro@posteo.net \
    --cc=asmadeus@codewreck.org \
    --cc=ericvh@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux_oss@crudebyte.com \
    --cc=lucho@ionkov.net \
    --cc=syzbot+eb83fe1cce5833cd66a0@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=v9fs@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).