mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+65d101735df4bb19d2a3@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [fuse?] kernel BUG in fuse_dev_do_write
Date: Sun, 20 Oct 2024 17:39:03 +0800	[thread overview]
Message-ID: <20241020093903.2182-1-hdanton@sina.com> (raw)
In-Reply-To: <6714bb39.050a0220.10f4f4.002e.GAE@google.com>

On Sun, 20 Oct 2024 01:11:37 -0700
> syzbot found the following issue on:
> 
> HEAD commit:    15e7d45e786a Add linux-next specific files for 20241016
> git tree:       linux-next
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=16582f27980000

#syz test

--- x/fs/fuse/dev.c
+++ y/fs/fuse/dev.c
@@ -1668,7 +1668,7 @@ static int fuse_notify_store(struct fuse
 		err = fuse_copy_page(cs, &page, offset, this_num, 0);
 		if (!folio_test_uptodate(folio) && !err && offset == 0 &&
 		    (this_num == folio_size(folio) || file_size == end)) {
-			folio_zero_range(folio, this_num, folio_size(folio));
+			folio_zero_range(folio, this_num, folio_size(folio) - this_num);
 			folio_mark_uptodate(folio);
 		}
 		folio_unlock(folio);
--

  reply	other threads:[~2024-10-20  9:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20  8:11 syzbot
2024-10-20  9:39 ` Hillf Danton [this message]
2024-10-20 10:08   ` syzbot
2024-10-21  1:30 ` syzbot
2024-10-21  3:49   ` Hou Tao

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=20241020093903.2182-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+65d101735df4bb19d2a3@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /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

all inboxes | Powered by JetHome®