syzbot


BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (2)

Status: auto-obsoleted due to no activity on 2023/09/20 22:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+41ee2d2dcc4fc2f2f60c@syzkaller.appspotmail.com
First crash: 621d, last: 544d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly fs report (May 2023) 0 (1) 2023/05/06 14:02
[syzbot] [fs?] BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (2) 0 (1) 2023/04/24 07:18
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (3) erofs C 492 26d 82d 28/28 fixed on 2024/11/12 23:31
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (4) fs C 205 6h08m 21d 0/28 upstream: reported C repro on 2024/11/16 23:40
upstream BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio fs mm 8 771d 780d 0/28 auto-obsoleted due to no activity on 2023/02/26 19:26

Sample crash report:
loop5: detected capacity change from 0 to 4096
ntfs: volume version 3.1.
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 7bc54067 P4D 7bc54067 PUD 2c434067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5091 Comm: syz-executor.5 Not tainted 6.4.0-rc6-syzkaller-00006-gfd37b884003c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000bb07618 EFLAGS: 00010293
RAX: ffffffff81bc7f71 RBX: 0000000000000000 RCX: ffff88807aa13b80
RDX: 0000000000000000 RSI: ffffea0001303f00 RDI: 0000000000000000
RBP: ffffc9000bb076f8 R08: dffffc0000000000 R09: fffff940002607e1
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001303f00
R13: 1ffffd40002607e1 R14: 0000000000000000 R15: ffffea0001303f08
FS:  00007f859f3ad700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000005190b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 filemap_read_folio+0x19d/0x7a0 mm/filemap.c:2421
 do_read_cache_folio+0x134/0x820 mm/filemap.c:3680
 do_read_cache_page+0x32/0x220 mm/filemap.c:3746
 read_mapping_page include/linux/pagemap.h:772 [inline]
 ntfs_map_page fs/ntfs/aops.h:75 [inline]
 ntfs_check_logfile+0x3e1/0x28b0 fs/ntfs/logfile.c:532
 load_and_check_logfile+0x6f/0xd0 fs/ntfs/super.c:1223
 load_system_files+0x32fb/0x4840 fs/ntfs/super.c:1949
 ntfs_fill_super+0x19b3/0x2bd0 fs/ntfs/super.c:2900
 mount_bdev+0x2d0/0x3f0 fs/super.c:1380
 legacy_get_tree+0xef/0x190 fs/fs_context.c:610
 vfs_get_tree+0x8c/0x270 fs/super.c:1510
 do_new_mount+0x28f/0xae0 fs/namespace.c:3039
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f859e68d6ca
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f859f3acf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000001ee66 RCX: 00007f859e68d6ca
RDX: 0000000020000000 RSI: 000000002001ee80 RDI: 00007f859f3acfe0
RBP: 00007f859f3ad020 R08: 00007f859f3ad020 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000202 R12: 0000000020000000
R13: 000000002001ee80 R14: 00007f859f3acfe0 R15: 00000000200003c0
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000bb07618 EFLAGS: 00010293
RAX: ffffffff81bc7f71 RBX: 0000000000000000 RCX: ffff88807aa13b80
RDX: 0000000000000000 RSI: ffffea0001303f00 RDI: 0000000000000000
RBP: ffffc9000bb076f8 R08: dffffc0000000000 R09: fffff940002607e1
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001303f00
R13: 1ffffd40002607e1 R14: 0000000000000000 R15: ffffea0001303f08
FS:  00007f859f3ad700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000005190b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/12 22:50 upstream fd37b884003c aaed0183 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2023/04/22 16:30 upstream 8e41e0a57566 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2023/04/08 01:01 upstream aa318c48808c 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2023/04/07 10:26 upstream f2afccfefe7b f7ba566d .config console log report info ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2023/04/06 14:40 upstream 99ddf2254feb 08707520 .config console log report info ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
2023/03/28 17:22 upstream 3a93e40326c8 fc067f05 .config console log report info ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio
* Struck through repros no longer work on HEAD.