syzbot


general protection fault in folio_wait_stable

Status: auto-obsoleted due to no activity on 2023/05/29 20:18
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+d1ae544e6e9dc29bcba5@syzkaller.appspotmail.com
First crash: 376d, last: 371d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] ext4: Handle error pointers being returned from __filemap_get_folio 3 (3) 2023/04/19 13:26
[PATCH] ext4: Handle error pointers being returned from __filemap_get_folio 4 (4) 2023/04/19 12:07
[syzbot] [fs?] [mm?] general protection fault in folio_wait_stable 0 (1) 2023/04/18 11:04

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 30924 Comm: syz-executor.1 Not tainted 6.3.0-rc7-next-20230418-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:folio_inode include/linux/pagemap.h:400 [inline]
RIP: 0010:folio_wait_stable+0x23/0xe0 mm/page-writeback.c:3132
Code: 00 00 00 0f 1f 40 00 f3 0f 1e fa 55 48 89 fd 53 e8 a2 8f d1 ff 48 8d 7d 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a4 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffffc90003b6f808 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffff8880508c20b0 RCX: ffffc90019cab000
RDX: 0000000000000002 RSI: ffffffff81b1f5ae RDI: 0000000000000016
RBP: fffffffffffffffe R08: 0000000000000005 R09: 00000000ffffffef
R10: 00000000fffffff4 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880508c22d8 R14: 0000000000000000 R15: ffff8880508c1e50
FS:  00007fbde305b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6cc5c3e000 CR3: 000000005877b000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 ext4_da_write_begin+0x47f/0x8b0 fs/ext4/inode.c:2939
 generic_perform_write+0x256/0x570 mm/filemap.c:3927
 ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:289
 ext4_dio_write_iter fs/ext4/file.c:617 [inline]
 ext4_file_write_iter+0xa36/0x1740 fs/ext4/file.c:708
 call_write_iter include/linux/fs.h:1854 [inline]
 do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735
 do_iter_write+0x185/0x7e0 fs/read_write.c:860
 vfs_writev+0x1aa/0x670 fs/read_write.c:933
 do_writev+0x133/0x2f0 fs/read_write.c:976
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbde228c169
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:00007fbde305b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007fbde23abf80 RCX: 00007fbde228c169
RDX: 0000000000000008 RSI: 00000000200016c0 RDI: 0000000000000004
RBP: 00007fbde22e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcfbadfdbf R14: 00007fbde305b300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_inode include/linux/pagemap.h:400 [inline]
RIP: 0010:folio_wait_stable+0x23/0xe0 mm/page-writeback.c:3132
Code: 00 00 00 0f 1f 40 00 f3 0f 1e fa 55 48 89 fd 53 e8 a2 8f d1 ff 48 8d 7d 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a4 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffffc90003b6f808 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffff8880508c20b0 RCX: ffffc90019cab000
RDX: 0000000000000002 RSI: ffffffff81b1f5ae RDI: 0000000000000016
RBP: fffffffffffffffe R08: 0000000000000005 R09: 00000000ffffffef
R10: 00000000fffffff4 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880508c22d8 R14: 0000000000000000 R15: ffff8880508c1e50
FS:  00007fbde305b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00784f000 CR3: 000000005877b000 CR4: 00000000003506f0
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	00 00                	add    %al,(%rax)
   2:	0f 1f 40 00          	nopl   0x0(%rax)
   6:	f3 0f 1e fa          	endbr64
   a:	55                   	push   %rbp
   b:	48 89 fd             	mov    %rdi,%rbp
   e:	53                   	push   %rbx
   f:	e8 a2 8f d1 ff       	callq  0xffd18fb6
  14:	48 8d 7d 18          	lea    0x18(%rbp),%rdi
  18:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1f:	fc ff df
  22:	48 89 fa             	mov    %rdi,%rdx
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2d:	0f 85 a4 00 00 00    	jne    0xd7
  33:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  3a:	fc ff df
  3d:	48                   	rex.W
  3e:	8b                   	.byte 0x8b

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/19 20:17 linux-next 67d5d9f013d6 a219f34e .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/18 06:18 linux-next 4aa1da8d9972 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/17 07:56 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/17 06:48 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/17 03:31 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/17 02:22 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/17 01:32 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 22:53 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 21:29 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 15:53 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 15:48 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 08:46 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 07:05 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 04:29 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/16 00:23 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 23:41 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 23:19 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 21:05 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 18:33 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 16:11 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 10:48 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/15 07:34 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/14 11:14 linux-next e3342532ecd3 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
2023/04/14 10:49 linux-next e3342532ecd3 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in folio_wait_stable
* Struck through repros no longer work on HEAD.