[....] Starting enhanced syslogd: rsyslogd[ 15.558904] audit: type=1400 audit(1520759105.458:5): avc: denied { syslog } for pid=3937 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.452460] audit: type=1400 audit(1520759109.352:6): avc: denied { map } for pid=4078 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 Warning: Permanently added '10.128.0.47' (ECDSA) to the list of known hosts. executing program [ 25.799273] audit: type=1400 audit(1520759115.699:7): avc: denied { map } for pid=4092 comm="syzkaller811620" path="/root/syzkaller811620673" 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 [ 25.805349] ================================================================== [ 25.832565] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 25.838682] Read of size 8 at addr ffff8801d596df18 by task syzkaller811620/4092 [ 25.846183] [ 25.847785] CPU: 0 PID: 4092 Comm: syzkaller811620 Not tainted 4.16.0-rc4+ #349 [ 25.855200] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.864524] Call Trace: [ 25.867087] dump_stack+0x194/0x24d [ 25.870693] ? arch_local_irq_restore+0x53/0x53 [ 25.875335] ? show_regs_print_info+0x18/0x18 [ 25.879809] ? ip6_xmit+0x1f76/0x2260 [ 25.883584] print_address_description+0x73/0x250 [ 25.888402] ? ip6_xmit+0x1f76/0x2260 [ 25.892175] kasan_report+0x23c/0x360 [ 25.895951] __asan_report_load8_noabort+0x14/0x20 [ 25.900938] ip6_xmit+0x1f76/0x2260 [ 25.904552] ? ip6_finish_output2+0x23a0/0x23a0 [ 25.909242] ? fl6_update_dst+0x127/0x2b0 [ 25.913369] ? inet6_csk_route_socket+0x691/0xe80 [ 25.918188] ? trace_hardirqs_off+0x10/0x10 [ 25.922494] ? lock_acquire+0x1d5/0x580 [ 25.926450] ? lock_acquire+0x1d5/0x580 [ 25.930399] ? inet6_csk_xmit+0x114/0x580 [ 25.934520] ? trace_hardirqs_off+0x10/0x10 [ 25.938821] ? lock_release+0xa40/0xa40 [ 25.942793] inet6_csk_xmit+0x2fc/0x580 [ 25.946745] ? inet6_csk_update_pmtu+0x160/0x160 [ 25.951475] ? __sk_dst_check+0x1a5/0x380 [ 25.956083] ? sock_kfree_s+0x60/0x60 [ 25.959874] l2tp_xmit_skb+0x105f/0x1410 [ 25.963934] ? l2tp_session_create+0xb80/0xb80 [ 25.968492] ? sock_wmalloc+0x15d/0x1d0 [ 25.972441] ? iov_iter_advance+0x13f0/0x13f0 [ 25.976914] ? pppol2tp_sendmsg+0x41b/0x670 [ 25.981211] pppol2tp_sendmsg+0x470/0x670 [ 25.985335] ? selinux_socket_sendmsg+0x36/0x40 [ 25.989978] ? pppol2tp_getsockopt+0x900/0x900 [ 25.994535] sock_sendmsg+0xca/0x110 [ 25.998223] SYSC_sendto+0x361/0x5c0 [ 26.001913] ? SYSC_connect+0x4a0/0x4a0 [ 26.005873] ? inet_dgram_connect+0x172/0x1f0 [ 26.010342] ? SYSC_connect+0x2e0/0x4a0 [ 26.014317] ? mm_fault_error+0x2c0/0x2c0 [ 26.018441] ? move_addr_to_kernel+0x60/0x60 [ 26.022825] SyS_sendto+0x40/0x50 [ 26.026251] ? SyS_getpeername+0x30/0x30 [ 26.030288] do_syscall_64+0x281/0x940 [ 26.034149] ? __do_page_fault+0xc90/0xc90 [ 26.038360] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.043105] ? syscall_return_slowpath+0x550/0x550 [ 26.048011] ? syscall_return_slowpath+0x2ac/0x550 [ 26.052920] ? prepare_exit_to_usermode+0x350/0x350 [ 26.057910] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 26.063251] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.068073] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.073235] RIP: 0033:0x440469 [ 26.076397] RSP: 002b:00007ffc3268e2e8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 26.084076] RAX: ffffffffffffffda RBX: 00007ffc3268e330 RCX: 0000000000440469 [ 26.091319] RDX: 0000000000000000 RSI: 0000000020001180 RDI: 0000000000000004 [ 26.098562] RBP: 00000000006cb018 R08: 00000000200021c0 R09: 0000000000000080 [ 26.105801] R10: 0000000000040001 R11: 0000000000000212 R12: 0000000000401d30 [ 26.113046] R13: 0000000000401dc0 R14: 0000000000000000 R15: 0000000000000000 [ 26.120303] [ 26.121903] Allocated by task 2068: [ 26.125504] save_stack+0x43/0xd0 [ 26.128929] kasan_kmalloc+0xad/0xe0 [ 26.132614] kasan_slab_alloc+0x12/0x20 [ 26.136558] kmem_cache_alloc+0x12e/0x760 [ 26.140681] dst_alloc+0x11f/0x1a0 [ 26.144192] rt_dst_alloc+0xe9/0x520 [ 26.147878] ip_route_input_rcu+0x1076/0x3200 [ 26.152347] ip_route_input_noref+0xf5/0x1e0 [ 26.156729] ip_rcv_finish+0x3a6/0x2040 [ 26.160673] ip_rcv+0xb76/0x1820 [ 26.164016] __netif_receive_skb_core+0x1a41/0x3460 [ 26.169011] __netif_receive_skb+0x2c/0x1b0 [ 26.173311] netif_receive_skb_internal+0x10b/0x670 [ 26.178297] napi_gro_receive+0x3d0/0x500 [ 26.182418] receive_buf+0xb6f/0x2530 [ 26.186191] virtnet_poll+0x320/0xb70 [ 26.189961] net_rx_action+0x792/0x1910 [ 26.193907] __do_softirq+0x2d7/0xb85 [ 26.197675] [ 26.199275] Freed by task 2068: [ 26.202526] save_stack+0x43/0xd0 [ 26.205949] __kasan_slab_free+0x11a/0x170 [ 26.210155] kasan_slab_free+0xe/0x10 [ 26.213929] kmem_cache_free+0x83/0x2a0 [ 26.217875] dst_destroy+0x257/0x370 [ 26.221579] dst_destroy_rcu+0x16/0x20 [ 26.225441] rcu_process_callbacks+0xd6c/0x17f0 [ 26.230082] __do_softirq+0x2d7/0xb85 [ 26.233849] [ 26.235453] The buggy address belongs to the object at ffff8801d596df00 [ 26.235453] which belongs to the cache ip_dst_cache of size 168 [ 26.248169] The buggy address is located 24 bytes inside of [ 26.248169] 168-byte region [ffff8801d596df00, ffff8801d596dfa8) [ 26.259926] The buggy address belongs to the page: [ 26.264830] page:ffffea0007565b40 count:1 mapcount:0 mapping:ffff8801d596d000 index:0xffff8801d596d000 [ 26.274255] flags: 0x2fffc0000000100(slab) [ 26.278464] raw: 02fffc0000000100 ffff8801d596d000 ffff8801d596d000 0000000100000006 [ 26.286320] raw: ffff8801d5b91938 ffffea00075ebe60 ffff8801d5b904c0 0000000000000000 [ 26.294171] page dumped because: kasan: bad access detected [ 26.299852] [ 26.301450] Memory state around the buggy address: [ 26.306353] ffff8801d596de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.313687] ffff8801d596de80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 26.321024] >ffff8801d596df00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.328358] ^ [ 26.332478] ffff8801d596df80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 26.339806] ffff8801d596e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.347144] ================================================================== [ 26.354474] Disabling lock debugging due to kernel taint [ 26.359925] Kernel panic - not syncing: panic_on_warn set ... [ 26.359925] [ 26.367268] CPU: 0 PID: 4092 Comm: syzkaller811620 Tainted: G B 4.16.0-rc4+ #349 [ 26.375986] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.386701] Call Trace: [ 26.389264] dump_stack+0x194/0x24d [ 26.392865] ? arch_local_irq_restore+0x53/0x53 [ 26.397502] ? kasan_end_report+0x32/0x50 [ 26.401626] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.406358] ? vsnprintf+0x1ed/0x1900 [ 26.410134] ? ip6_xmit+0x1f30/0x2260 [ 26.413907] panic+0x1e4/0x41c [ 26.417073] ? refcount_error_report+0x214/0x214 [ 26.421804] ? add_taint+0x1c/0x50 [ 26.425313] ? add_taint+0x1c/0x50 [ 26.428827] ? ip6_xmit+0x1f76/0x2260 [ 26.432600] kasan_end_report+0x50/0x50 [ 26.436545] kasan_report+0x149/0x360 [ 26.440320] __asan_report_load8_noabort+0x14/0x20 [ 26.445221] ip6_xmit+0x1f76/0x2260 [ 26.448842] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.453482] ? fl6_update_dst+0x127/0x2b0 [ 26.457603] ? inet6_csk_route_socket+0x691/0xe80 [ 26.462426] ? trace_hardirqs_off+0x10/0x10 [ 26.466720] ? lock_acquire+0x1d5/0x580 [ 26.470664] ? lock_acquire+0x1d5/0x580 [ 26.474608] ? inet6_csk_xmit+0x114/0x580 [ 26.478725] ? trace_hardirqs_off+0x10/0x10 [ 26.483026] ? lock_release+0xa40/0xa40 [ 26.486984] inet6_csk_xmit+0x2fc/0x580 [ 26.490928] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.495654] ? __sk_dst_check+0x1a5/0x380 [ 26.499772] ? sock_kfree_s+0x60/0x60 [ 26.503553] l2tp_xmit_skb+0x105f/0x1410 [ 26.507591] ? l2tp_session_create+0xb80/0xb80 [ 26.512145] ? sock_wmalloc+0x15d/0x1d0 [ 26.516091] ? iov_iter_advance+0x13f0/0x13f0 [ 26.520558] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.524850] pppol2tp_sendmsg+0x470/0x670 [ 26.528970] ? selinux_socket_sendmsg+0x36/0x40 [ 26.533609] ? pppol2tp_getsockopt+0x900/0x900 [ 26.538162] sock_sendmsg+0xca/0x110 [ 26.541866] SYSC_sendto+0x361/0x5c0 [ 26.545558] ? SYSC_connect+0x4a0/0x4a0 [ 26.549527] ? inet_dgram_connect+0x172/0x1f0 [ 26.554080] ? SYSC_connect+0x2e0/0x4a0 [ 26.558052] ? mm_fault_error+0x2c0/0x2c0 [ 26.562173] ? move_addr_to_kernel+0x60/0x60 [ 26.566555] SyS_sendto+0x40/0x50 [ 26.569978] ? SyS_getpeername+0x30/0x30 [ 26.574014] do_syscall_64+0x281/0x940 [ 26.577880] ? __do_page_fault+0xc90/0xc90 [ 26.582099] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.586828] ? syscall_return_slowpath+0x550/0x550 [ 26.591727] ? syscall_return_slowpath+0x2ac/0x550 [ 26.596629] ? prepare_exit_to_usermode+0x350/0x350 [ 26.601617] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 26.606952] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.611768] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.616927] RIP: 0033:0x440469 [ 26.620086] RSP: 002b:00007ffc3268e2e8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 26.627762] RAX: ffffffffffffffda RBX: 00007ffc3268e330 RCX: 0000000000440469 [ 26.635003] RDX: 0000000000000000 RSI: 0000000020001180 RDI: 0000000000000004 [ 26.642249] RBP: 00000000006cb018 R08: 00000000200021c0 R09: 0000000000000080 [ 26.649492] R10: 0000000000040001 R11: 0000000000000212 R12: 0000000000401d30 [ 26.656731] R13: 0000000000401dc0 R14: 0000000000000000 R15: 0000000000000000 [ 26.664431] Dumping ftrace buffer: [ 26.667940] (ftrace buffer empty) [ 26.671618] Kernel Offset: disabled [ 26.675215] Rebooting in 86400 seconds..