syzbot


general protection fault in bio_iov_iter_get_pages

Status: auto-obsoleted due to no activity on 2025/12/01 20:19
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+b253ade8e1751d90a7a9@syzkaller.appspotmail.com
First crash: 129d, last: 127d
Cause bisection: introduced by (bisect log) :
commit db076b5db550aa34169dceee81d0974c7b2a2482
Author: David Hildenbrand <david@redhat.com>
Date: Mon Sep 1 15:03:40 2025 +0000

  mm/gup: remove record_subpages()

Crash: BUG: unable to handle kernel NULL pointer dereference in bio_iov_iter_get_pages (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [block?] general protection fault in bio_iov_iter_get_pages 1 (3) 2025/09/07 09:32
Last patch testing requests (11)
Created Duration User Patch Repo Result
2025/12/01 19:51 26m retest repro linux-next OK log
2025/12/01 17:05 26m retest repro linux-next OK log
2025/12/01 17:05 27m retest repro linux-next OK log
2025/12/01 17:05 26m retest repro linux-next OK log
2025/12/01 17:05 26m retest repro linux-next OK log
2025/12/01 17:05 26m retest repro linux-next OK log
2025/09/22 16:09 1h30m retest repro linux-next error
2025/09/22 14:32 8m retest repro linux-next error
2025/09/22 14:32 12m retest repro linux-next error
2025/09/22 14:32 8m retest repro linux-next error
2025/09/07 08:19 24m hdanton@sina.com patch linux-next OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 UID: 0 PID: 9766 Comm: syz.3.848 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:_compound_head include/linux/page-flags.h:284 [inline]
RIP: 0010:__bio_iov_iter_get_pages block/bio.c:1258 [inline]
RIP: 0010:bio_iov_iter_get_pages+0x5b2/0x11c0 block/bio.c:1336
Code: 9c 24 20 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 0c c9 7c fd 48 8b 1b 4c 8d 73 08 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 ef c8 7c fd 4d 8b 3e 4c 89 fe 48
RSP: 0018:ffffc9000bd7f3e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc90014f68000 RSI: 0000000000008faa RDI: 0000000000008fab
RBP: ffffc9000bd7f590 R08: 0000000000000000 R09: ffffffff84a7d3b5
R10: dffffc0000000000 R11: fffff94000363ae9 R12: dffffc0000000000
R13: ffff88806644c294 R14: 0000000000000008 R15: 00000000000000fe
FS:  00007ffb5cdf66c0(0000) GS:ffff888125af9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffb5f902000 CR3: 00000000767ea000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __blkdev_direct_IO+0x60b/0xee0 block/fops.c:215
 blkdev_direct_IO+0x120f/0x1730 block/fops.c:434
 blkdev_direct_write+0x7c/0x140 block/fops.c:719
 blkdev_write_iter+0x547/0x710 block/fops.c:787
 aio_write+0x535/0x7a0 fs/aio.c:1634
 __io_submit_one fs/aio.c:-1 [inline]
 io_submit_one+0x78b/0x1310 fs/aio.c:2053
 __do_sys_io_submit fs/aio.c:2112 [inline]
 __se_sys_io_submit+0x185/0x2f0 fs/aio.c:2082
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffb5eb8ebe9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffb5cdf6038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1
RAX: ffffffffffffffda RBX: 00007ffb5edc6180 RCX: 00007ffb5eb8ebe9
RDX: 00002000000000c0 RSI: 00000000000000f3 RDI: 00007ffb5f902000
RBP: 00007ffb5ec11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffb5edc6218 R14: 00007ffb5edc6180 R15: 00007ffe52bed138
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:284 [inline]
RIP: 0010:__bio_iov_iter_get_pages block/bio.c:1258 [inline]
RIP: 0010:bio_iov_iter_get_pages+0x5b2/0x11c0 block/bio.c:1336
Code: 9c 24 20 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 0c c9 7c fd 48 8b 1b 4c 8d 73 08 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 ef c8 7c fd 4d 8b 3e 4c 89 fe 48
RSP: 0018:ffffc9000bd7f3e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc90014f68000 RSI: 0000000000008faa RDI: 0000000000008fab
RBP: ffffc9000bd7f590 R08: 0000000000000000 R09: ffffffff84a7d3b5
R10: dffffc0000000000 R11: fffff94000363ae9 R12: dffffc0000000000
R13: ffff88806644c294 R14: 0000000000000008 R15: 00000000000000fe
FS:  00007ffb5cdf66c0(0000) GS:ffff8881259f9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd26203b78 CR3: 00000000767ea000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	9c                   	pushf
   1:	24 20                	and    $0x20,%al
   3:	01 00                	add    %eax,(%rax)
   5:	00 48 89             	add    %cl,-0x77(%rax)
   8:	d8 48 c1             	fmuls  -0x3f(%rax)
   b:	e8 03 42 80 3c       	call   0x3c804213
  10:	20 00                	and    %al,(%rax)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 0c c9 7c fd       	call   0xfd7cc928
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	4c 8d 73 08          	lea    0x8(%rbx),%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 ef c8 7c fd       	call   0xfd7cc928
  39:	4d 8b 3e             	mov    (%r14),%r15
  3c:	4c 89 fe             	mov    %r15,%rsi
  3f:	48                   	rex.W

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/08 06:38 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/08 03:50 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/07 17:11 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/07 05:20 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/07 03:09 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/07 01:42 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/07 00:16 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/06 22:43 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/06 21:08 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
2025/09/06 19:13 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in bio_iov_iter_get_pages
* Struck through repros no longer work on HEAD.