[....] Starting OpenBSD Secure Shell server: sshd[ 9.230759] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 36.752609] random: sshd: uninitialized urandom read (32 bytes read) [ 37.043185] audit: type=1400 audit(1547077595.981:6): avc: denied { map } for pid=1760 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 37.083310] random: sshd: uninitialized urandom read (32 bytes read) [ 37.498855] random: sshd: uninitialized urandom read (32 bytes read) [ 84.888015] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.32' (ECDSA) to the list of known hosts. [ 90.460666] random: sshd: uninitialized urandom read (32 bytes read) [ 90.544157] audit: type=1400 audit(1547077649.481:7): avc: denied { map } for pid=1808 comm="syz-executor355" path="/root/syz-executor355670295" 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 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 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 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 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 [ 94.530312] ================================================================== [ 94.537825] BUG: KASAN: use-after-free in xfrm6_tunnel_destroy+0x4e0/0x560 [ 94.544808] Read of size 8 at addr ffff8881cd9487f8 by task kworker/1:1/63 [ 94.551802] [ 94.553424] CPU: 1 PID: 63 Comm: kworker/1:1 Not tainted 4.14.92+ #4 [ 94.559943] Workqueue: events xfrm_state_gc_task [ 94.564681] Call Trace: [ 94.567240] dump_stack+0xb9/0x10e [ 94.570793] ? xfrm6_tunnel_destroy+0x4e0/0x560 [ 94.575435] print_address_description+0x60/0x226 [ 94.580262] ? xfrm6_tunnel_destroy+0x4e0/0x560 [ 94.585038] kasan_report.cold+0x88/0x2a5 [ 94.589160] ? xfrm6_tunnel_destroy+0x4e0/0x560 [ 94.593972] ? kfree+0x1b3/0x310 [ 94.597315] ? xfrm_state_gc_task+0x3d6/0x550 [ 94.601944] ? xfrm_state_unregister_afinfo+0x190/0x190 [ 94.607371] ? lock_acquire+0x10f/0x380 [ 94.611451] ? process_one_work+0x7c6/0x14e0 [ 94.616000] ? pwq_dec_nr_in_flight+0x2b0/0x2b0 [ 94.620778] ? worker_thread+0x5d7/0x1080 [ 94.625010] ? process_one_work+0x14e0/0x14e0 [ 94.629480] ? kthread+0x310/0x420 [ 94.633003] ? kthread_create_on_node+0xf0/0xf0 [ 94.637652] ? ret_from_fork+0x3a/0x50 [ 94.641537] [ 94.643136] Allocated by task 1818: [ 94.646742] kasan_kmalloc.part.0+0x4f/0xd0 [ 94.651034] __kmalloc+0x143/0x340 [ 94.654740] ops_init+0xee/0x3e0 [ 94.658085] setup_net+0x22b/0x520 [ 94.661612] copy_net_ns+0x19b/0x440 [ 94.665298] create_new_namespaces+0x366/0x750 [ 94.669857] unshare_nsproxy_namespaces+0xa5/0x1e0 [ 94.674771] SyS_unshare+0x300/0x690 [ 94.678457] do_syscall_64+0x19b/0x4b0 [ 94.682314] [ 94.683923] Freed by task 364: [ 94.687109] kasan_slab_free+0xb0/0x190 [ 94.691066] kfree+0xf5/0x310 [ 94.694145] ops_free_list.part.0+0x1f9/0x330 [ 94.698610] cleanup_net+0x466/0x860 [ 94.702296] process_one_work+0x7c6/0x14e0 [ 94.706500] worker_thread+0x5d7/0x1080 [ 94.710570] kthread+0x310/0x420 [ 94.713933] ret_from_fork+0x3a/0x50 [ 94.717620] [ 94.719231] The buggy address belongs to the object at ffff8881cd948000 [ 94.719231] which belongs to the cache kmalloc-8192 of size 8192 [ 94.732039] The buggy address is located 2040 bytes inside of [ 94.732039] 8192-byte region [ffff8881cd948000, ffff8881cd94a000) [ 94.744055] The buggy address belongs to the page: [ 94.749022] page:ffffea0007365200 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 94.758981] flags: 0x4000000000008100(slab|head) [ 94.763708] raw: 4000000000008100 0000000000000000 0000000000000000 0000000100030003 [ 94.771556] raw: dead000000000100 dead000000000200 ffff8881da802400 0000000000000000 [ 94.779403] page dumped because: kasan: bad access detected [ 94.785078] [ 94.786675] Memory state around the buggy address: [ 94.791587] ffff8881cd948680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 94.798922] ffff8881cd948700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 94.806254] >ffff8881cd948780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 94.813581] ^ [ 94.820909] ffff8881cd948800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 94.828250] ffff8881cd948880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 94.835580] ================================================================== [ 94.842912] Disabling lock debugging due to kernel taint [ 94.848360] Kernel panic - not syncing: panic_on_warn set ... [ 94.848360] [ 94.855701] CPU: 1 PID: 63 Comm: kworker/1:1 Tainted: G B 4.14.92+ #4 [ 94.863401] Workqueue: events xfrm_state_gc_task [ 94.868143] Call Trace: [ 94.870717] dump_stack+0xb9/0x10e [ 94.874244] panic+0x1d9/0x3c2 [ 94.877414] ? add_taint.cold+0x16/0x16 [ 94.881370] ? xfrm6_tunnel_destroy+0x4e0/0x560 [ 94.886015] kasan_end_report+0x43/0x49 [ 94.890105] kasan_report.cold+0xa4/0x2a5 [ 94.894243] ? xfrm6_tunnel_destroy+0x4e0/0x560 [ 94.898882] ? kfree+0x1b3/0x310 [ 94.902234] ? xfrm_state_gc_task+0x3d6/0x550 [ 94.906705] ? xfrm_state_unregister_afinfo+0x190/0x190 [ 94.912045] ? lock_acquire+0x10f/0x380 [ 94.915998] ? process_one_work+0x7c6/0x14e0 [ 94.920382] ? pwq_dec_nr_in_flight+0x2b0/0x2b0 [ 94.925028] ? worker_thread+0x5d7/0x1080 [ 94.929154] ? process_one_work+0x14e0/0x14e0 [ 94.933626] ? kthread+0x310/0x420 [ 94.937138] ? kthread_create_on_node+0xf0/0xf0 [ 94.941792] ? ret_from_fork+0x3a/0x50 [ 94.946177] Kernel Offset: 0x2a800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 94.957070] Rebooting in 86400 seconds..