[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.081091] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.285852] random: sshd: uninitialized urandom read (32 bytes read) [ 32.657192] random: sshd: uninitialized urandom read (32 bytes read) [ 33.298074] random: sshd: uninitialized urandom read (32 bytes read) [ 33.515569] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts. [ 39.182724] 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 [ 39.690858] ================================================================== [ 39.698346] BUG: KASAN: use-after-free in generic_gcmaes_encrypt+0xc6/0x186 [ 39.705454] Read of size 12 at addr ffff8801d7ad0900 by task kworker/0:1/14 [ 39.712565] [ 39.714226] CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 4.19.0-rc4+ #228 [ 39.721174] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.730550] Workqueue: pencrypt padata_parallel_worker [ 39.735827] Call Trace: [ 39.738436] dump_stack+0x1c4/0x2b4 [ 39.742084] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.747274] ? printk+0xa7/0xcf [ 39.750574] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.755339] print_address_description.cold.8+0x9/0x1ff [ 39.760707] kasan_report.cold.9+0x242/0x309 [ 39.765116] ? generic_gcmaes_encrypt+0xc6/0x186 [ 39.769882] check_memory_region+0x13e/0x1b0 [ 39.774291] memcpy+0x23/0x50 [ 39.777411] generic_gcmaes_encrypt+0xc6/0x186 [ 39.781999] ? helper_rfc4106_encrypt+0x4a0/0x4a0 [ 39.786853] ? kasan_check_read+0x11/0x20 [ 39.791005] ? do_raw_spin_unlock+0xa7/0x2f0 [ 39.795435] gcmaes_wrapper_encrypt+0x162/0x200 [ 39.800129] pcrypt_aead_enc+0xcb/0x190 [ 39.804121] padata_parallel_worker+0x49d/0x760 [ 39.808816] ? padata_do_parallel+0x8b0/0x8b0 [ 39.813315] ? graph_lock+0x170/0x170 [ 39.817121] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.822662] ? check_preemption_disabled+0x48/0x200 [ 39.827680] ? check_preemption_disabled+0x48/0x200 [ 39.832708] ? __lock_is_held+0xb5/0x140 [ 39.836795] process_one_work+0xc90/0x1b90 [ 39.841049] ? mark_held_locks+0x130/0x130 [ 39.845307] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 39.849978] ? __switch_to_asm+0x40/0x70 [ 39.854044] ? __switch_to_asm+0x34/0x70 [ 39.858119] ? __switch_to_asm+0x40/0x70 [ 39.862180] ? __switch_to_asm+0x34/0x70 [ 39.866243] ? __switch_to_asm+0x40/0x70 [ 39.870306] ? __switch_to_asm+0x34/0x70 [ 39.874364] ? __switch_to_asm+0x40/0x70 [ 39.878450] ? __switch_to_asm+0x34/0x70 [ 39.882510] ? __switch_to_asm+0x40/0x70 [ 39.886583] ? __schedule+0x874/0x1ed0 [ 39.890483] ? lock_downgrade+0x900/0x900 [ 39.894635] ? graph_lock+0x170/0x170 [ 39.898448] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.903040] ? retint_kernel+0x2d/0x2d [ 39.906933] ? find_held_lock+0x36/0x1c0 [ 39.911003] ? lock_acquire+0x1ed/0x520 [ 39.914985] ? worker_thread+0x3e0/0x1390 [ 39.919146] ? lock_release+0x970/0x970 [ 39.923120] ? trace_hardirqs_off+0xb8/0x310 [ 39.927543] ? kasan_check_read+0x11/0x20 [ 39.931688] ? worker_thread+0x3e0/0x1390 [ 39.935857] ? trace_hardirqs_on+0x310/0x310 [ 39.940273] ? kasan_check_write+0x14/0x20 [ 39.944513] ? do_raw_spin_lock+0xc1/0x200 [ 39.948765] worker_thread+0x17f/0x1390 [ 39.952741] ? __switch_to_asm+0x34/0x70 [ 39.956828] ? process_one_work+0x1b90/0x1b90 [ 39.961328] ? graph_lock+0x170/0x170 [ 39.965150] ? __sched_text_start+0x8/0x8 [ 39.969316] ? find_held_lock+0x36/0x1c0 [ 39.973419] ? __kthread_parkme+0xce/0x1a0 [ 39.977675] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 39.982788] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 39.987899] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.992481] ? trace_hardirqs_on+0xbd/0x310 [ 39.996831] ? kasan_check_read+0x11/0x20 [ 40.000979] ? __kthread_parkme+0xce/0x1a0 [ 40.005231] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 40.010691] ? kasan_check_write+0x14/0x20 [ 40.014923] ? do_raw_spin_lock+0xc1/0x200 [ 40.019187] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 40.024288] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.029823] ? __kthread_parkme+0xfb/0x1a0 [ 40.034061] kthread+0x35a/0x420 [ 40.037425] ? process_one_work+0x1b90/0x1b90 [ 40.041918] ? kthread_bind+0x40/0x40 [ 40.045721] ret_from_fork+0x3a/0x50 [ 40.049460] [ 40.051082] Allocated by task 5474: [ 40.054702] save_stack+0x43/0xd0 [ 40.058150] kasan_kmalloc+0xc7/0xe0 [ 40.061865] kmem_cache_alloc_trace+0x152/0x750 [ 40.066550] tls_set_sw_offload+0xcc4/0x14b0 [ 40.070956] tls_setsockopt+0x689/0x770 [ 40.074944] sock_common_setsockopt+0x9a/0xe0 [ 40.079460] __sys_setsockopt+0x1ba/0x3c0 [ 40.083609] __x64_sys_setsockopt+0xbe/0x150 [ 40.088024] do_syscall_64+0x1b9/0x820 [ 40.091908] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.097087] [ 40.098704] Freed by task 5472: [ 40.101990] save_stack+0x43/0xd0 [ 40.105446] __kasan_slab_free+0x102/0x150 [ 40.109676] kasan_slab_free+0xe/0x10 [ 40.113473] kfree+0xcf/0x230 [ 40.116576] tls_sk_proto_close+0x5fd/0x750 [ 40.120902] inet_release+0x104/0x1f0 [ 40.124699] inet6_release+0x50/0x70 [ 40.128447] __sock_release+0xd7/0x250 [ 40.132326] sock_close+0x19/0x20 [ 40.135803] __fput+0x385/0xa30 [ 40.139088] ____fput+0x15/0x20 [ 40.142389] task_work_run+0x1e8/0x2a0 [ 40.146300] exit_to_usermode_loop+0x318/0x380 [ 40.150881] do_syscall_64+0x6be/0x820 [ 40.154773] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.159950] [ 40.161586] The buggy address belongs to the object at ffff8801d7ad0900 [ 40.161586] which belongs to the cache kmalloc-32 of size 32 [ 40.174067] The buggy address is located 0 bytes inside of [ 40.174067] 32-byte region [ffff8801d7ad0900, ffff8801d7ad0920) [ 40.185673] The buggy address belongs to the page: [ 40.190599] page:ffffea00075eb400 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d7ad0fc1 [ 40.200045] flags: 0x2fffc0000000100(slab) [ 40.204285] raw: 02fffc0000000100 ffffea00075eb948 ffffea00075ff688 ffff8801da8001c0 [ 40.212171] raw: ffff8801d7ad0fc1 ffff8801d7ad0000 000000010000003f 0000000000000000 [ 40.220087] page dumped because: kasan: bad access detected [ 40.225786] [ 40.227404] Memory state around the buggy address: [ 40.232336] ffff8801d7ad0800: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 40.239693] ffff8801d7ad0880: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 40.247049] >ffff8801d7ad0900: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 40.254397] ^ [ 40.257766] ffff8801d7ad0980: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 40.265124] ffff8801d7ad0a00: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc [ 40.272472] ================================================================== [ 40.279822] Disabling lock debugging due to kernel taint [ 40.285436] Kernel panic - not syncing: panic_on_warn set ... [ 40.285436] executing program [ 40.287805] kobject: 'regulatory.0' (000000004b691b86): kobject_uevent_env [ 40.292815] CPU: 0 PID: 14 Comm: kworker/0:1 Tainted: G B 4.19.0-rc4+ #228 [ 40.292823] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.292841] Workqueue: pencrypt padata_parallel_worker [ 40.301105] kobject: 'regulatory.0' (000000004b691b86): fill_kobj_path: path = '/devices/platform/regulatory.0' [ 40.308145] Call Trace: [ 40.308163] dump_stack+0x1c4/0x2b4 [ 40.308179] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.308200] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.349120] panic+0x238/0x4e7 [ 40.352314] ? add_taint.cold.5+0x16/0x16 [ 40.356466] ? trace_hardirqs_on+0xb4/0x310 [ 40.360810] kasan_end_report+0x47/0x4f [ 40.364798] kasan_report.cold.9+0x76/0x309 [ 40.369120] ? generic_gcmaes_encrypt+0xc6/0x186 [ 40.373895] check_memory_region+0x13e/0x1b0 [ 40.378303] memcpy+0x23/0x50 [ 40.381407] generic_gcmaes_encrypt+0xc6/0x186 [ 40.385990] ? helper_rfc4106_encrypt+0x4a0/0x4a0 [ 40.390836] ? kasan_check_read+0x11/0x20 [ 40.394985] ? do_raw_spin_unlock+0xa7/0x2f0 [ 40.399396] gcmaes_wrapper_encrypt+0x162/0x200 [ 40.404068] pcrypt_aead_enc+0xcb/0x190 [ 40.408049] padata_parallel_worker+0x49d/0x760 [ 40.412723] ? padata_do_parallel+0x8b0/0x8b0 [ 40.417224] ? graph_lock+0x170/0x170 [ 40.421032] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.426569] ? check_preemption_disabled+0x48/0x200 [ 40.431590] ? check_preemption_disabled+0x48/0x200 [ 40.436605] ? __lock_is_held+0xb5/0x140 [ 40.440671] process_one_work+0xc90/0x1b90 [ 40.444901] ? mark_held_locks+0x130/0x130 [ 40.449136] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 40.453799] ? __switch_to_asm+0x40/0x70 [ 40.457855] ? __switch_to_asm+0x34/0x70 [ 40.461911] ? __switch_to_asm+0x40/0x70 [ 40.465970] ? __switch_to_asm+0x34/0x70 [ 40.470077] ? __switch_to_asm+0x40/0x70 [ 40.474132] ? __switch_to_asm+0x34/0x70 [ 40.478200] ? __switch_to_asm+0x40/0x70 [ 40.482255] ? __switch_to_asm+0x34/0x70 [ 40.486325] ? __switch_to_asm+0x40/0x70 [ 40.490403] ? __schedule+0x874/0x1ed0 [ 40.494291] ? lock_downgrade+0x900/0x900 [ 40.498440] ? graph_lock+0x170/0x170 [ 40.502246] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.506829] ? retint_kernel+0x2d/0x2d [ 40.510946] ? find_held_lock+0x36/0x1c0 [ 40.515009] ? lock_acquire+0x1ed/0x520 [ 40.518986] ? worker_thread+0x3e0/0x1390 [ 40.523148] ? lock_release+0x970/0x970 [ 40.527114] ? trace_hardirqs_off+0xb8/0x310 [ 40.531511] ? kasan_check_read+0x11/0x20 [ 40.535649] ? worker_thread+0x3e0/0x1390 [ 40.539791] ? trace_hardirqs_on+0x310/0x310 [ 40.544196] ? kasan_check_write+0x14/0x20 [ 40.548446] ? do_raw_spin_lock+0xc1/0x200 [ 40.552691] worker_thread+0x17f/0x1390 [ 40.556662] ? __switch_to_asm+0x34/0x70 [ 40.560729] ? process_one_work+0x1b90/0x1b90 [ 40.565231] ? graph_lock+0x170/0x170 [ 40.569037] ? __sched_text_start+0x8/0x8 [ 40.573202] ? find_held_lock+0x36/0x1c0 [ 40.577269] ? __kthread_parkme+0xce/0x1a0 [ 40.581502] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 40.586601] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 40.591703] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.596287] ? trace_hardirqs_on+0xbd/0x310 [ 40.600608] ? kasan_check_read+0x11/0x20 [ 40.604761] ? __kthread_parkme+0xce/0x1a0 [ 40.608997] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 40.614448] ? kasan_check_write+0x14/0x20 [ 40.618678] ? do_raw_spin_lock+0xc1/0x200 [ 40.622909] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 40.628032] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.633583] ? __kthread_parkme+0xfb/0x1a0 [ 40.637824] kthread+0x35a/0x420 [ 40.641281] ? process_one_work+0x1b90/0x1b90 [ 40.645775] ? kthread_bind+0x40/0x40 [ 40.649578] ret_from_fork+0x3a/0x50 [ 40.666990] Kernel Offset: disabled [ 40.670636] Rebooting in 86400 seconds..