================================================================== BUG: KASAN: null-ptr-deref in copy_to_user arch/x86/include/asm/uaccess.h:731 [inline] BUG: KASAN: null-ptr-deref in snd_timer_user_read+0x594/0x710 sound/core/timer.c:2006 Read of size 32 at addr (null) by task syz-executor2/9309 CPU: 1 PID: 9309 Comm: syz-executor2 Not tainted 4.9.141+ #23 ffff8801c40ff958 ffffffff81b42e79 0000000000000000 0000000000000020 0000000000000000 ffff8801c40ffb28 ffff8801cf9be500 ffff8801c40ff9a0 ffffffff81500bed ffffffff8224e014 0000000000000282 7d36930dafc0a772 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.cold.6+0x6d/0x2fe mm/kasan/report.c:412 [] check_memory_region_inline mm/kasan/kasan.c:318 [inline] [] check_memory_region+0x14d/0x1b0 mm/kasan/kasan.c:325 [] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330 [] copy_to_user arch/x86/include/asm/uaccess.h:731 [inline] [] snd_timer_user_read+0x594/0x710 sound/core/timer.c:2006 [] do_loop_readv_writev.part.1+0xd5/0x280 fs/read_write.c:718 [] do_loop_readv_writev fs/read_write.c:707 [inline] [] compat_do_readv_writev+0x570/0x7b0 fs/read_write.c:1091 [] compat_readv+0xe2/0x150 fs/read_write.c:1120 [] do_compat_readv+0xf2/0x1d0 fs/read_write.c:1140 [] C_SYSC_readv fs/read_write.c:1152 [inline] [] compat_SyS_readv+0x26/0x30 fs/read_write.c:1148 [] do_syscall_32_irqs_on arch/x86/entry/common.c:328 [inline] [] do_fast_syscall_32+0x2f1/0xa10 arch/x86/entry/common.c:390 [] entry_SYSENTER_compat+0x90/0xa2 arch/x86/entry/entry_64_compat.S:137 ================================================================== audit_printk_skb: 1797 callbacks suppressed audit: type=1400 audit(1546215021.533:30670): avc: denied { net_admin } for pid=2080 comm="syz-executor4" capability=12 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 audit: type=1400 audit(1546215021.533:30671): avc: denied { read } for pid=9342 comm="syz-executor3" path="socket:[31773]" dev="sockfs" ino=31773 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 audit: type=1400 audit(1546215021.593:30672): avc: denied { net_admin } for pid=9347 comm="syz-executor5" capability=12 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 audit: type=1400 audit(1546215021.643:30673): avc: denied { net_admin } for pid=2080 comm="syz-executor4" capability=12 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 audit: type=1400 audit(1546215021.673:30674): avc: denied { net_admin } for pid=2080 comm="syz-executor4" capability=12 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 audit: type=1400 audit(1546215021.703:30675): avc: denied { net_admin } for pid=2080 comm="syz-executor4" capability=12 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 audit: type=1400 audit(1546215021.733:30676): avc: denied { sys_admin } for pid=2075 comm="syz-executor5" capability=21 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 audit: type=1400 audit(1546215021.733:30677): avc: denied { sys_admin } for pid=2075 comm="syz-executor5" capability=21 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 audit: type=1400 audit(1546215021.733:30678): avc: denied { sys_admin } for pid=2075 comm="syz-executor5" capability=21 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 audit: type=1400 audit(1546215021.743:30679): avc: denied { sys_admin } for pid=2078 comm="syz-executor3" capability=21 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