syzbot


BUG: unable to handle kernel NULL pointer dereference in generic_perform_write

Status: auto-closed as invalid on 2020/01/28 20:19
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+40d67544bcae7c5347e7@syzkaller.appspotmail.com
First crash: 1708d, last: 1647d
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 generic_perform_write (2) ext4 C done 3 1483d 1481d 15/26 fixed on 2020/07/17 17:58
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in generic_perform_write 2 1668d 1750d 0/1 auto-closed as invalid on 2020/02/07 03:38
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in generic_perform_write (2) C done 1 1413d 1503d 1/1 fixed on 2020/07/21 02:08

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD a1564067 P4D a1564067 PUD 98c43067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9770 Comm: syz-executor.3 Not tainted 5.4.0-rc5+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff88805784f9b0 EFLAGS: 00010246
RAX: ffffffff87bc8b80 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000800002 RSI: ffff88809abf0a90 RDI: ffff88808732ba40
RBP: ffff88805784fad0 R08: 0000000000000000 R09: ffff88805784fa48
R10: ffffed1014b23880 R11: ffff8880a591c407 R12: 0000000000000001
R13: ffff88805784faa8 R14: ffff88809abf0a90 R15: ffff88805784fcc0
FS:  00007f887becb700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000008694b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 generic_perform_write+0x23b/0x540 mm/filemap.c:3305
 __generic_file_write_iter+0x25e/0x630 mm/filemap.c:3434
 ext4_file_write_iter+0x317/0x13c0 fs/ext4/file.c:268
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write+0x4d3/0x770 fs/read_write.c:483
 __vfs_write+0xe1/0x110 fs/read_write.c:496
 vfs_write+0x268/0x5d0 fs/read_write.c:558
 ksys_write+0x14f/0x290 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:620
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459f49
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f887becac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459f49
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f887becb6d4
R13: 00000000004ca5d8 R14: 00000000004e2730 R15: 00000000ffffffff
Modules linked in:
CR2: 0000000000000000
---[ end trace 35cf29ffd77bf9d5 ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff88805784f9b0 EFLAGS: 00010246
RAX: ffffffff87bc8b80 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000800002 RSI: ffff88809abf0a90 RDI: ffff88808732ba40
RBP: ffff88805784fad0 R08: 0000000000000000 R09: ffff88805784fa48
R10: ffffed1014b23880 R11: ffff8880a591c407 R12: 0000000000000001
R13: ffff88805784faa8 R14: ffff88809abf0a90 R15: ffff88805784fcc0
FS:  00007f887becb700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba68366db8 CR3: 000000008694b000 CR4: 00000000001406e0
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
2019/10/30 20:18 upstream 320000e72ec0 5ea87a66 .config console log report ci-upstream-kasan-gce-selinux-root
2019/08/30 19:34 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.