kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN QAT: Invalid ioctl Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 9227 Comm: syz-executor3 Not tainted 4.14.0-rc1-next-20170919+ #7 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 task: ffff88002df8c5c0 task.stack: ffff88003a670000 RIP: 0010:loop_set_fd drivers/block/loop.c:885 [inline] RIP: 0010:lo_ioctl+0x678/0x1b80 drivers/block/loop.c:1353 RSP: 0018:ffff88003a677958 EFLAGS: 00010202 RAX: 0000000000010000 RBX: dffffc0000000000 RCX: ffffc900015d8000 RDX: 000000000000003b RSI: ffffffff83549fe8 RDI: 00000000000001d8 RBP: ffff88003a6779d0 R08: ffffffff85b38ea0 R09: 1ffff100074ceed4 R10: ffff88002df8c5c0 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88006b30f200 R14: ffff88006beeb080 R15: ffff88006b30f358 FS: 00007fca46f6b700(0000) GS:ffff88003ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020835000 CR3: 000000006805d000 CR4: 00000000000006f0 DR0: 0000000020000008 DR1: 0000000020000000 DR2: 000000000000007b DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0xc07/0x1de0 block/ioctl.c:594 block_ioctl+0xea/0x130 fs/block_dev.c:1870 QAT: Invalid ioctl vfs_ioctl fs/ioctl.c:45 [inline] do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:685 SYSC_ioctl fs/ioctl.c:700 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:691 do_syscall_64+0x26c/0x8d0 arch/x86/entry/common.c:287 entry_SYSCALL64_slow_path+0x25/0x25 RIP: 0033:0x4474f9 RSP: 002b:00007fca46f6ac08 EFLAGS: 00000296 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00000000004474f9 RDX: 0000000000000016 RSI: 0000000000004c00 RDI: 0000000000000006 RBP: 00000000007080b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 00000000ffffffff R13: 0000000000002470 R14: 00000000006e5530 R15: 0000000000004c00 Code: 00 00 00 48 89 fa 48 c1 ea 03 80 3c 1a 00 0f 85 81 14 00 00 4d 8b a4 24 f0 00 00 00 49 8d bc 24 d8 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 1a 00 0f 85 56 14 00 00 4d 8b a4 24 d8 01 00 00 4c 89 e2 RIP: loop_set_fd drivers/block/loop.c:885 [inline] RSP: ffff88003a677958 RIP: lo_ioctl+0x678/0x1b80 drivers/block/loop.c:1353 RSP: ffff88003a677958 ---[ end trace ab4dd624476bc7dc ]--- device lo entered promiscuous mode device lo left promiscuous mode sg_write: data in/out 213971796/75 bytes for SCSI command 0x0-- guessing data in; program syz-executor2 not setting count and/or reply_len properly sg_write: data in/out 1785953271/165 bytes for SCSI command 0xc0-- guessing data in; program syz-executor2 not setting count and/or reply_len properly