sg_write: data in/out 167162/65236 bytes for SCSI command 0xff-- guessing data in; program syz-executor3 not setting count and/or reply_len properly audit: type=1400 audit(1521581635.574:31): avc: denied { setopt } for pid=7143 comm="syz-executor4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 audit: type=1400 audit(1521581635.574:32): avc: denied { net_broadcast } for pid=7143 comm="syz-executor4" capability=11 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 ================================================================== BUG: KASAN: wild-memory-access in __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] BUG: KASAN: wild-memory-access in sg_read_oxfer drivers/scsi/sg.c:1973 [inline] BUG: KASAN: wild-memory-access in sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519 Read of size 4096 at addr ffe70873f7953000 by task syz-executor3/7166 CPU: 0 PID: 7166 Comm: syz-executor3 Not tainted 4.9.88-g71df7bb #60 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c716f9c8 ffffffff81d95f19 ffe70873f7953000 0000000000001000 0000000000000000 0000000000000000 ffff8801c70e8140 ffff8801c716fa10 ffffffff8153eba2 ffffffff8266c1cc 0000000000000282 4d2fd6dc94415731 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_report_error mm/kasan/report.c:353 [inline] [] kasan_report+0x162/0x380 mm/kasan/report.c:412 [] check_memory_region_inline mm/kasan/kasan.c:318 [inline] [] check_memory_region+0x137/0x190 mm/kasan/kasan.c:325 [] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330 [] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] [] sg_read_oxfer drivers/scsi/sg.c:1973 [inline] [] sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519 [] do_loop_readv_writev.part.17+0xc8/0x2b0 fs/read_write.c:715 [] do_loop_readv_writev fs/read_write.c:879 [inline] [] do_readv_writev+0x5fd/0x740 fs/read_write.c:873 [] vfs_readv+0x84/0xc0 fs/read_write.c:897 [] do_readv+0xe6/0x250 fs/read_write.c:923 [] SYSC_readv fs/read_write.c:1010 [inline] [] SyS_readv+0x27/0x30 fs/read_write.c:1007 [] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 7166 Comm: syz-executor3 Tainted: G B 4.9.88-g71df7bb #60 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c716f8e8 ffffffff81d95f19 ffffffff841981e7 ffff8801c716f9c0 0000000000000000 0000000000000000 ffff8801c70e8140 ffff8801c716f9b0 ffffffff8142fa71 0000000041b58ab3 ffffffff8418bc48 ffffffff8142f8b5 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] panic+0x1bc/0x3a8 kernel/panic.c:179 [] kasan_end_report+0x50/0x50 mm/kasan/report.c:180 [] kasan_report_error mm/kasan/report.c:360 [inline] [] kasan_report+0x16b/0x380 mm/kasan/report.c:412 [] check_memory_region_inline mm/kasan/kasan.c:318 [inline] [] check_memory_region+0x137/0x190 mm/kasan/kasan.c:325 [] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330 [] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] [] sg_read_oxfer drivers/scsi/sg.c:1973 [inline] [] sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519 [] do_loop_readv_writev.part.17+0xc8/0x2b0 fs/read_write.c:715 [] do_loop_readv_writev fs/read_write.c:879 [inline] [] do_readv_writev+0x5fd/0x740 fs/read_write.c:873 [] vfs_readv+0x84/0xc0 fs/read_write.c:897 [] do_readv+0xe6/0x250 fs/read_write.c:923 [] SYSC_readv fs/read_write.c:1010 [inline] [] SyS_readv+0x27/0x30 fs/read_write.c:1007 [] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..