[ 23.635797] audit: type=1800 audit(1541413658.032:21): pid=5496 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 23.663330] audit: type=1800 audit(1541413658.032:22): pid=5496 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. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 24.781078] startpar (5496) used greatest stack depth: 15744 bytes left Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.65' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 56.533937] ================================================================== [ 56.541622] BUG: KASAN: use-after-free in crypto_gcm_init_common+0xe2/0x710 [ 56.548746] Read of size 12 at addr ffff8801d7b91b00 by task kworker/1:2/3205 [ 56.556005] [ 56.557624] CPU: 1 PID: 3205 Comm: kworker/1:2 Not tainted 4.19.0+ #320 [ 56.564372] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.573741] Workqueue: pencrypt padata_parallel_worker [ 56.579018] Call Trace: [ 56.581599] dump_stack+0x244/0x39d [ 56.585228] ? dump_stack_print_info.cold.1+0x20/0x20 [ 56.590412] ? printk+0xa7/0xcf [ 56.593685] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 56.598437] print_address_description.cold.7+0x9/0x1ff [ 56.603790] kasan_report.cold.8+0x242/0x309 [ 56.608300] ? crypto_gcm_init_common+0xe2/0x710 [ 56.613055] check_memory_region+0x13e/0x1b0 [ 56.617458] memcpy+0x23/0x50 [ 56.620561] crypto_gcm_init_common+0xe2/0x710 [ 56.625156] crypto_gcm_encrypt+0xe2/0x6b0 [ 56.629395] pcrypt_aead_enc+0xd6/0x340 [ 56.633369] padata_parallel_worker+0x49d/0x760 [ 56.638032] ? padata_alloc_pd+0xe90/0xe90 [ 56.642259] ? zap_class+0x640/0x640 [ 56.645968] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.651504] ? check_preemption_disabled+0x48/0x280 [ 56.656521] ? __lock_is_held+0xb5/0x140 [ 56.660583] process_one_work+0xc90/0x1c40 [ 56.664810] ? mark_held_locks+0x130/0x130 [ 56.669041] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 56.673700] ? __switch_to_asm+0x40/0x70 [ 56.677759] ? __switch_to_asm+0x34/0x70 [ 56.681821] ? __switch_to_asm+0x34/0x70 [ 56.685887] ? __switch_to_asm+0x40/0x70 [ 56.689941] ? __switch_to_asm+0x34/0x70 [ 56.693991] ? __switch_to_asm+0x40/0x70 [ 56.698044] ? __switch_to_asm+0x34/0x70 [ 56.702202] ? __switch_to_asm+0x40/0x70 [ 56.706256] ? __schedule+0x8d7/0x21d0 [ 56.710142] ? lock_downgrade+0x900/0x900 [ 56.714289] ? zap_class+0x640/0x640 [ 56.718045] ? find_held_lock+0x36/0x1c0 [ 56.722109] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 56.726686] ? lock_acquire+0x1ed/0x520 [ 56.730650] ? worker_thread+0x3e0/0x1390 [ 56.734849] ? kasan_check_read+0x11/0x20 [ 56.739006] ? do_raw_spin_lock+0x14f/0x350 [ 56.743317] ? kasan_check_read+0x11/0x20 [ 56.747463] ? rwlock_bug.part.2+0x90/0x90 [ 56.751684] ? trace_hardirqs_on+0x310/0x310 [ 56.756107] worker_thread+0x17f/0x1390 [ 56.760088] ? __switch_to_asm+0x34/0x70 [ 56.764157] ? __switch_to_asm+0x40/0x70 [ 56.768214] ? __switch_to_asm+0x34/0x70 [ 56.772277] ? process_one_work+0x1c40/0x1c40 [ 56.776795] ? zap_class+0x640/0x640 [ 56.780623] ? find_held_lock+0x36/0x1c0 [ 56.784685] ? __kthread_parkme+0xce/0x1a0 [ 56.788942] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 56.794051] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 56.799248] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 56.803993] ? trace_hardirqs_on+0xbd/0x310 [ 56.808308] ? kasan_check_read+0x11/0x20 [ 56.812481] ? __kthread_parkme+0xce/0x1a0 [ 56.816717] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.821999] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.827116] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 56.832466] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.838015] ? __kthread_parkme+0xfb/0x1a0 [ 56.842246] ? process_one_work+0x1c40/0x1c40 [ 56.848619] kthread+0x35a/0x440 [ 56.852061] ? kthread_stop+0x900/0x900 [ 56.856043] ret_from_fork+0x3a/0x50 [ 56.859983] [ 56.861956] Allocated by task 5668: [ 56.866294] save_stack+0x43/0xd0 [ 56.869870] kasan_kmalloc+0xc7/0xe0 [ 56.873578] kmem_cache_alloc_trace+0x152/0x750 [ 56.878247] tls_set_sw_offload+0xcb3/0x1390 [ 56.882863] tls_setsockopt+0x689/0x770 [ 56.887160] sock_common_setsockopt+0x9a/0xe0 [ 56.891899] __sys_setsockopt+0x1ba/0x3c0 [ 56.896050] __x64_sys_setsockopt+0xbe/0x150 [ 56.900645] do_syscall_64+0x1b9/0x820 [ 56.904713] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.910016] [ 56.911654] Freed by task 5668: [ 56.915043] save_stack+0x43/0xd0 [ 56.918513] __kasan_slab_free+0x102/0x150 [ 56.922865] kasan_slab_free+0xe/0x10 [ 56.926654] kfree+0xcf/0x230 [ 56.929887] tls_sk_proto_close+0x5fa/0x750 [ 56.934213] inet_release+0x104/0x1f0 [ 56.938184] inet6_release+0x50/0x70 [ 56.942092] __sock_release+0xd7/0x250 [ 56.945970] sock_close+0x19/0x20 [ 56.949415] __fput+0x385/0xa30 [ 56.952700] ____fput+0x15/0x20 [ 56.956104] task_work_run+0x1e8/0x2a0 [ 56.959993] exit_to_usermode_loop+0x318/0x380 [ 56.964570] do_syscall_64+0x6be/0x820 [ 56.968448] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.973724] [ 56.975428] The buggy address belongs to the object at ffff8801d7b91b00 [ 56.975428] which belongs to the cache kmalloc-32 of size 32 [ 56.987916] The buggy address is located 0 bytes inside of [ 56.987916] 32-byte region [ffff8801d7b91b00, ffff8801d7b91b20) [ 56.999527] The buggy address belongs to the page: [ 57.004451] page:ffffea00075ee440 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d7b91fc1 [ 57.014053] flags: 0x2fffc0000000200(slab) [ 57.018418] raw: 02fffc0000000200 ffffea00075effc8 ffff8801da801248 ffff8801da8001c0 [ 57.026473] raw: ffff8801d7b91fc1 ffff8801d7b91000 000000010000003f 0000000000000000 [ 57.034355] page dumped because: kasan: bad access detected [ 57.040130] [ 57.041755] Memory state around the buggy address: [ 57.046675] ffff8801d7b91a00: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 57.054024] ffff8801d7b91a80: 00 00 fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 57.061483] >ffff8801d7b91b00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 57.068989] ^ [ 57.072479] ffff8801d7b91b80: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 57.079933] ffff8801d7b91c00: 00 00 00 00 fc fc fc fc fb fb fb fb fc fc fc fc [ 57.087393] ================================================================== [ 57.094738] Disabling lock debugging due to kernel taint [ 57.100367] Kernel panic - not syncing: panic_on_warn set ... [ 57.106253] CPU: 1 PID: 3205 Comm: kworker/1:2 Tainted: G B 4.19.0+ #320 [ 57.114874] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.124405] Workqueue: pencrypt padata_parallel_worker [ 57.129677] Call Trace: [ 57.132264] dump_stack+0x244/0x39d [ 57.135901] ? dump_stack_print_info.cold.1+0x20/0x20 [ 57.141108] panic+0x2ad/0x55c [ 57.144300] ? add_taint.cold.5+0x16/0x16 [ 57.148462] ? trace_hardirqs_on+0x9a/0x310 [ 57.152794] ? trace_hardirqs_on+0xb4/0x310 [ 57.157269] ? trace_hardirqs_on+0xb4/0x310 [ 57.161789] kasan_end_report+0x47/0x4f [ 57.165854] kasan_report.cold.8+0x76/0x309 [ 57.170399] ? crypto_gcm_init_common+0xe2/0x710 [ 57.175157] check_memory_region+0x13e/0x1b0 [ 57.179633] memcpy+0x23/0x50 [ 57.183039] crypto_gcm_init_common+0xe2/0x710 [ 57.187745] crypto_gcm_encrypt+0xe2/0x6b0 [ 57.192138] pcrypt_aead_enc+0xd6/0x340 [ 57.196313] padata_parallel_worker+0x49d/0x760 [ 57.201074] ? padata_alloc_pd+0xe90/0xe90 [ 57.205310] ? zap_class+0x640/0x640 [ 57.209014] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.214742] ? check_preemption_disabled+0x48/0x280 [ 57.219832] ? __lock_is_held+0xb5/0x140 [ 57.223894] process_one_work+0xc90/0x1c40 [ 57.228124] ? mark_held_locks+0x130/0x130 [ 57.232368] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 57.237252] ? __switch_to_asm+0x40/0x70 [ 57.241305] ? __switch_to_asm+0x34/0x70 [ 57.245349] ? __switch_to_asm+0x34/0x70 [ 57.249394] ? __switch_to_asm+0x40/0x70 [ 57.253597] ? __switch_to_asm+0x34/0x70 [ 57.257835] ? __switch_to_asm+0x40/0x70 [ 57.262033] ? __switch_to_asm+0x34/0x70 [ 57.266079] ? __switch_to_asm+0x40/0x70 [ 57.270134] ? __schedule+0x8d7/0x21d0 [ 57.274021] ? lock_downgrade+0x900/0x900 [ 57.278352] ? zap_class+0x640/0x640 [ 57.282173] ? find_held_lock+0x36/0x1c0 [ 57.286230] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 57.290815] ? lock_acquire+0x1ed/0x520 [ 57.294783] ? worker_thread+0x3e0/0x1390 [ 57.298935] ? kasan_check_read+0x11/0x20 [ 57.303073] ? do_raw_spin_lock+0x14f/0x350 [ 57.307382] ? kasan_check_read+0x11/0x20 [ 57.311709] ? rwlock_bug.part.2+0x90/0x90 [ 57.316090] ? trace_hardirqs_on+0x310/0x310 [ 57.320609] worker_thread+0x17f/0x1390 [ 57.324584] ? __switch_to_asm+0x34/0x70 [ 57.328633] ? __switch_to_asm+0x40/0x70 [ 57.332685] ? __switch_to_asm+0x34/0x70 [ 57.336742] ? process_one_work+0x1c40/0x1c40 [ 57.341351] ? zap_class+0x640/0x640 [ 57.345053] ? find_held_lock+0x36/0x1c0 [ 57.349342] ? __kthread_parkme+0xce/0x1a0 [ 57.353723] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 57.358810] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 57.364039] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 57.368625] ? trace_hardirqs_on+0xbd/0x310 [ 57.372945] ? kasan_check_read+0x11/0x20 [ 57.377103] ? __kthread_parkme+0xce/0x1a0 [ 57.381328] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.386526] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.391913] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 57.397024] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 57.402553] ? __kthread_parkme+0xfb/0x1a0 [ 57.406777] ? process_one_work+0x1c40/0x1c40 [ 57.411263] kthread+0x35a/0x440 [ 57.414645] ? kthread_stop+0x900/0x900 [ 57.418702] ret_from_fork+0x3a/0x50 [ 57.423980] Kernel Offset: disabled [ 57.427607] Rebooting in 86400 seconds..