syzbot


BUG: unable to handle kernel NULL pointer dereference in hdr_find_e

Status: auto-obsoleted due to no activity on 2023/07/13 08:32
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+5aeaa3371cd5f4f652c2@syzkaller.appspotmail.com
First crash: 362d, last: 348d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel NULL pointer dereference in hdr_find_e origin:upstream missing-backport C done 23 276d 372d 3/3 fixed on 2023/09/08 14:10
upstream KASAN: use-after-free Read in hdr_find_e ntfs3 C done done 66 405d 547d 22/26 fixed on 2023/02/24 13:50
upstream BUG: unable to handle kernel NULL pointer dereference in hdr_find_e (2) ntfs3 C done 4 165d 237d 25/26 fixed on 2023/12/21 03:45
linux-5.15 BUG: unable to handle kernel NULL pointer dereference in hdr_find_e origin:lts-only C done 8 286d 372d 3/3 fixed on 2023/08/01 16:10

Sample crash report:
ntfs3: loop0: Different NTFS' sector size (4096) and media sector size (512)
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 2acb7067 P4D 2acb7067 PUD 205fc067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11468 Comm: syz-executor.0 Not tainted 6.3.0-rc6-syzkaller-00138-g44149752e998 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc900048df618 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff88803142e188 RSI: 000000000000000c RDI: ffffc900048dfb30
RBP: ffffc900048df850 R08: 0000000000000000 R09: ffffc900048df6c0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000030
R13: dffffc0000000000 R14: ffff88803142e178 R15: 0000000000000000
FS:  00007f93b0a95700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000270c3000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hdr_find_e+0x2fa/0x570 fs/ntfs3/index.c:754
 indx_find+0x317/0xb00 fs/ntfs3/index.c:1141
 indx_insert_entry+0x4f2/0x740 fs/ntfs3/index.c:1914
 ntfs_insert_reparse+0x1d7/0x380 fs/ntfs3/fsntfs.c:2372
 ntfs_create_inode+0x1ce2/0x3830 fs/ntfs3/inode.c:1565
 ntfs_symlink+0x46/0x60 fs/ntfs3/namei.c:192
 vfs_symlink+0x12f/0x2a0 fs/namei.c:4398
 do_symlinkat+0x201/0x610 fs/namei.c:4424
 __do_sys_symlinkat fs/namei.c:4440 [inline]
 __se_sys_symlinkat fs/namei.c:4437 [inline]
 __x64_sys_symlinkat+0x99/0xb0 fs/namei.c:4437
 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:0x7f93afc8c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f93b0a95168 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f93afdabf80 RCX: 00007f93afc8c169
RDX: 0000000020000080 RSI: 0000000000000005 RDI: 0000000020000040
RBP: 00007f93afce7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdcffe6e2f R14: 00007f93b0a95300 R15: 0000000000022000
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc900048df618 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff88803142e188 RSI: 000000000000000c RDI: ffffc900048dfb30
RBP: ffffc900048df850 R08: 0000000000000000 R09: ffffc900048df6c0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000030
R13: dffffc0000000000 R14: ffff88803142e178 R15: 0000000000000000
FS:  00007f93b0a95700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000270c3000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/14 08:32 upstream 44149752e998 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in hdr_find_e
2023/03/31 16:03 upstream 62bad54b26db f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in hdr_find_e
* Struck through repros no longer work on HEAD.