syzbot


general protection fault in ata_msense_control_spgt2

Status: upstream: reported C repro on 2024/09/24 05:31
Subsystems: ide
[Documentation on labels]
Reported-by: syzbot+fb415bc0af1b572478e1@syzkaller.appspotmail.com
First crash: 14d, last: 7d18h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ide?] general protection fault in ata_msense_control_spgt2 0 (2) 2024/09/27 06:40

Sample crash report:
program syz-executor248 is using a deprecated SCSI ioctl, please convert it to SG_IO
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 5316 Comm: syz-executor248 Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ata_msense_control_spgt2.isra.0+0x4ce/0x610 drivers/ata/libata-scsi.c:2276
Code: 00 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc e8 a3 3c 8e fb 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 08 84 c0 0f 85 12 01 00 00
RSP: 0018:ffffc9000568f4f0 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffffffff9aaf34fc RCX: ffffffff85feb145
RDX: 0000000000000000 RSI: ffffffff85feb51d RDI: 0000000000000001
RBP: 0000000000000007 R08: 0000000000000001 R09: 0000000000000007
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000007 R14: ffff888027032df8 R15: 00000000000000ff
FS:  00005555661e1380(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000048 CR3: 0000000025686000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ata_msense_control+0x1a4/0x6e0 drivers/ata/libata-scsi.c:2358
 ata_scsiop_mode_sense drivers/ata/libata-scsi.c:2474 [inline]
 ata_scsi_rbuf_fill drivers/ata/libata-scsi.c:1815 [inline]
 ata_scsi_simulate+0xcff/0x34c0 drivers/ata/libata-scsi.c:4316
 __ata_scsi_queuecmd+0xb35/0x13c0 drivers/ata/libata-scsi.c:4191
 ata_scsi_queuecmd+0xac/0x160 drivers/ata/libata-scsi.c:4234
 scsi_dispatch_cmd drivers/scsi/scsi_lib.c:1602 [inline]
 scsi_queue_rq+0x1273/0x3650 drivers/scsi/scsi_lib.c:1844
 blk_mq_dispatch_rq_list+0x443/0x1dc0 block/blk-mq.c:2030
 __blk_mq_sched_dispatch_requests+0x219/0x1620 block/blk-mq-sched.c:301
 blk_mq_sched_dispatch_requests+0xd4/0x150 block/blk-mq-sched.c:331
 blk_mq_run_hw_queue+0x645/0x9a0 block/blk-mq.c:2243
 blk_execute_rq+0x198/0x410 block/blk-mq.c:1396
 sg_scsi_ioctl drivers/scsi/scsi_ioctl.c:593 [inline]
 scsi_ioctl+0x983/0x1840 drivers/scsi/scsi_ioctl.c:901
 sg_ioctl_common drivers/scsi/sg.c:1109 [inline]
 sg_ioctl+0xaf3/0x2750 drivers/scsi/sg.c:1163
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl fs/ioctl.c:893 [inline]
 __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f930cc8a0e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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:00007ffca36a1418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffca36a15e8 RCX: 00007f930cc8a0e9
RDX: 0000000020000380 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f930ccfd610 R08: 002367732f766564 R09: 00007ffca36a15e8
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffca36a15d8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ata_msense_control_spgt2.isra.0+0x4ce/0x610 drivers/ata/libata-scsi.c:2276
Code: 00 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc e8 a3 3c 8e fb 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 08 84 c0 0f 85 12 01 00 00
RSP: 0018:ffffc9000568f4f0 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffffffff9aaf34fc RCX: ffffffff85feb145
RDX: 0000000000000000 RSI: ffffffff85feb51d RDI: 0000000000000001
RBP: 0000000000000007 R08: 0000000000000001 R09: 0000000000000007
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000007 R14: ffff888027032df8 R15: 00000000000000ff
FS:  00005555661e1380(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000048 CR3: 0000000025686000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 83 c4 08          	add    $0x8,%rsp
   4:	5b                   	pop    %rbx
   5:	5d                   	pop    %rbp
   6:	41 5c                	pop    %r12
   8:	41 5d                	pop    %r13
   a:	41 5e                	pop    %r14
   c:	41 5f                	pop    %r15
   e:	c3                   	ret
   f:	cc                   	int3
  10:	cc                   	int3
  11:	cc                   	int3
  12:	cc                   	int3
  13:	e8 a3 3c 8e fb       	call   0xfb8e3cbb
  18:	4c 89 e2             	mov    %r12,%rdx
  1b:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  22:	fc ff df
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2d:	4c 89 e2             	mov    %r12,%rdx
  30:	83 e2 07             	and    $0x7,%edx
  33:	38 d0                	cmp    %dl,%al
  35:	7f 08                	jg     0x3f
  37:	84 c0                	test   %al,%al
  39:	0f 85 12 01 00 00    	jne    0x151

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/27 06:40 upstream 075dbe9f6e3c 9314348a .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/21 01:13 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/21 01:07 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/21 01:05 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 19:39 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 19:39 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 18:24 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 05:48 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 05:42 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 05:30 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/20 05:21 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ata_msense_control_spgt2
2024/09/21 03:43 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ata_msense_control_spgt2
2024/09/21 03:22 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ata_msense_control_spgt2
2024/09/21 01:46 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ata_msense_control_spgt2
2024/09/20 21:23 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ata_msense_control_spgt2
2024/09/20 21:22 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ata_msense_control_spgt2
2024/09/20 21:22 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ata_msense_control_spgt2
* Struck through repros no longer work on HEAD.