syzbot


BUG: unable to handle kernel paging request in __bio_release_pages

Status: auto-closed as invalid on 2022/03/27 09:37
Reported-by: syzbot+1e5d596ab29b1f16a42f@syzkaller.appspotmail.com
First crash: 223d, last: 223d

Sample crash report:
BUG: unable to handle page fault for address: ffffea01002662c8
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffef067 P4D 23ffef067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:_compound_head include/linux/page-flags.h:198 [inline]
RIP: 0010:put_page include/linux/mm.h:1242 [inline]
RIP: 0010:__bio_release_pages+0x166/0x3a0 block/bio.c:1044
Code: e8 5f d3 4b ff 49 8d 6c 24 08 45 84 ff 0f 85 cb 00 00 00 e8 6c cf 4b ff 48 89 e8 48 c1 e8 03 42 80 3c 28 00 0f 85 e0 01 00 00 <49> 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 de e8 d5 d1 4b ff 48
RSP: 0018:ffffc90000158c88 EFLAGS: 00010246
RAX: 1ffffd402004cc59 RBX: 0000000000001000 RCX: 0000000000000100
RDX: ffff8881002c1c00 RSI: ffffffff81f7bf94 RDI: 0000000000000003
RBP: ffffea01002662c8 R08: 0000000000001000 R09: 0000000000000000
R10: ffffffff81f7bf81 R11: 0000000000000000 R12: ffffea01002662c0
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffea01002662c8 CR3: 000000011739f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 bio_release_pages include/linux/bio.h:435 [inline]
 iomap_dio_bio_end_io+0x396/0x5f0 fs/iomap/direct-io.c:173
 bio_endio+0x539/0x6a0 block/bio.c:1489
 req_bio_endio block/blk-mq.c:674 [inline]
 blk_update_request+0x420/0x12e0 block/blk-mq.c:742
 scsi_end_request+0x7a/0x980 drivers/scsi/scsi_lib.c:543
 scsi_io_completion+0x177/0x16a0 drivers/scsi/scsi_lib.c:939
 scsi_complete+0x11f/0x570 drivers/scsi/scsi_lib.c:1441
 blk_complete_reqs+0xad/0xe0 block/blk-mq.c:892
 __do_softirq+0x288/0x9a5 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x113/0x170 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240
 </IRQ>
 <TASK>
 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:629
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:132 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
RIP: 0010:acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:553
Code: 89 de e8 8d 7e 73 fb 84 db 75 ac e8 a4 7a 73 fb e8 cf b4 79 fb eb 0c e8 98 7a 73 fb 0f 00 2d 31 fa 79 00 e8 8c 7a 73 fb fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 07 7d 73 fb 48 85 db
RSP: 0018:ffffc900000efd18 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8881002c1c00 RSI: ffffffff85d01474 RDI: 0000000000000000
RBP: ffff8881003d2864 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8149c968 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8881003d2800 R14: ffff8881003d2864 R15: ffff88810a053004
 acpi_idle_enter+0x361/0x500 drivers/acpi/processor_idle.c:688
 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x3e8/0x590 kernel/sched/idle.c:306
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403
 start_secondary+0x265/0x340 arch/x86/kernel/smpboot.c:272
 secondary_startup_64_no_verify+0xb0/0xbb
 </TASK>
Modules linked in:
CR2: ffffea01002662c8
---[ end trace fceafeee8a12f317 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:198 [inline]
RIP: 0010:put_page include/linux/mm.h:1242 [inline]
RIP: 0010:__bio_release_pages+0x166/0x3a0 block/bio.c:1044
Code: e8 5f d3 4b ff 49 8d 6c 24 08 45 84 ff 0f 85 cb 00 00 00 e8 6c cf 4b ff 48 89 e8 48 c1 e8 03 42 80 3c 28 00 0f 85 e0 01 00 00 <49> 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 de e8 d5 d1 4b ff 48
RSP: 0018:ffffc90000158c88 EFLAGS: 00010246
RAX: 1ffffd402004cc59 RBX: 0000000000001000 RCX: 0000000000000100
RDX: ffff8881002c1c00 RSI: ffffffff81f7bf94 RDI: 0000000000000003
RBP: ffffea01002662c8 R08: 0000000000001000 R09: 0000000000000000
R10: ffffffff81f7bf81 R11: 0000000000000000 R12: ffffea01002662c0
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffea01002662c8 CR3: 000000011739f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 5f d3 4b ff       	callq  0xff4bd364
   5:	49 8d 6c 24 08       	lea    0x8(%r12),%rbp
   a:	45 84 ff             	test   %r15b,%r15b
   d:	0f 85 cb 00 00 00    	jne    0xde
  13:	e8 6c cf 4b ff       	callq  0xff4bcf84
  18:	48 89 e8             	mov    %rbp,%rax
  1b:	48 c1 e8 03          	shr    $0x3,%rax
  1f:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  24:	0f 85 e0 01 00 00    	jne    0x20a
* 2a:	49 8b 6c 24 08       	mov    0x8(%r12),%rbp <-- trapping instruction
  2f:	31 ff                	xor    %edi,%edi
  31:	48 89 eb             	mov    %rbp,%rbx
  34:	83 e3 01             	and    $0x1,%ebx
  37:	48 89 de             	mov    %rbx,%rsi
  3a:	e8 d5 d1 4b ff       	callq  0xff4bd214
  3f:	48                   	rex.W

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-usb 2021/12/27 09:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ce1d37cb7697 e4f103c4 .config log report info BUG: unable to handle kernel paging request in __bio_release_pages