Warning: Permanently added '10.128.1.33' (ECDSA) to the list of known hosts. [ 339.484553] random: sshd: uninitialized urandom read (32 bytes read) [ 339.581957] audit: type=1400 audit(1561521835.234:7): avc: denied { map } for pid=1830 comm="syz-executor749" path="/root/syz-executor749282097" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program [ 339.970046] hrtimer: interrupt took 37009 ns executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 344.661054] ================================================================== [ 344.668518] BUG: KASAN: use-after-free in perf_output_read+0xe58/0xfc0 [ 344.675196] Read of size 8 at addr ffff8881d0ce6608 by task syz-executor749/1887 [ 344.682713] [ 344.684336] CPU: 0 PID: 1887 Comm: syz-executor749 Not tainted 4.14.129+ #11 [ 344.691504] Call Trace: [ 344.694092] dump_stack+0xb9/0x10e [ 344.697629] ? perf_output_read+0xe58/0xfc0 [ 344.701953] print_address_description+0x60/0x226 [ 344.706784] ? perf_output_read+0xe58/0xfc0 [ 344.711096] kasan_report.cold+0xae/0x2d5 [ 344.715251] ? perf_output_read+0xe58/0xfc0 [ 344.719570] ? perf_event_exit_cpu_context+0x170/0x170 [ 344.724838] ? deref_stack_reg+0xaa/0xe0 [ 344.728934] ? perf_output_copy+0x149/0x1d0 [ 344.733252] ? perf_output_sample+0xcea/0x1700 [ 344.737826] ? __perf_event_header__init_id.isra.0+0x276/0x430 [ 344.743793] ? perf_prepare_sample+0x656/0x1330 [ 344.748453] ? perf_event__output_id_sample+0x70/0x70 [ 344.753641] ? perf_output_sample+0x1700/0x1700 [ 344.758299] ? lock_acquire+0x10f/0x380 [ 344.762293] ? perf_prepare_sample+0x1330/0x1330 [ 344.767059] ? perf_event_output_forward+0x10b/0x220 [ 344.772159] ? perf_prepare_sample+0x1330/0x1330 [ 344.777010] ? check_preemption_disabled+0x35/0x1f0 [ 344.782026] ? __perf_event_overflow+0x116/0x320 [ 344.786774] ? perf_swevent_overflow+0x17b/0x210 [ 344.791518] ? ___perf_sw_event+0x11b/0x4a0 [ 344.795850] ? perf_swevent_event+0x19c/0x270 [ 344.800343] ? ___perf_sw_event+0x2a4/0x4a0 [ 344.804754] ? perf_pending_event+0xd0/0xd0 [ 344.809074] ? __handle_mm_fault+0xd96/0x2640 [ 344.813561] ? lock_downgrade+0x5d0/0x5d0 [ 344.817708] ? __handle_mm_fault+0xcc0/0x2640 [ 344.822205] ? _raw_spin_unlock+0x29/0x40 [ 344.826346] ? __handle_mm_fault+0x6c5/0x2640 [ 344.830843] ? vm_insert_mixed_mkwrite+0x30/0x30 [ 344.835591] ? __brelse+0x43/0x60 [ 344.839054] ? __do_page_fault+0x48e/0xb80 [ 344.843285] ? __perf_sw_event+0x42/0x80 [ 344.847337] ? __perf_sw_event+0x42/0x80 [ 344.851388] ? __do_page_fault+0x785/0xb80 [ 344.855615] ? bad_area_access_error+0x340/0x340 [ 344.860360] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 344.865197] ? page_fault+0x22/0x50 [ 344.868827] ? iov_iter_fault_in_readable+0x29c/0x350 [ 344.874008] ? iov_iter_init+0x1c0/0x1c0 [ 344.878071] ? generic_perform_write+0x158/0x450 [ 344.882850] ? filemap_page_mkwrite+0x2d0/0x2d0 [ 344.887512] ? current_time+0xb0/0xb0 [ 344.891323] ? __generic_file_write_iter+0x32e/0x550 [ 344.896413] ? generic_write_checks+0x252/0x410 [ 344.901078] ? ext4_file_write_iter+0x551/0xd60 [ 344.905740] ? ext4_llseek+0x7f0/0x7f0 [ 344.909630] ? retint_kernel+0x2d/0x2d [ 344.913530] ? __vfs_write+0x401/0x5a0 [ 344.917412] ? kernel_read+0x110/0x110 [ 344.921307] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 344.926764] ? rcu_read_lock_sched_held+0x10a/0x130 [ 344.931777] ? vfs_write+0x17f/0x4d0 [ 344.935546] ? SyS_write+0x102/0x250 [ 344.939252] ? SyS_read+0x250/0x250 [ 344.942870] ? do_syscall_64+0x43/0x510 [ 344.946844] ? SyS_read+0x250/0x250 [ 344.950464] ? do_syscall_64+0x19b/0x510 [ 344.954531] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 344.960399] [ 344.962013] Allocated by task 1885: [ 344.965633] kasan_kmalloc.part.0+0x4f/0xd0 [ 344.969959] __kmalloc+0x143/0x340 [ 344.973515] rb_alloc+0x7b/0x490 [ 344.976886] perf_mmap+0xc13/0x1390 [ 344.980518] mmap_region+0x7c9/0xf00 [ 344.984223] do_mmap+0x548/0xb80 [ 344.987578] vm_mmap_pgoff+0x177/0x1c0 [ 344.991450] SyS_mmap_pgoff+0xf4/0x1b0 [ 344.995329] do_syscall_64+0x19b/0x510 [ 344.999204] [ 345.000832] Freed by task 1887: [ 345.004105] kasan_slab_free+0xb0/0x190 [ 345.008070] kfree+0xf5/0x310 [ 345.011170] rcu_process_callbacks+0x56f/0xf40 [ 345.015856] __do_softirq+0x234/0x9ca [ 345.019658] [ 345.021277] The buggy address belongs to the object at ffff8881d0ce6500 [ 345.021277] which belongs to the cache kmalloc-512 of size 512 [ 345.033937] The buggy address is located 264 bytes inside of [ 345.033937] 512-byte region [ffff8881d0ce6500, ffff8881d0ce6700) [ 345.045807] The buggy address belongs to the page: [ 345.050779] page:ffffea0007433980 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 345.060745] flags: 0x4000000000010200(slab|head) [ 345.065504] raw: 4000000000010200 0000000000000000 0000000000000000 00000001800c000c [ 345.073398] raw: ffffea00073a9b00 0000000600000006 ffff8881da802c00 0000000000000000 [ 345.081266] page dumped because: kasan: bad access detected [ 345.086967] [ 345.088588] Memory state around the buggy address: [ 345.093521] ffff8881d0ce6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 345.100888] ffff8881d0ce6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 345.108330] >ffff8881d0ce6600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 345.115678] ^ [ 345.119302] ffff8881d0ce6680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 345.126704] ffff8881d0ce6700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 345.134052] ================================================================== [ 345.141451] Disabling lock debugging due to kernel taint [ 345.146985] Kernel panic - not syncing: panic_on_warn set ... [ 345.146985] [ 345.154386] CPU: 0 PID: 1887 Comm: syz-executor749 Tainted: G B 4.14.129+ #11 [ 345.162763] Call Trace: [ 345.165349] dump_stack+0xb9/0x10e [ 345.168902] panic+0x1d9/0x3c2 [ 345.172079] ? add_taint.cold+0x16/0x16 [ 345.176059] ? retint_kernel+0x2d/0x2d [ 345.179957] ? perf_output_read+0xe58/0xfc0 [ 345.184264] kasan_end_report+0x43/0x49 [ 345.188216] kasan_report.cold+0xca/0x2d5 [ 345.192360] ? perf_output_read+0xe58/0xfc0 [ 345.196757] ? perf_event_exit_cpu_context+0x170/0x170 [ 345.202032] ? deref_stack_reg+0xaa/0xe0 [ 345.206169] ? perf_output_copy+0x149/0x1d0 [ 345.210483] ? perf_output_sample+0xcea/0x1700 [ 345.215043] ? __perf_event_header__init_id.isra.0+0x276/0x430 [ 345.220996] ? perf_prepare_sample+0x656/0x1330 [ 345.225648] ? perf_event__output_id_sample+0x70/0x70 [ 345.230841] ? perf_output_sample+0x1700/0x1700 [ 345.235528] ? lock_acquire+0x10f/0x380 [ 345.239485] ? perf_prepare_sample+0x1330/0x1330 [ 345.244223] ? perf_event_output_forward+0x10b/0x220 [ 345.249304] ? perf_prepare_sample+0x1330/0x1330 [ 345.254174] ? check_preemption_disabled+0x35/0x1f0 [ 345.259221] ? __perf_event_overflow+0x116/0x320 [ 345.263979] ? perf_swevent_overflow+0x17b/0x210 [ 345.268737] ? ___perf_sw_event+0x11b/0x4a0 [ 345.273039] ? perf_swevent_event+0x19c/0x270 [ 345.277515] ? ___perf_sw_event+0x2a4/0x4a0 [ 345.281816] ? perf_pending_event+0xd0/0xd0 [ 345.286121] ? __handle_mm_fault+0xd96/0x2640 [ 345.290617] ? lock_downgrade+0x5d0/0x5d0 [ 345.294778] ? __handle_mm_fault+0xcc0/0x2640 [ 345.299268] ? _raw_spin_unlock+0x29/0x40 [ 345.303395] ? __handle_mm_fault+0x6c5/0x2640 [ 345.307875] ? vm_insert_mixed_mkwrite+0x30/0x30 [ 345.312608] ? __brelse+0x43/0x60 [ 345.316070] ? __do_page_fault+0x48e/0xb80 [ 345.320292] ? __perf_sw_event+0x42/0x80 [ 345.324337] ? __perf_sw_event+0x42/0x80 [ 345.328383] ? __do_page_fault+0x785/0xb80 [ 345.332614] ? bad_area_access_error+0x340/0x340 [ 345.337393] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 345.342233] ? page_fault+0x22/0x50 [ 345.345861] ? iov_iter_fault_in_readable+0x29c/0x350 [ 345.351044] ? iov_iter_init+0x1c0/0x1c0 [ 345.355185] ? generic_perform_write+0x158/0x450 [ 345.359931] ? filemap_page_mkwrite+0x2d0/0x2d0 [ 345.364690] ? current_time+0xb0/0xb0 [ 345.368472] ? __generic_file_write_iter+0x32e/0x550 [ 345.373594] ? generic_write_checks+0x252/0x410 [ 345.378247] ? ext4_file_write_iter+0x551/0xd60 [ 345.382897] ? ext4_llseek+0x7f0/0x7f0 [ 345.386763] ? retint_kernel+0x2d/0x2d [ 345.390633] ? __vfs_write+0x401/0x5a0 [ 345.394526] ? kernel_read+0x110/0x110 [ 345.398397] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 345.403830] ? rcu_read_lock_sched_held+0x10a/0x130 [ 345.408833] ? vfs_write+0x17f/0x4d0 [ 345.412529] ? SyS_write+0x102/0x250 [ 345.416242] ? SyS_read+0x250/0x250 [ 345.419881] ? do_syscall_64+0x43/0x510 [ 345.423839] ? SyS_read+0x250/0x250 [ 345.427448] ? do_syscall_64+0x19b/0x510 [ 345.431584] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 345.437300] Kernel Offset: 0xa600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 345.448149] Rebooting in 86400 seconds..