Warning: Permanently added '10.128.0.28' (ECDSA) to the list of known hosts. executing program executing program [ 71.398308] audit: type=1400 audit(1541603447.984:36): avc: denied { map } for pid=5887 comm="syz-executor691" path="/root/syz-executor691690773" 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 [ 71.470003] ================================================================== [ 71.477452] BUG: KASAN: use-after-free in crypto_gcm_init_common+0xe2/0x710 [ 71.484543] Read of size 12 at addr ffff8801d7403300 by task kworker/1:0/17 [ 71.491633] [ 71.493246] CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 4.20.0-rc1+ #102 [ 71.500262] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.509656] Workqueue: pencrypt padata_parallel_worker [ 71.514923] Call Trace: [ 71.517510] dump_stack+0x244/0x39d [ 71.521192] ? dump_stack_print_info.cold.1+0x20/0x20 [ 71.526378] ? printk+0xa7/0xcf [ 71.529647] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 71.534393] print_address_description.cold.7+0x9/0x1ff [ 71.539753] kasan_report.cold.8+0x242/0x309 [ 71.544166] ? crypto_gcm_init_common+0xe2/0x710 [ 71.548923] check_memory_region+0x13e/0x1b0 [ 71.553323] memcpy+0x23/0x50 [ 71.556673] crypto_gcm_init_common+0xe2/0x710 [ 71.561255] crypto_gcm_encrypt+0xe2/0x6b0 [ 71.565669] pcrypt_aead_enc+0xd6/0x340 [ 71.569638] padata_parallel_worker+0x49d/0x760 [ 71.574295] ? padata_alloc_pd+0xe90/0xe90 [ 71.578519] ? zap_class+0x640/0x640 [ 71.582221] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 71.587749] ? check_preemption_disabled+0x48/0x280 [ 71.592769] ? __lock_is_held+0xb5/0x140 [ 71.596827] process_one_work+0xc90/0x1c40 [ 71.601058] ? mark_held_locks+0x130/0x130 [ 71.605287] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 71.610050] ? __switch_to_asm+0x40/0x70 [ 71.614169] ? __switch_to_asm+0x34/0x70 [ 71.618225] ? __switch_to_asm+0x34/0x70 [ 71.622314] ? __switch_to_asm+0x40/0x70 [ 71.626414] ? __switch_to_asm+0x34/0x70 [ 71.630544] ? __switch_to_asm+0x40/0x70 [ 71.634595] ? __switch_to_asm+0x34/0x70 [ 71.638641] ? __switch_to_asm+0x40/0x70 [ 71.642695] ? __schedule+0x8d7/0x21d0 [ 71.646581] ? zap_class+0x640/0x640 [ 71.650283] ? lock_downgrade+0x900/0x900 [ 71.654594] ? trace_hardirqs_off+0xb8/0x310 [ 71.658991] ? kasan_check_read+0x11/0x20 [ 71.663125] ? do_raw_spin_unlock+0xa7/0x330 [ 71.667527] ? lock_acquire+0x1ed/0x520 [ 71.671488] ? worker_thread+0x3e0/0x1390 [ 71.675625] ? kasan_check_read+0x11/0x20 [ 71.679784] ? do_raw_spin_lock+0x14f/0x350 [ 71.684092] ? kasan_check_read+0x11/0x20 [ 71.688226] ? rwlock_bug.part.2+0x90/0x90 [ 71.692498] ? trace_hardirqs_on+0x310/0x310 [ 71.696910] worker_thread+0x17f/0x1390 [ 71.700880] ? __switch_to_asm+0x34/0x70 [ 71.704998] ? process_one_work+0x1c40/0x1c40 [ 71.709534] ? __sched_text_start+0x8/0x8 [ 71.713687] ? __kthread_parkme+0xce/0x1a0 [ 71.717910] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 71.723005] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 71.728115] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 71.732683] ? trace_hardirqs_on+0xbd/0x310 [ 71.737000] ? kasan_check_read+0x11/0x20 [ 71.741130] ? __kthread_parkme+0xce/0x1a0 [ 71.745349] ? trace_hardirqs_off_caller+0x310/0x310 [ 71.750452] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 71.755542] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 71.761069] ? __kthread_parkme+0xfb/0x1a0 [ 71.765293] ? process_one_work+0x1c40/0x1c40 [ 71.769789] kthread+0x35a/0x440 [ 71.773143] ? kthread_stop+0x900/0x900 [ 71.777118] ret_from_fork+0x3a/0x50 [ 71.780818] [ 71.782428] Allocated by task 5901: [ 71.786044] save_stack+0x43/0xd0 [ 71.789485] kasan_kmalloc+0xc7/0xe0 [ 71.793182] kmem_cache_alloc_trace+0x152/0x750 [ 71.797843] tls_set_sw_offload+0xcb3/0x1390 [ 71.802238] tls_setsockopt+0x689/0x770 [ 71.806197] sock_common_setsockopt+0x9a/0xe0 [ 71.810831] __sys_setsockopt+0x1ba/0x3c0 [ 71.814977] __x64_sys_setsockopt+0xbe/0x150 [ 71.819373] do_syscall_64+0x1b9/0x820 [ 71.823254] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 71.828420] [ 71.830031] Freed by task 5901: [ 71.833300] save_stack+0x43/0xd0 [ 71.836749] __kasan_slab_free+0x102/0x150 [ 71.840981] kasan_slab_free+0xe/0x10 [ 71.844779] kfree+0xcf/0x230 [ 71.847949] tls_sk_proto_close+0x5fa/0x750 [ 71.852312] inet_release+0x104/0x1f0 [ 71.856105] inet6_release+0x50/0x70 [ 71.859805] __sock_release+0xd7/0x250 [ 71.863675] sock_close+0x19/0x20 [ 71.867163] __fput+0x385/0xa30 [ 71.870446] ____fput+0x15/0x20 [ 71.873720] task_work_run+0x1e8/0x2a0 [ 71.877594] exit_to_usermode_loop+0x318/0x380 [ 71.882159] do_syscall_64+0x6be/0x820 [ 71.886039] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 71.891210] [ 71.892824] The buggy address belongs to the object at ffff8801d7403300 [ 71.892824] which belongs to the cache kmalloc-32 of size 32 [ 71.905295] The buggy address is located 0 bytes inside of [ 71.905295] 32-byte region [ffff8801d7403300, ffff8801d7403320) [ 71.916904] The buggy address belongs to the page: [ 71.921830] page:ffffea00075d00c0 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d7403fc1 [ 71.931259] flags: 0x2fffc0000000200(slab) [ 71.935482] raw: 02fffc0000000200 ffffea00075ffbc8 ffffea00075efc88 ffff8801da8001c0 [ 71.943356] raw: ffff8801d7403fc1 ffff8801d7403000 000000010000003f 0000000000000000 [ 71.951217] page dumped because: kasan: bad access detected [ 71.956907] [ 71.958516] Memory state around the buggy address: [ 71.963429] ffff8801d7403200: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 71.970798] ffff8801d7403280: fb fb fb fb fc fc fc fc 00 00 01 fc fc fc fc fc [ 71.978143] >ffff8801d7403300: fb fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc [ 71.985483] ^ [ 71.988831] ffff8801d7403380: fb fb fb fb fc fc fc fc 00 00 01 fc fc fc fc fc [ 71.996170] ffff8801d7403400: 00 00 fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 72.003510] ================================================================== [ 72.010848] Disabling lock debugging due to kernel taint [ 72.016363] Kernel panic - not syncing: panic_on_warn set ... [ 72.022239] CPU: 1 PID: 17 Comm: kworker/1:0 Tainted: G B 4.20.0-rc1+ #102 [ 72.030533] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.039895] Workqueue: pencrypt padata_parallel_worker [ 72.045154] Call Trace: [ 72.047732] dump_stack+0x244/0x39d [ 72.051355] ? dump_stack_print_info.cold.1+0x20/0x20 [ 72.056590] panic+0x2ad/0x55c [ 72.059781] ? add_taint.cold.5+0x16/0x16 [ 72.063919] ? trace_hardirqs_on+0x9a/0x310 [ 72.068224] ? trace_hardirqs_on+0xb4/0x310 [ 72.072529] ? trace_hardirqs_on+0xb4/0x310 [ 72.076847] kasan_end_report+0x47/0x4f [ 72.080802] kasan_report.cold.8+0x76/0x309 [ 72.085105] ? crypto_gcm_init_common+0xe2/0x710 [ 72.089847] check_memory_region+0x13e/0x1b0 [ 72.094239] memcpy+0x23/0x50 [ 72.097432] crypto_gcm_init_common+0xe2/0x710 [ 72.102003] crypto_gcm_encrypt+0xe2/0x6b0 [ 72.106224] pcrypt_aead_enc+0xd6/0x340 [ 72.110187] padata_parallel_worker+0x49d/0x760 [ 72.114905] ? padata_alloc_pd+0xe90/0xe90 [ 72.119216] ? zap_class+0x640/0x640 [ 72.122923] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.128448] ? check_preemption_disabled+0x48/0x280 [ 72.133448] ? __lock_is_held+0xb5/0x140 [ 72.137497] process_one_work+0xc90/0x1c40 [ 72.141718] ? mark_held_locks+0x130/0x130 [ 72.145936] ? pwq_dec_nr_in_flight+0x4a0/0x4a0 [ 72.150591] ? __switch_to_asm+0x40/0x70 [ 72.154632] ? __switch_to_asm+0x34/0x70 [ 72.158676] ? __switch_to_asm+0x34/0x70 [ 72.162721] ? __switch_to_asm+0x40/0x70 [ 72.166771] ? __switch_to_asm+0x34/0x70 [ 72.170813] ? __switch_to_asm+0x40/0x70 [ 72.174874] ? __switch_to_asm+0x34/0x70 [ 72.178919] ? __switch_to_asm+0x40/0x70 [ 72.182964] ? __schedule+0x8d7/0x21d0 [ 72.186841] ? zap_class+0x640/0x640 [ 72.190538] ? lock_downgrade+0x900/0x900 [ 72.194718] ? trace_hardirqs_off+0xb8/0x310 [ 72.199122] ? kasan_check_read+0x11/0x20 [ 72.203253] ? do_raw_spin_unlock+0xa7/0x330 [ 72.207644] ? lock_acquire+0x1ed/0x520 [ 72.211600] ? worker_thread+0x3e0/0x1390 [ 72.215735] ? kasan_check_read+0x11/0x20 [ 72.219868] ? do_raw_spin_lock+0x14f/0x350 [ 72.224187] ? kasan_check_read+0x11/0x20 [ 72.228326] ? rwlock_bug.part.2+0x90/0x90 [ 72.232551] ? trace_hardirqs_on+0x310/0x310 [ 72.236961] worker_thread+0x17f/0x1390 [ 72.240923] ? __switch_to_asm+0x34/0x70 [ 72.244971] ? process_one_work+0x1c40/0x1c40 [ 72.249451] ? __sched_text_start+0x8/0x8 [ 72.253589] ? __kthread_parkme+0xce/0x1a0 [ 72.257809] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 72.262898] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 72.267984] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 72.272551] ? trace_hardirqs_on+0xbd/0x310 [ 72.276859] ? kasan_check_read+0x11/0x20 [ 72.280989] ? __kthread_parkme+0xce/0x1a0 [ 72.285208] ? trace_hardirqs_off_caller+0x310/0x310 [ 72.290300] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 72.295390] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 72.300910] ? __kthread_parkme+0xfb/0x1a0 [ 72.305128] ? process_one_work+0x1c40/0x1c40 [ 72.309607] kthread+0x35a/0x440 [ 72.312971] ? kthread_stop+0x900/0x900 [ 72.316935] ret_from_fork+0x3a/0x50 [ 72.321454] Kernel Offset: disabled [ 72.325078] Rebooting in 86400 seconds..