public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: syzbot <syzbot+ef0d7bc412553291aa86@syzkaller.appspotmail.com>,
	linkinjeon@kernel.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org, sj1557.seo@samsung.com,
	syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [exfat?] KMSAN: uninit-value in vfat_rename2
Date: Sat, 05 Oct 2024 14:50:39 +0900	[thread overview]
Message-ID: <874j5rgksw.fsf@mail.parknet.co.jp> (raw)
In-Reply-To: <20241004155332.b2a7603be540c692e56dc71c@linux-foundation.org> (Andrew Morton's message of "Fri, 4 Oct 2024 15:53:32 -0700")

Andrew Morton <akpm@linux-foundation.org> writes:

> On Fri, 04 Oct 2024 15:20:34 +0900 OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote:
>
>> syzbot <syzbot+ef0d7bc412553291aa86@syzkaller.appspotmail.com> writes:
>> 
>> > git tree:       upstream
>> > console+strace: https://syzkaller.appspot.com/x/log.txt?x=11b54ea9980000
>> > kernel config:  https://syzkaller.appspot.com/x/.config?x=92da5062b0d65389
>> > dashboard link: https://syzkaller.appspot.com/bug?extid=ef0d7bc412553291aa86
>> > compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
>> > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=14b7ed07980000
>> > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=101dfd9f980000

[...]

>> > IMPORTANT: if you fix the issue, please add the following tag to the commit:
>> > Reported-by: syzbot+ef0d7bc412553291aa86@syzkaller.appspotmail.com
>> 
>> The patch fixes this bug. Please apply.
>> Thanks.
>> 
>> 
>> From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
>> Subject: [PATCH] fat: Fix uninitialized variable
>> Date: Fri, 04 Oct 2024 15:03:49 +0900
>> 
>> Reported-by: syzbot+ef0d7bc412553291aa86@syzkaller.appspotmail.com
>> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
>
> Could we please have some description?  Seems that an IO error triggers this?

OK, I added the description guessed from syzbot log.

Thanks.


From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Subject: [PATCH v2] fat: Fix uninitialized variable
Date: Fri, 04 Oct 2024 15:03:49 +0900

This produced by corrupted fs image of syzbot, in theory, however IO
error would trigger this too.

This affects just a error report, so should not be serious error.

Reported-by: syzbot+ef0d7bc412553291aa86@syzkaller.appspotmail.com
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---
 fs/fat/namei_vfat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c
index 6423e1d..15bf32c 100644
--- a/fs/fat/namei_vfat.c	2024-10-04 14:51:50.473038530 +0900
+++ b/fs/fat/namei_vfat.c	2024-10-04 14:56:53.108618655 +0900
@@ -1037,7 +1037,7 @@ error_inode:
 	if (corrupt < 0) {
 		fat_fs_error(new_dir->i_sb,
 			     "%s: Filesystem corrupted (i_pos %lld)",
-			     __func__, sinfo.i_pos);
+			     __func__, new_i_pos);
 	}
 	goto out;
 }
_
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

      reply	other threads:[~2024-10-05  5:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-03 23:45 [syzbot] [exfat?] KMSAN: uninit-value in vfat_rename2 syzbot
2024-10-04  6:20 ` OGAWA Hirofumi
2024-10-04 22:53   ` Andrew Morton
2024-10-05  5:50     ` OGAWA Hirofumi [this message]

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=874j5rgksw.fsf@mail.parknet.co.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=akpm@linux-foundation.org \
    --cc=linkinjeon@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sj1557.seo@samsung.com \
    --cc=syzbot+ef0d7bc412553291aa86@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