sg_write: data in/out 343638392/8 bytes for SCSI command 0x0-- guessing data in; program syz-executor7 not setting count and/or reply_len properly ================================================================== 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:1970 [inline] BUG: KASAN: wild-memory-access in sg_read+0x12c5/0x1470 drivers/scsi/sg.c:519 Read of size 118 at addr ffe70873f8453000 by task syz-executor7/7994 CPU: 1 PID: 7994 Comm: syz-executor7 Not tainted 4.9.89-g960923f #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ca75fad8 ffffffff81d96069 ffe70873f8453000 0000000000000076 0000000000000000 ffff8801cdde1600 ffff8801c7efa240 ffff8801ca75fb20 ffffffff8153ed02[ 49.126519] audit: type=1400 audit(1521715587.667:36): avc: denied { read } for pid=8022 comm="syz-executor5" 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 ffffffff8266ca15 0000000000000286 208c865e23fc3e67 [] __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:1970 [inline] [] sg_read+0x12c5/0x1470 drivers/scsi/sg.c:519 [] __vfs_read+0x103/0x670 fs/read_write.c:449 [] vfs_read+0x11e/0x380 fs/read_write.c:472 [] SYSC_read fs/read_write.c:588 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:581 [] do_syscall_32_irqs_on arch/x86/entry/common.c:325 [inline] [] do_fast_syscall_32+0x2f5/0x870 arch/x86/entry/common.c:387 [] entry_SYSENTER_compat+0x90/0xa2 arch/x86/entry/entry_64_compat.S:137 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7994 Comm: syz-executor7 Tainted: G B 4.9.89-g960923f #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ca75f9f8 ffffffff81d96069 ffffffff841982a7 ffff8801ca75fad0 0000000000000000 ffff8801cdde1600 ffff8801c7efa240 ffff8801ca75fac0 ffffffff8142fbd1 0000000041b58ab3 ffffffff8418bd08 ffffffff8142fa15 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:1970 [inline] [] sg_read+0x12c5/0x1470 drivers/scsi/sg.c:519 [] __vfs_read+0x103/0x670 fs/read_write.c:449 [] vfs_read+0x11e/0x380 fs/read_write.c:472 [] SYSC_read fs/read_write.c:588 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:581 [] do_syscall_32_irqs_on arch/x86/entry/common.c:325 [inline] [] do_fast_syscall_32+0x2f5/0x870 arch/x86/entry/common.c:387 [] entry_SYSENTER_compat+0x90/0xa2 arch/x86/entry/entry_64_compat.S:137 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..