kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access binder: 7714:7716 ioctl 4c82 0 returned -22 general protection fault: 0000 [#1] PREEMPT SMP KASAN NOPTI Modules linked in: CPU: 0 PID: 1845 Comm: syz-executor0 Not tainted 4.14.79+ #3 task: ffff8801d12d1780 task.stack: ffff8801a4ec8000 RIP: 0010:bdev_get_queue include/linux/blkdev.h:1015 [inline] RIP: 0010:bdev_logical_block_size include/linux/blkdev.h:1451 [inline] RIP: 0010:bd_set_size+0x58/0x320 fs/block_dev.c:1396 RSP: 0000:ffff8801a4ecfaa0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1003a25a3f5 RDX: 00000000000000a7 RSI: 0000000000000000 RDI: 0000000000000538 binder: binder_mmap: 7714 20000000-20004000 bad vm_flags failed -1 binder: 7714:7723 ioctl 540f 20001d40 returned -22 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff880195566780 R13: ffff880195566780 R14: ffff8801dab83748 R15: ffff8801dab83928 FS: 0000000000c6a940(0000) GS:ffff8801db800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000072c000 CR3: 00000001a4eea006 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: loop_clr_fd+0x465/0xac0 drivers/block/loop.c:1057 lo_ioctl+0x6e6/0x17d0 drivers/block/loop.c:1383 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x57d/0x18c0 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1873 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7e/0xb0 fs/ioctl.c:692 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x4573d7 RSP: 002b:00007ffe2ff73158 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004573d7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000010 R13: 0000000000030b7b R14: 0000000000000072 R15: 0000000000000000 Code: 03 80 3c 02 00 0f 85 a4 02 00 00 49 8b 9c 24 e0 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 38 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 70 02 00 00 4d 8d 6c 24 08 48 8b 9b 38 05 00 RIP: bdev_get_queue include/linux/blkdev.h:1015 [inline] RSP: ffff8801a4ecfaa0 RIP: bdev_logical_block_size include/linux/blkdev.h:1451 [inline] RSP: ffff8801a4ecfaa0 RIP: bd_set_size+0x58/0x320 fs/block_dev.c:1396 RSP: ffff8801a4ecfaa0 ---[ end trace 24d5bc91988305c5 ]---