[ 24.243979] audit: type=1800 audit(1541330149.093:21): pid=5497 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 24.263525] audit: type=1800 audit(1541330149.093:22): pid=5497 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="motd" dev="sda1" ino=2447 res=0 [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 25.264417] sshd (5562) used greatest stack depth: 15536 bytes left [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.45' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 121.029806] ================================================================== [ 121.037482] BUG: KASAN: use-after-free in crypto_gcm_init_common+0xe2/0x710 [ 121.044631] Read of size 12 at addr ffff8801d7b8eb80 by task kworker/1:2/3203 [ 121.051900] [ 121.053525] CPU: 1 PID: 3203 Comm: kworker/1:2 Not tainted 4.19.0+ #169 [ 121.060269] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 121.069632] Workqueue: pencrypt padata_parallel_worker [ 121.075039] Call Trace: [ 121.077624] dump_stack+0x244/0x39d [ 121.081332] ? dump_stack_print_info.cold.1+0x20/0x20 [ 121.086521] ? printk+0xa7/0xcf [ 121.090233] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 121.094999] print_address_description.cold.7+0x9/0x1ff [ 121.100359] kasan_report.cold.8+0x242/0x309 [ 121.104758] ? crypto_gcm_init_common+0xe2/0x710 [ 121.109516] check_memory_region+0x13e/0x1b0 [ 121.113914] memcpy+0x23/0x50 [ 121.117009] crypto_gcm_init_common+0xe2/0x710 [ 121.121693] crypto_gcm_encrypt+0xe2/0x6b0 [ 121.126117] pcrypt_aead_enc+0xd6/0x340 [ 121.130270] padata_parallel_worker+0x49d/0x760 [ 121.134949] ? padata_alloc_pd+0xe90/0xe90 [ 121.139218] ? zap_class+0x640/0x640 [ 121.142994] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 121.148545] ? check_preemption_disabled+0x48/0x280 [ 121.153683] ? __lock_is_held+0xb5/0x140 [ 121.157753] process_one_work+0xc90/0x1c40 [ 121.161989] ? mark_held_locks+0x130/0x130 [ 121.166230] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 121.170913] ? __switch_to_asm+0x40/0x70 [ 121.174984] ? __switch_to_asm+0x34/0x70 [ 121.179041] ? __switch_to_asm+0x34/0x70 [ 121.183161] ? __switch_to_asm+0x40/0x70 [ 121.187225] ? __switch_to_asm+0x34/0x70 [ 121.191280] ? __switch_to_asm+0x40/0x70 [ 121.195333] ? __switch_to_asm+0x34/0x70 [ 121.199382] ? __switch_to_asm+0x40/0x70 [ 121.203441] ? __schedule+0x8d7/0x21d0 [ 121.207338] ? lock_downgrade+0x900/0x900 [ 121.211488] ? zap_class+0x640/0x640 [ 121.215202] ? zap_class+0x640/0x640 [ 121.218913] ? find_held_lock+0x36/0x1c0 [ 121.222991] ? lock_acquire+0x1ed/0x520 [ 121.227027] ? worker_thread+0x3e0/0x1390 [ 121.231211] ? kasan_check_read+0x11/0x20 [ 121.235355] ? do_raw_spin_lock+0x14f/0x350 [ 121.239677] ? kasan_check_read+0x11/0x20 [ 121.243837] ? rwlock_bug.part.2+0x90/0x90 [ 121.248060] ? trace_hardirqs_on+0x310/0x310 [ 121.252465] worker_thread+0x17f/0x1390 [ 121.256431] ? __switch_to_asm+0x34/0x70 [ 121.260517] ? process_one_work+0x1c40/0x1c40 [ 121.265014] ? zap_class+0x640/0x640 [ 121.268827] ? __kthread_parkme+0xce/0x1a0 [ 121.273060] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 121.278152] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 121.283255] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 121.287830] ? trace_hardirqs_on+0xbd/0x310 [ 121.292226] ? kasan_check_read+0x11/0x20 [ 121.296389] ? __kthread_parkme+0xce/0x1a0 [ 121.300634] ? trace_hardirqs_off_caller+0x310/0x310 [ 121.306124] ? trace_hardirqs_off_caller+0x310/0x310 [ 121.311498] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 121.316613] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 121.322154] ? __kthread_parkme+0xfb/0x1a0 [ 121.326497] ? process_one_work+0x1c40/0x1c40 [ 121.331017] kthread+0x35a/0x440 [ 121.334392] ? kthread_stop+0x900/0x900 [ 121.338369] ret_from_fork+0x3a/0x50 [ 121.342127] [ 121.343756] Allocated by task 5670: [ 121.347384] save_stack+0x43/0xd0 [ 121.350823] kasan_kmalloc+0xc7/0xe0 [ 121.354531] kmem_cache_alloc_trace+0x152/0x750 [ 121.359196] tls_set_sw_offload+0xcb3/0x1390 [ 121.363592] tls_setsockopt+0x689/0x770 [ 121.367555] sock_common_setsockopt+0x9a/0xe0 [ 121.372036] __sys_setsockopt+0x1ba/0x3c0 [ 121.376179] __x64_sys_setsockopt+0xbe/0x150 [ 121.381471] do_syscall_64+0x1b9/0x820 [ 121.385446] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 121.390677] [ 121.392298] Freed by task 5670: [ 121.395691] save_stack+0x43/0xd0 [ 121.399132] __kasan_slab_free+0x102/0x150 [ 121.403353] kasan_slab_free+0xe/0x10 [ 121.407194] kfree+0xcf/0x230 [ 121.410296] tls_sk_proto_close+0x5fa/0x750 [ 121.414610] inet_release+0x104/0x1f0 [ 121.418399] inet6_release+0x50/0x70 [ 121.422173] __sock_release+0xd7/0x250 [ 121.426074] sock_close+0x19/0x20 [ 121.429525] __fput+0x385/0xa30 [ 121.432924] ____fput+0x15/0x20 [ 121.436194] task_work_run+0x1e8/0x2a0 [ 121.440068] exit_to_usermode_loop+0x318/0x380 [ 121.444697] do_syscall_64+0x6be/0x820 [ 121.448583] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 121.453761] [ 121.455491] The buggy address belongs to the object at ffff8801d7b8eb80 [ 121.455491] which belongs to the cache kmalloc-32 of size 32 [ 121.467965] The buggy address is located 0 bytes inside of [ 121.467965] 32-byte region [ffff8801d7b8eb80, ffff8801d7b8eba0) [ 121.479576] The buggy address belongs to the page: [ 121.484562] page:ffffea00075ee380 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d7b8efc1 [ 121.494294] flags: 0x2fffc0000000200(slab) [ 121.498523] raw: 02fffc0000000200 ffffea00075ee448 ffff8801da801248 ffff8801da8001c0 [ 121.506557] raw: ffff8801d7b8efc1 ffff8801d7b8e000 000000010000003f 0000000000000000 [ 121.514433] page dumped because: kasan: bad access detected [ 121.520784] [ 121.522393] Memory state around the buggy address: [ 121.527305] ffff8801d7b8ea80: 00 00 fc fc fc fc fc fc 00 00 fc fc fc fc fc fc [ 121.534847] ffff8801d7b8eb00: 00 00 fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 121.542227] >ffff8801d7b8eb80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 121.549570] ^ [ 121.553022] ffff8801d7b8ec00: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 121.560368] ffff8801d7b8ec80: 00 00 00 00 fc fc fc fc fb fb fb fb fc fc fc fc [ 121.567818] ================================================================== [ 121.575308] Disabling lock debugging due to kernel taint [ 121.580842] Kernel panic - not syncing: panic_on_warn set ... [ 121.586744] CPU: 1 PID: 3203 Comm: kworker/1:2 Tainted: G B 4.19.0+ #169 [ 121.595153] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 121.604507] Workqueue: pencrypt padata_parallel_worker [ 121.609772] Call Trace: [ 121.612353] dump_stack+0x244/0x39d [ 121.615981] ? dump_stack_print_info.cold.1+0x20/0x20 [ 121.621167] panic+0x2ad/0x55c [ 121.624361] ? add_taint.cold.5+0x16/0x16 [ 121.628591] ? trace_hardirqs_on+0x9a/0x310 [ 121.633126] ? trace_hardirqs_on+0xb4/0x310 [ 121.637440] ? trace_hardirqs_on+0xb4/0x310 [ 121.641765] kasan_end_report+0x47/0x4f [ 121.645736] kasan_report.cold.8+0x76/0x309 [ 121.650158] ? crypto_gcm_init_common+0xe2/0x710 [ 121.655049] check_memory_region+0x13e/0x1b0 [ 121.659459] memcpy+0x23/0x50 [ 121.662562] crypto_gcm_init_common+0xe2/0x710 [ 121.667145] crypto_gcm_encrypt+0xe2/0x6b0 [ 121.671386] pcrypt_aead_enc+0xd6/0x340 [ 121.675410] padata_parallel_worker+0x49d/0x760 [ 121.680083] ? padata_alloc_pd+0xe90/0xe90 [ 121.684450] ? zap_class+0x640/0x640 [ 121.688164] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 121.693693] ? check_preemption_disabled+0x48/0x280 [ 121.698703] ? __lock_is_held+0xb5/0x140 [ 121.703868] process_one_work+0xc90/0x1c40 [ 121.708107] ? mark_held_locks+0x130/0x130 [ 121.712337] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 121.716994] ? __switch_to_asm+0x40/0x70 [ 121.721050] ? __switch_to_asm+0x34/0x70 [ 121.725102] ? __switch_to_asm+0x34/0x70 [ 121.729151] ? __switch_to_asm+0x40/0x70 [ 121.733199] ? __switch_to_asm+0x34/0x70 [ 121.737243] ? __switch_to_asm+0x40/0x70 [ 121.741286] ? __switch_to_asm+0x34/0x70 [ 121.745330] ? __switch_to_asm+0x40/0x70 [ 121.749379] ? __schedule+0x8d7/0x21d0 [ 121.753262] ? lock_downgrade+0x900/0x900 [ 121.757398] ? zap_class+0x640/0x640 [ 121.761102] ? zap_class+0x640/0x640 [ 121.764805] ? find_held_lock+0x36/0x1c0 [ 121.768881] ? lock_acquire+0x1ed/0x520 [ 121.772847] ? worker_thread+0x3e0/0x1390 [ 121.777072] ? kasan_check_read+0x11/0x20 [ 121.781212] ? do_raw_spin_lock+0x14f/0x350 [ 121.785538] ? kasan_check_read+0x11/0x20 [ 121.789685] ? rwlock_bug.part.2+0x90/0x90 [ 121.793973] ? trace_hardirqs_on+0x310/0x310 [ 121.798389] worker_thread+0x17f/0x1390 [ 121.802365] ? __switch_to_asm+0x34/0x70 [ 121.806432] ? process_one_work+0x1c40/0x1c40 [ 121.810930] ? zap_class+0x640/0x640 [ 121.814638] ? __kthread_parkme+0xce/0x1a0 [ 121.818871] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 121.823982] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 121.829079] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 121.833648] ? trace_hardirqs_on+0xbd/0x310 [ 121.837964] ? kasan_check_read+0x11/0x20 [ 121.842112] ? __kthread_parkme+0xce/0x1a0 [ 121.846336] ? trace_hardirqs_off_caller+0x310/0x310 [ 121.851423] ? trace_hardirqs_off_caller+0x310/0x310 [ 121.856519] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 121.861609] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 121.867128] ? __kthread_parkme+0xfb/0x1a0 [ 121.871343] ? process_one_work+0x1c40/0x1c40 [ 121.875960] kthread+0x35a/0x440 [ 121.879350] ? kthread_stop+0x900/0x900 [ 121.883332] ret_from_fork+0x3a/0x50 [ 121.888233] Kernel Offset: disabled [ 121.891867] Rebooting in 86400 seconds..