From: Pavel Skripkin <paskripkin@gmail.com>
To: syzbot <syzbot+c95173762127ad76a824@syzkaller.appspotmail.com>,
almaz.alexandrovich@paragon-software.com,
linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
nathan@kernel.org, ndesaulniers@google.com,
ntfs3@lists.linux.dev, syzkaller-bugs@googlegroups.com,
trix@redhat.com
Subject: Re: [syzbot] general protection fault in ntfs_update_mftmirr
Date: Thu, 21 Apr 2022 23:26:05 +0300 [thread overview]
Message-ID: <83061bda-5a91-6123-a006-aaeb5458d5d7@gmail.com> (raw)
In-Reply-To: <00000000000022487405dd25bd0d@google.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1074 bytes --]
On 4/21/22 11:17, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: b253435746d9 Merge tag 'xtensa-20220416' of https://github..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=11588ba2f00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=4cdc9619f45633df
> dashboard link: https://syzkaller.appspot.com/bug?extid=c95173762127ad76a824
> compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=175b13c0f00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1502f854f00000
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+c95173762127ad76a824@syzkaller.appspotmail.com
>
If ntfs_fill_super wasn't called then sbi->sb is NULL.
#syz test:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
With regards,
Pavel Skripkin
[-- Attachment #1.1.2: ph --]
[-- Type: text/plain, Size: 487 bytes --]
diff --git a/fs/ntfs3/fsntfs.c b/fs/ntfs3/fsntfs.c
index 3de5700a9b83..891125ca6848 100644
--- a/fs/ntfs3/fsntfs.c
+++ b/fs/ntfs3/fsntfs.c
@@ -831,10 +831,15 @@ int ntfs_update_mftmirr(struct ntfs_sb_info *sbi, int wait)
{
int err;
struct super_block *sb = sbi->sb;
- u32 blocksize = sb->s_blocksize;
+ u32 blocksize;
sector_t block1, block2;
u32 bytes;
+ if (!sb)
+ return -EINVAL;
+
+ blocksize = sb->s_blocksize;
+
if (!(sbi->flags & NTFS_FLAGS_MFTMIRR))
return 0;
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2022-04-21 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 8:17 [syzbot] general protection fault in ntfs_update_mftmirr syzbot
2022-04-21 20:26 ` Pavel Skripkin [this message]
2022-04-21 20:42 ` 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=83061bda-5a91-6123-a006-aaeb5458d5d7@gmail.com \
--to=paskripkin@gmail.com \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=ntfs3@lists.linux.dev \
--cc=syzbot+c95173762127ad76a824@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=trix@redhat.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