syzbot


general protection fault in iomap_dio_bio_end_io

Status: upstream: reported C repro on 2025/11/24 00:01
Subsystems: iomap
[Documentation on labels]
Reported-by: syzbot+a2b9a4ed0d61b1efb3f5@syzkaller.appspotmail.com
Fix commit: 7fd8720dff2d iomap: allocate s_dio_done_wq for async reads as well
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-gce-arm64 ci2-upstream-usb]
First crash: 14d, last: 7d11h
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] iomap: allocate s_dio_done_wq for async reads as well 5 (5) 2025/11/25 08:23
[syzbot] [iomap?] general protection fault in iomap_dio_bio_end_io 1 (3) 2025/11/24 12:49
[PATCH Next] iomap: Add sanity check for dio done workqueue 2 (2) 2025/11/24 09:18
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/11/24 09:30 26m hch@infradead.org git://git.infradead.org/users/hch/misc.git iomap-dio-read-fix OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000038: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000001c0-0x00000000000001c7]
CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__queue_work+0xa4/0xf90 kernel/workqueue.c:2250
Code: 10 31 ff 89 ee e8 ac 24 37 00 85 ed 0f 85 9d 0c 00 00 e8 5f 20 37 00 4d 8d b5 c0 01 00 00 4c 89 f0 48 c1 e8 03 48 89 44 24 30 <0f> b6 04 18 84 c0 0f 85 c4 0c 00 00 4c 89 34 24 41 8b 2e 89 ee 81
RSP: 0018:ffffc900001d7868 EFLAGS: 00010002
RAX: 0000000000000038 RBX: dffffc0000000000 RCX: ffff88801d2d5b80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff8880777ed647 R09: 1ffff1100eefdac8
R10: dffffc0000000000 R11: ffffed100eefdac9 R12: 0000000000000008
R13: 0000000000000000 R14: 00000000000001c0 R15: 0000000000000200
FS:  0000000000000000(0000) GS:ffff888125fbc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000073fc0000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 queue_work_on+0x181/0x270 kernel/workqueue.c:2386
 iomap_dio_bio_end_io+0xf4/0x1c0 fs/iomap/direct-io.c:222
 blk_update_request+0x57e/0xe60 block/blk-mq.c:1006
 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1168
 blk_complete_reqs block/blk-mq.c:1243 [inline]
 blk_done_softirq+0x10a/0x160 block/blk-mq.c:1248
 handle_softirqs+0x27d/0x880 kernel/softirq.c:626
 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1067
 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__queue_work+0xa4/0xf90 kernel/workqueue.c:2250
Code: 10 31 ff 89 ee e8 ac 24 37 00 85 ed 0f 85 9d 0c 00 00 e8 5f 20 37 00 4d 8d b5 c0 01 00 00 4c 89 f0 48 c1 e8 03 48 89 44 24 30 <0f> b6 04 18 84 c0 0f 85 c4 0c 00 00 4c 89 34 24 41 8b 2e 89 ee 81
RSP: 0018:ffffc900001d7868 EFLAGS: 00010002
RAX: 0000000000000038 RBX: dffffc0000000000 RCX: ffff88801d2d5b80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff8880777ed647 R09: 1ffff1100eefdac8
R10: dffffc0000000000 R11: ffffed100eefdac9 R12: 0000000000000008
R13: 0000000000000000 R14: 00000000000001c0 R15: 0000000000000200
FS:  0000000000000000(0000) GS:ffff888125fbc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000073fc0000 CR4: 00000000003526f0
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	31 ff                	xor    %edi,%edi
   2:	89 ee                	mov    %ebp,%esi
   4:	e8 ac 24 37 00       	call   0x3724b5
   9:	85 ed                	test   %ebp,%ebp
   b:	0f 85 9d 0c 00 00    	jne    0xcae
  11:	e8 5f 20 37 00       	call   0x372075
  16:	4d 8d b5 c0 01 00 00 	lea    0x1c0(%r13),%r14
  1d:	4c 89 f0             	mov    %r14,%rax
  20:	48 c1 e8 03          	shr    $0x3,%rax
  24:	48 89 44 24 30       	mov    %rax,0x30(%rsp)
* 29:	0f b6 04 18          	movzbl (%rax,%rbx,1),%eax <-- trapping instruction
  2d:	84 c0                	test   %al,%al
  2f:	0f 85 c4 0c 00 00    	jne    0xcf9
  35:	4c 89 34 24          	mov    %r14,(%rsp)
  39:	41 8b 2e             	mov    (%r14),%ebp
  3c:	89 ee                	mov    %ebp,%esi
  3e:	81                   	.byte 0x81

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/20 02:50 linux-next fe4d0dea039f 26ee5237 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/20 02:01 linux-next fe4d0dea039f 26ee5237 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/20 01:00 linux-next fe4d0dea039f 26ee5237 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/27 02:20 linux-next 663d0d1af3fa d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/27 02:20 linux-next 663d0d1af3fa d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/26 11:41 linux-next 663d0d1af3fa 64219f15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/26 11:41 linux-next 663d0d1af3fa 64219f15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/26 08:07 linux-next 663d0d1af3fa 64219f15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/26 08:07 linux-next 663d0d1af3fa 64219f15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/21 03:21 linux-next 88cbd8ac379c 280ea308 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/21 03:21 linux-next 88cbd8ac379c 280ea308 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/21 01:13 linux-next 88cbd8ac379c 280ea308 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/20 15:40 linux-next 88cbd8ac379c 280ea308 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/20 15:40 linux-next 88cbd8ac379c 280ea308 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/20 00:00 linux-next fe4d0dea039f 26ee5237 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
2025/11/20 00:00 linux-next fe4d0dea039f 26ee5237 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iomap_dio_bio_end_io
* Struck through repros no longer work on HEAD.