syzbot


general protection fault in block_is_partially_uptodate

Status: moderation: reported on 2022/05/31 16:04
Reported-by: syzbot+5412e514b86a63bc0691@syzkaller.appspotmail.com
First crash: 28d, last: 5d14h

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 3 PID: 24620 Comm: syz-executor.1 Not tainted 5.19.0-rc2-syzkaller-00302-g05c6ca8512f2 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:block_is_partially_uptodate+0x154/0x610 fs/buffer.c:2240
Code: 39 e3 0f 87 5e 01 00 00 48 8b 1c 24 31 ed eb 32 e8 81 51 95 ff 48 8d 7b 08 48 b9 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <80> 3c 08 00 0f 85 10 04 00 00 48 8b 5b 08 48 3b 1c 24 0f 84 93 00
RSP: 0018:ffffc90004cbfba0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000040000 RSI: ffffffff81e454df RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000001000 R15: 0000000000000000
FS:  00007f4444772700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa95e99d090 CR3: 0000000075128000 CR4: 0000000000150ee0
Call Trace:
 <TASK>
 folio_seek_hole_data mm/filemap.c:2850 [inline]
 mapping_seek_hole_data+0xc29/0x1330 mm/filemap.c:2911
 iomap_seek_data_iter fs/iomap/seek.c:68 [inline]
 iomap_seek_data+0x137/0x2c0 fs/iomap/seek.c:96
 ext4_llseek+0x272/0x2e0 fs/ext4/file.c:902
 vfs_llseek fs/read_write.c:300 [inline]
 ksys_lseek+0x14f/0x1b0 fs/read_write.c:313
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f4443689109
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f4444772168 EFLAGS: 00000246 ORIG_RAX: 0000000000000008
RAX: ffffffffffffffda RBX: 00007f444379bf60 RCX: 00007f4443689109
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f44436e305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffc081596f R14: 00007f4444772300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:block_is_partially_uptodate+0x154/0x610 fs/buffer.c:2240
Code: 39 e3 0f 87 5e 01 00 00 48 8b 1c 24 31 ed eb 32 e8 81 51 95 ff 48 8d 7b 08 48 b9 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <80> 3c 08 00 0f 85 10 04 00 00 48 8b 5b 08 48 3b 1c 24 0f 84 93 00
RSP: 0018:ffffc90004cbfba0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000040000 RSI: ffffffff81e454df RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000001000 R15: 0000000000000000
FS:  00007f4444772700(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33226000 CR3: 0000000075128000 CR4: 0000000000150ef0
----------------
Code disassembly (best guess):
   0:	39 e3                	cmp    %esp,%ebx
   2:	0f 87 5e 01 00 00    	ja     0x166
   8:	48 8b 1c 24          	mov    (%rsp),%rbx
   c:	31 ed                	xor    %ebp,%ebp
   e:	eb 32                	jmp    0x42
  10:	e8 81 51 95 ff       	callq  0xff955196
  15:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  19:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  20:	fc ff df
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	0f 85 10 04 00 00    	jne    0x444
  34:	48 8b 5b 08          	mov    0x8(%rbx),%rbx
  38:	48 3b 1c 24          	cmp    (%rsp),%rbx
  3c:	0f                   	.byte 0xf
  3d:	84                   	.byte 0x84
  3e:	93                   	xchg   %eax,%ebx

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/06/19 20:08 upstream 05c6ca8512f2 8f633d84 .config log report info general protection fault in block_is_partially_uptodate
ci-qemu-upstream 2022/05/27 22:54 upstream 8291eaafed36 a46af346 .config log report info general protection fault in block_is_partially_uptodate