syzbot


WARNING in scsi_alloc_sgtables
Status: upstream: reported C repro on 2021/07/18 13:05
Reported-by: syzbot+d44b35ecfb807e5af0b5@syzkaller.appspotmail.com
First crash: 310d, last: 3d01h

Sample crash report:
WARNING: CPU: 2 PID: 3643 at drivers/scsi/scsi_lib.c:1032 scsi_alloc_sgtables+0xc7d/0xf70 drivers/scsi/scsi_lib.c:1032
Modules linked in:

CPU: 2 PID: 3643 Comm: syz-executor397 Not tainted 5.17.0-rc3-syzkaller-00316-gb81b1829e7e3 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:scsi_alloc_sgtables+0xc7d/0xf70 drivers/scsi/scsi_lib.c:1032
Code: e7 fc 31 ff 44 89 f6 e8 c1 4e e7 fc 45 85 f6 0f 84 1a f5 ff ff e8 93 4c e7 fc 83 c5 01 0f b7 ed e9 0f f5 ff ff e8 83 4c e7 fc <0f> 0b 41 bc 0a 00 00 00 e9 2b fb ff ff 41 bc 09 00 00 00 e9 20 fb
RSP: 0018:ffffc90000d07558 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88801bfc96a0 RCX: 0000000000000000
RDX: ffff88801c876000 RSI: ffffffff849060bd RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff849055b9 R11: 0000000000000000 R12: ffff888012b8c000
R13: ffff88801bfc9580 R14: 0000000000000000 R15: ffff88801432c000
FS:  00007effdec8e700(0000) GS:ffff88802cc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007effdec6d718 CR3: 00000000206d6000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 scsi_setup_scsi_cmnd drivers/scsi/scsi_lib.c:1219 [inline]
 scsi_prepare_cmd drivers/scsi/scsi_lib.c:1614 [inline]
 scsi_queue_rq+0x283e/0x3630 drivers/scsi/scsi_lib.c:1730
 blk_mq_dispatch_rq_list+0x6ea/0x22e0 block/blk-mq.c:1851
 __blk_mq_sched_dispatch_requests+0x20b/0x410 block/blk-mq-sched.c:299
 blk_mq_sched_dispatch_requests+0xfb/0x180 block/blk-mq-sched.c:332
 __blk_mq_run_hw_queue+0xf9/0x350 block/blk-mq.c:1968
 __blk_mq_delay_run_hw_queue+0x5b6/0x6c0 block/blk-mq.c:2045
 blk_mq_run_hw_queue+0x30f/0x480 block/blk-mq.c:2096
 blk_mq_sched_insert_request+0x340/0x440 block/blk-mq-sched.c:451
 blk_execute_rq+0xcc/0x340 block/blk-mq.c:1231
 sg_io+0x67c/0x1210 drivers/scsi/scsi_ioctl.c:485
 scsi_ioctl_sg_io drivers/scsi/scsi_ioctl.c:866 [inline]
 scsi_ioctl+0xa66/0x1560 drivers/scsi/scsi_ioctl.c:921
 sd_ioctl+0x199/0x2a0 drivers/scsi/sd.c:1576
 blkdev_ioctl+0x37a/0x800 block/ioctl.c:588
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 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+0x44/0xae
RIP: 0033:0x7effdecdc5d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 14 00 00 90 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:00007effdec8e2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007effded664c0 RCX: 00007effdecdc5d9
RDX: 0000000020002300 RSI: 0000000000002285 RDI: 0000000000000004
RBP: 00007effded34034 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007effded34054 R14: 2f30656c69662f2e R15: 00007effded664c8
 </TASK>

Crashes (83):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/02/13 06:00 upstream b81b1829e7e3 8b9ca619 .config log report syz C WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/03/04 11:45 upstream 38f80f42147f 45a13a73 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/02/13 21:16 upstream 42964a18f81c 8b9ca619 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/02/13 05:43 upstream b81b1829e7e3 8b9ca619 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/01/17 07:07 upstream 79e06c4c4950 723cfaf0 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/01/15 14:07 upstream 112450df61b7 723cfaf0 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/01/15 12:39 upstream 112450df61b7 723cfaf0 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/01/14 13:17 upstream fb3b0673b7d5 b8d780ab .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2022/01/11 14:46 upstream fe8152b38d3a 1884f55a .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/07 03:08 upstream f80ef9e49fdf 0230ba3e .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/04 16:18 upstream 12119cfa1052 a617004c .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/04 08:41 upstream 12119cfa1052 a617004c .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/03 08:01 upstream a51e3ac43ddb 61f86278 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/02 04:16 upstream 58e1100fdc59 61f86278 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/01 12:47 upstream 58e1100fdc59 5fa3eacc .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/01 05:43 upstream 58e1100fdc59 80270552 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/12/01 03:49 upstream 58e1100fdc59 80270552 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/30 10:04 upstream d58071a8a76d d0830353 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/30 07:35 upstream d58071a8a76d d0830353 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/28 19:20 upstream 3498e7f2bb41 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/28 18:56 upstream 3498e7f2bb41 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/27 17:05 upstream c5c17547b778 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/26 22:25 upstream a4849f6000e2 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/26 18:39 upstream a4849f6000e2 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/26 05:43 upstream b501b85957de 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/26 05:11 upstream b501b85957de 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/11/25 06:36 upstream 5f53fa508db0 545ab074 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/20 04:11 upstream 2734d6c1b1a0 bc48c9ab .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/20 04:09 upstream 2734d6c1b1a0 bc48c9ab .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/16 13:17 upstream dd9c7df94c1b f115ae98 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/16 03:11 upstream dd9c7df94c1b f115ae98 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/15 20:35 upstream dd9c7df94c1b a44e4957 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/15 14:05 upstream 8096acd7442e a44e4957 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/15 04:52 upstream 8096acd7442e b9a2f64e .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/14 19:29 upstream 40226a3d96ef 94e0b707 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream 2021/07/14 12:57 upstream 40226a3d96ef 94e0b707 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/05/18 08:45 upstream 210e04ff7681 744a39e2 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/03/04 11:47 upstream 38f80f42147f 45a13a73 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/02/20 11:27 upstream 4f12b742eb2b 3cd800e4 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/01/18 23:54 upstream 99613159ad74 731a2d23 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/01/16 06:21 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/01/14 23:44 upstream 871bfa02d08d 53e00b45 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/01/14 00:16 upstream 147cc5838c0f b8d780ab .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/01/10 06:00 upstream df0cc57e057f 2ca0d385 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2022/01/05 14:28 upstream c9e6606c7fe9 0a2584dd .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/12/07 07:36 upstream f80ef9e49fdf 0230ba3e .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/12/06 15:57 upstream 0fcfb00b28c0 579a8754 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/12/04 14:23 upstream 12119cfa1052 a617004c .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/12/03 22:04 upstream 5f58da2befa5 c7c20675 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/12/01 00:42 upstream f080815fdb3e 80270552 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/11/30 04:35 upstream d58071a8a76d d0830353 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/11/29 05:13 upstream d06c942efea4 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/11/28 07:15 upstream 741392771338 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/11/27 12:59 upstream 1bff7d7e8c48 63eeac02 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/10/15 20:38 upstream ec681c53f8d2 0c5d9412 .config log report info WARNING in scsi_alloc_sgtables
ci-qemu-upstream-386 2021/07/20 04:20 upstream 2734d6c1b1a0 bc48c9ab .config log report info WARNING in scsi_alloc_sgtables