[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 15.623940] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.840455] random: sshd: uninitialized urandom read (32 bytes read) [ 20.151727] random: sshd: uninitialized urandom read (32 bytes read) [ 20.854864] random: sshd: uninitialized urandom read (32 bytes read) [ 139.393738] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.14' (ECDSA) to the list of known hosts. [ 145.033744] random: sshd: uninitialized urandom read (32 bytes read) 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 executing program executing program executing program [ 146.159196] ================================================================== [ 146.166877] BUG: KASAN: use-after-free in work_is_static_object+0x39/0x40 [ 146.173832] Read of size 8 at addr ffff8801aea0b1e0 by task kworker/1:1/24 [ 146.180883] [ 146.182520] CPU: 1 PID: 24 Comm: kworker/1:1 Not tainted 4.18.0-rc4-next-20180713+ #7 [ 146.190612] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 146.200007] Workqueue: events p9_poll_workfn [ 146.204412] Call Trace: [ 146.207008] dump_stack+0x1c9/0x2b4 [ 146.210627] ? dump_stack_print_info.cold.2+0x52/0x52 [ 146.215830] ? printk+0xa7/0xcf [ 146.219100] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 146.223848] ? work_is_static_object+0x39/0x40 [ 146.228439] print_address_description+0x6c/0x20b [ 146.233278] ? work_is_static_object+0x39/0x40 [ 146.237859] kasan_report.cold.7+0x242/0x30d [ 146.242261] __asan_report_load8_noabort+0x14/0x20 [ 146.247188] work_is_static_object+0x39/0x40 [ 146.251600] debug_object_activate+0x2fc/0x690 [ 146.256187] ? __wake_up_common+0x740/0x740 [ 146.260499] ? debug_object_assert_init+0x4b0/0x4b0 [ 146.265511] __queue_work+0x1ca/0x1410 [ 146.269388] ? __wake_up+0xe/0x10 [ 146.272837] ? p9_client_cb+0x62/0x80 [ 146.276649] ? flush_rcu_work+0x90/0x90 [ 146.280614] ? p9_fd_cancelled+0x2f0/0x2f0 [ 146.284839] ? lock_acquire+0x1e4/0x540 [ 146.288800] ? p9_poll_workfn+0x3ec/0x6d0 [ 146.292940] ? lock_downgrade+0x8f0/0x8f0 [ 146.297082] ? kasan_check_read+0x11/0x20 [ 146.301233] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.305638] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 146.310230] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 146.315778] queue_work_on+0x19a/0x1e0 [ 146.319692] p9_poll_workfn+0x55e/0x6d0 [ 146.323682] ? p9_read_work+0x1060/0x1060 [ 146.327843] ? lock_acquire+0x1e4/0x540 [ 146.331830] ? process_one_work+0xb9b/0x1ba0 [ 146.336235] ? kasan_check_read+0x11/0x20 [ 146.340388] ? lock_release+0xa30/0xa30 [ 146.344371] ? kasan_check_read+0x11/0x20 [ 146.348516] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.352938] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 146.357550] ? read_word_at_a_time+0x20/0x20 [ 146.361959] ? compat_start_thread+0x80/0x80 [ 146.366354] ? dequeue_entity+0x15e0/0x15e0 [ 146.370691] process_one_work+0xc73/0x1ba0 [ 146.374943] ? trace_hardirqs_on+0x10/0x10 [ 146.379212] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 146.383879] ? lock_repin_lock+0x430/0x430 [ 146.388127] ? __sched_text_start+0x8/0x8 [ 146.392290] ? lock_downgrade+0x8f0/0x8f0 [ 146.396432] ? graph_lock+0x170/0x170 [ 146.400234] ? graph_lock+0x170/0x170 [ 146.404024] ? lock_acquire+0x1e4/0x540 [ 146.407984] ? worker_thread+0x3dc/0x13c0 [ 146.412121] ? lock_downgrade+0x8f0/0x8f0 [ 146.416256] ? lock_release+0xa30/0xa30 [ 146.420306] ? kasan_check_read+0x11/0x20 [ 146.424446] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.428840] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 146.433411] ? kasan_check_write+0x14/0x20 [ 146.437635] ? do_raw_spin_lock+0xc1/0x200 [ 146.441862] worker_thread+0x189/0x13c0 [ 146.445838] ? process_one_work+0x1ba0/0x1ba0 [ 146.450321] ? graph_lock+0x170/0x170 [ 146.454127] ? graph_lock+0x170/0x170 [ 146.457931] ? find_held_lock+0x36/0x1c0 [ 146.461985] ? find_held_lock+0x36/0x1c0 [ 146.466056] ? lock_downgrade+0x8f0/0x8f0 [ 146.470195] ? kasan_check_read+0x11/0x20 [ 146.474329] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.478740] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 146.483834] ? __kthread_parkme+0x58/0x1b0 [ 146.488070] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 146.493068] ? trace_hardirqs_on+0xd/0x10 [ 146.497211] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 146.502754] ? __kthread_parkme+0x106/0x1b0 [ 146.507087] kthread+0x345/0x410 [ 146.510653] ? process_one_work+0x1ba0/0x1ba0 [ 146.515133] ? kthread_bind+0x40/0x40 [ 146.518920] ret_from_fork+0x3a/0x50 [ 146.522617] [ 146.524238] Allocated by task 4522: [ 146.527873] save_stack+0x43/0xd0 [ 146.531314] kasan_kmalloc+0xc4/0xe0 [ 146.535015] kmem_cache_alloc_trace+0x152/0x780 [ 146.539672] p9_fd_create+0x1a7/0x3f0 [ 146.543473] p9_client_create+0x8ed/0x1770 [ 146.547697] v9fs_session_init+0x21a/0x1a80 [ 146.552006] v9fs_mount+0x7c/0x900 [ 146.555532] legacy_get_tree+0x118/0x440 [ 146.559579] vfs_get_tree+0x1cb/0x5c0 [ 146.563382] do_mount+0x6c1/0x1fb0 [ 146.566914] ksys_mount+0x12d/0x140 [ 146.570523] __x64_sys_mount+0xbe/0x150 [ 146.574490] do_syscall_64+0x1b9/0x820 [ 146.578365] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 146.583531] [ 146.585155] Freed by task 4522: [ 146.588417] save_stack+0x43/0xd0 [ 146.591865] __kasan_slab_free+0x11a/0x170 [ 146.596082] kasan_slab_free+0xe/0x10 [ 146.599876] kfree+0xd9/0x260 [ 146.602972] p9_fd_close+0x416/0x5b0 [ 146.606682] p9_client_create+0xa9a/0x1770 [ 146.610905] v9fs_session_init+0x21a/0x1a80 [ 146.615209] v9fs_mount+0x7c/0x900 [ 146.618739] legacy_get_tree+0x118/0x440 [ 146.622877] vfs_get_tree+0x1cb/0x5c0 [ 146.626660] do_mount+0x6c1/0x1fb0 [ 146.630186] ksys_mount+0x12d/0x140 [ 146.633800] __x64_sys_mount+0xbe/0x150 [ 146.637785] do_syscall_64+0x1b9/0x820 [ 146.641682] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 146.646851] [ 146.648481] The buggy address belongs to the object at ffff8801aea0b0c0 [ 146.648481] which belongs to the cache kmalloc-512 of size 512 [ 146.661307] The buggy address is located 288 bytes inside of [ 146.661307] 512-byte region [ffff8801aea0b0c0, ffff8801aea0b2c0) [ 146.673178] The buggy address belongs to the page: [ 146.678104] page:ffffea0006ba82c0 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 [ 146.686255] flags: 0x2fffc0000000100(slab) [ 146.690481] raw: 02fffc0000000100 ffffea0006a27488 ffff8801da801748 ffff8801da800940 [ 146.698377] raw: 0000000000000000 ffff8801aea0b0c0 0000000100000006 0000000000000000 [ 146.706244] page dumped because: kasan: bad access detected [ 146.711941] [ 146.713555] Memory state around the buggy address: [ 146.718474] ffff8801aea0b080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 146.725814] ffff8801aea0b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 146.733334] >ffff8801aea0b180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 146.740689] ^ [ 146.747167] ffff8801aea0b200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 146.754538] ffff8801aea0b280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 146.761885] ================================================================== [ 146.769247] Kernel panic - not syncing: panic_on_warn set ... [ 146.769247] [ 146.776623] CPU: 1 PID: 24 Comm: kworker/1:1 Tainted: G B 4.18.0-rc4-next-20180713+ #7 [ 146.785979] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 146.795362] Workqueue: events p9_poll_workfn [ 146.799788] Call Trace: [ 146.802391] dump_stack+0x1c9/0x2b4 [ 146.806005] ? dump_stack_print_info.cold.2+0x52/0x52 [ 146.811199] ? lock_downgrade+0x8f0/0x8f0 [ 146.815334] ? work_is_static_object+0x39/0x40 [ 146.819928] panic+0x238/0x4e7 [ 146.823123] ? add_taint.cold.5+0x16/0x16 [ 146.827282] ? print_shadow_for_address+0xba/0x116 [ 146.832317] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.836820] ? work_is_static_object+0x39/0x40 [ 146.841399] kasan_end_report+0x47/0x4f [ 146.845374] kasan_report.cold.7+0x76/0x30d [ 146.849684] __asan_report_load8_noabort+0x14/0x20 [ 146.854617] work_is_static_object+0x39/0x40 [ 146.859121] debug_object_activate+0x2fc/0x690 [ 146.863712] ? __wake_up_common+0x740/0x740 [ 146.868046] ? debug_object_assert_init+0x4b0/0x4b0 [ 146.873154] __queue_work+0x1ca/0x1410 [ 146.877051] ? __wake_up+0xe/0x10 [ 146.880492] ? p9_client_cb+0x62/0x80 [ 146.884283] ? flush_rcu_work+0x90/0x90 [ 146.888242] ? p9_fd_cancelled+0x2f0/0x2f0 [ 146.892467] ? lock_acquire+0x1e4/0x540 [ 146.896436] ? p9_poll_workfn+0x3ec/0x6d0 [ 146.900574] ? lock_downgrade+0x8f0/0x8f0 [ 146.904723] ? kasan_check_read+0x11/0x20 [ 146.908885] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.913286] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 146.917860] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 146.923390] queue_work_on+0x19a/0x1e0 [ 146.927265] p9_poll_workfn+0x55e/0x6d0 [ 146.931223] ? p9_read_work+0x1060/0x1060 [ 146.935370] ? lock_acquire+0x1e4/0x540 [ 146.939352] ? process_one_work+0xb9b/0x1ba0 [ 146.943765] ? kasan_check_read+0x11/0x20 [ 146.947900] ? lock_release+0xa30/0xa30 [ 146.951860] ? kasan_check_read+0x11/0x20 [ 146.956012] ? do_raw_spin_unlock+0xa7/0x2f0 [ 146.960412] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 146.964997] ? read_word_at_a_time+0x20/0x20 [ 146.969415] ? compat_start_thread+0x80/0x80 [ 146.973858] ? dequeue_entity+0x15e0/0x15e0 [ 146.978226] process_one_work+0xc73/0x1ba0 [ 146.982495] ? trace_hardirqs_on+0x10/0x10 [ 146.986744] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 146.991457] ? lock_repin_lock+0x430/0x430 [ 146.995685] ? __sched_text_start+0x8/0x8 [ 146.999833] ? lock_downgrade+0x8f0/0x8f0 [ 147.003983] ? graph_lock+0x170/0x170 [ 147.007773] ? graph_lock+0x170/0x170 [ 147.011577] ? lock_acquire+0x1e4/0x540 [ 147.015549] ? worker_thread+0x3dc/0x13c0 [ 147.019684] ? lock_downgrade+0x8f0/0x8f0 [ 147.023826] ? lock_release+0xa30/0xa30 [ 147.027791] ? kasan_check_read+0x11/0x20 [ 147.031938] ? do_raw_spin_unlock+0xa7/0x2f0 [ 147.036326] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 147.040893] ? kasan_check_write+0x14/0x20 [ 147.045109] ? do_raw_spin_lock+0xc1/0x200 [ 147.049347] worker_thread+0x189/0x13c0 [ 147.053308] ? process_one_work+0x1ba0/0x1ba0 [ 147.057790] ? graph_lock+0x170/0x170 [ 147.061584] ? graph_lock+0x170/0x170 [ 147.065373] ? find_held_lock+0x36/0x1c0 [ 147.069428] ? find_held_lock+0x36/0x1c0 [ 147.073474] ? lock_downgrade+0x8f0/0x8f0 [ 147.077638] ? kasan_check_read+0x11/0x20 [ 147.081809] ? do_raw_spin_unlock+0xa7/0x2f0 [ 147.086248] ? _raw_spin_unlock_irqrestore+0x74/0xc0 [ 147.091370] ? __kthread_parkme+0x58/0x1b0 [ 147.095603] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 147.100704] ? trace_hardirqs_on+0xd/0x10 [ 147.104856] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 147.110377] ? __kthread_parkme+0x106/0x1b0 [ 147.114687] kthread+0x345/0x410 [ 147.118062] ? process_one_work+0x1ba0/0x1ba0 [ 147.122538] ? kthread_bind+0x40/0x40 [ 147.126343] ret_from_fork+0x3a/0x50 [ 147.130599] Dumping ftrace buffer: [ 147.134118] (ftrace buffer empty) [ 147.137819] Kernel Offset: disabled [ 147.141444] Rebooting in 86400 seconds..