program syz-executor1 not setting count and/or reply_len properly FAULT_FLAG_ALLOW_RETRY missing 30 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 16639 Comm: syz-executor1 Not tainted 4.9.65-gea83e4a #95 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801d86e9800 task.stack: ffff8801d1ac8000 RIP: 0010:[] [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] page_ref_count include/linux/page_ref.h:66 [inline] [] put_page_testzero include/linux/mm.h:449 [inline] [] __free_pages+0x21/0x80 mm/page_alloc.c:3910 RSP: 0018:ffff8801d1acfab0 EFLAGS: 00010a07 RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffc90000f39000 RDX: 1bd5a9d5a0000003 RSI: 0000000000000001 RDI: dead4ead0000001c RBP: ffff8801d1acfac0 R08: 0000000000000000 R09: 0000000000001e30 R10: 0000000000002100 R11: ffff8801d86e9800 R12: 0000000000000004 R13: 0000000000000020 R14: ffff8801ce9b0000 R15: dffffc0000000000 FS: 00007fc9ff234700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000026f100000006 CR3: 00000001ca734000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 0000000000000000 ffff8801ce9b0158 ffff8801d1acfb20 ffffffff8265f5d1[ 101.823989] ffff8801ce9b0170 ffffed0039d3602b ffffed0039d3602e ffff8801ce9b0168[ 101.824003] dead4ead00000000 ffff8801ce9b0140 0000000000000000 0000000000000000[ 101.824015] Call Trace: [] sg_remove_scat.isra.20+0x1c1/0x2d0 drivers/scsi/sg.c:1954 [] sg_finish_rem_req+0x2b5/0x340 drivers/scsi/sg.c:1836 [] sg_new_read.isra.21+0x18d/0x3e0 drivers/scsi/sg.c:567 [] sg_read+0x8bd/0x1440 drivers/scsi/sg.c:456 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] vfs_read+0x11e/0x380 fs/read_write.c:475 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Code: ff 66 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 53 48 89 fb 48 83 c7 1c 48 89 fa 48 83 ec 08 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 3d [ 101.824392] RIP [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] page_ref_count include/linux/page_ref.h:66 [inline] [] put_page_testzero include/linux/mm.h:449 [inline] [] __free_pages+0x21/0x80 mm/page_alloc.c:3910 ---[ end trace 52a3baeff3817e92 ]--- Kernel panic - not syncing: Fatal exception ffff8801c83efb98 ffffffff8165e417 00000000000051b9 ffff8801c6a9a0f0 ffff8801c6a9a0a0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5b7/0xd70 arch/x86/mm/fault.c:1396 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] SYSC_sigaltstack kernel/signal.c:3170 [inline] [] SyS_sigaltstack+0x6c/0x90 kernel/signal.c:3168 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..