------------[ cut here ]------------ WARNING: CPU: 0 PID: 4423 at drivers/scsi/scsi_lib.c:1032 scsi_alloc_sgtables+0x9af/0xbb0 Modules linked in: CPU: 0 PID: 4423 Comm: syz-executor.5 Tainted: G B 5.17.0-rc5-next-20220225 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:scsi_alloc_sgtables+0x9af/0xbb0 Code: 48 c1 e8 03 80 3c 10 00 0f 85 54 01 00 00 48 c7 c0 00 00 00 80 48 2b 05 8f bb 3b 02 48 89 04 24 e9 66 fd ff ff e8 b1 ce 8e fe <0f> 0b 41 bc 0a 00 00 00 e9 83 fa ff ff 41 bc 09 00 00 00 e9 78 fa RSP: 0018:ffff888045a8f590 EFLAGS: 00010206 RAX: 0000000000000460 RBX: ffff88800b436400 RCX: ffffc90007600000 RDX: 0000000000040000 RSI: ffffffff82b49a9f RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000000 R10: ffffffff82b49a32 R11: 0000000000000000 R12: ffff88800b43631c R13: ffff8880093a4000 R14: ffff88800b436300 R15: 0000000000000001 FS: 00007fc397828700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001700 CR3: 00000000418ac000 CR4: 0000000000350ef0 Call Trace: scsi_queue_rq+0x24e3/0x3160 blk_mq_dispatch_rq_list+0x6c2/0x2170 __blk_mq_sched_dispatch_requests+0x20b/0x410 blk_mq_sched_dispatch_requests+0xfb/0x180 __blk_mq_run_hw_queue+0xf9/0x350 __blk_mq_delay_run_hw_queue+0x584/0x660 blk_mq_run_hw_queue+0x30f/0x480 blk_mq_sched_insert_request+0x2e5/0x3e0 blk_execute_rq+0xcc/0x340 sg_io+0x67c/0x1210 scsi_ioctl+0x52b/0x1580 sr_block_ioctl+0x1cb/0x210 blkdev_ioctl+0x362/0x7f0 __x64_sys_ioctl+0x196/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fc39a2b2b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc397828188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc39a3c5f60 RCX: 00007fc39a2b2b19 RDX: 0000000020000380 RSI: 0000000000002285 RDI: 0000000000000003 RBP: 00007fc39a30cf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf863645f R14: 00007fc397828300 R15: 0000000000022000 irq event stamp: 0 hardirqs last enabled at (0): [<0000000000000000>] 0x0 hardirqs last disabled at (0): [] copy_process+0x1cec/0x6d00 softirqs last enabled at (0): [] copy_process+0x1d30/0x6d00 softirqs last disabled at (0): [<0000000000000000>] 0x0 ---[ end trace 0000000000000000 ]--- loop1: detected capacity change from 0 to 512 EXT4-fs (loop1): mounted filesystem without journal. Quota mode: none. blktrace: Concurrent blktraces are not allowed on sr0 loop2: detected capacity change from 0 to 256 FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) loop1: detected capacity change from 0 to 256 FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) device wlan1 entered promiscuous mode loop2: detected capacity change from 0 to 2560 loop5: detected capacity change from 0 to 264192 ext4: Unknown parameter '' FAT-fs (loop5): bogus number of reserved sectors FAT-fs (loop5): Can't find a valid FAT filesystem loop0: detected capacity change from 0 to 40 loop2: detected capacity change from 0 to 2560 ext4: Unknown parameter '' FAT-fs (loop0): Unrecognized mount option "ÿÿÿÿ" or missing value loop5: detected capacity change from 0 to 256 FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'. audit: type=1400 audit(1646120486.907:10): avc: denied { checkpoint_restore } for pid=4484 comm="syz-executor.1" capability=40 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 loop7: detected capacity change from 0 to 256 FAT-fs (loop7): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.