[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.513294] audit: type=1400 audit(1520956642.597:6): avc: denied { map } for pid=4223 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.35' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 24.854995] audit: type=1400 audit(1520956648.938:7): avc: denied { map } for pid=4237 comm="syzkaller436804" path="/root/syzkaller436804843" 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 [ 24.861650] ================================================================== [ 24.889141] BUG: KASAN: slab-out-of-bounds in ip6_xmit+0x1f76/0x2260 [ 24.895608] Read of size 8 at addr ffff8801cc5f7018 by task syzkaller436804/4237 [ 24.903109] [ 24.904714] CPU: 1 PID: 4237 Comm: syzkaller436804 Not tainted 4.16.0-rc4+ #263 [ 24.912128] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.921451] Call Trace: [ 24.924025] dump_stack+0x194/0x24d [ 24.927630] ? arch_local_irq_restore+0x53/0x53 [ 24.932274] ? show_regs_print_info+0x18/0x18 [ 24.936749] ? ip6_xmit+0x1f76/0x2260 [ 24.940529] print_address_description+0x73/0x250 [ 24.945344] ? ip6_xmit+0x1f76/0x2260 [ 24.949117] kasan_report+0x23c/0x360 [ 24.952894] __asan_report_load8_noabort+0x14/0x20 [ 24.957796] ip6_xmit+0x1f76/0x2260 [ 24.961424] ? ip6_finish_output2+0x23d0/0x23d0 [ 24.966080] ? fl6_update_dst+0x127/0x2b0 [ 24.970207] ? inet6_csk_route_socket+0x691/0xe80 [ 24.975034] ? trace_hardirqs_off+0x10/0x10 [ 24.979329] ? lock_acquire+0x1d5/0x580 [ 24.983273] ? lock_acquire+0x1d5/0x580 [ 24.987220] ? inet6_csk_xmit+0x114/0x580 [ 24.991340] ? trace_hardirqs_off+0x10/0x10 [ 24.995653] ? lock_release+0xa40/0xa40 [ 24.999617] inet6_csk_xmit+0x2fc/0x580 [ 25.003565] ? inet6_csk_update_pmtu+0x160/0x160 [ 25.008298] ? __sk_dst_check+0x1a5/0x380 [ 25.012421] ? sock_kzfree_s+0x60/0x60 [ 25.016297] l2tp_xmit_skb+0x105f/0x1410 [ 25.020340] ? l2tp_session_create+0xb80/0xb80 [ 25.024894] ? sock_wmalloc+0x15d/0x1d0 [ 25.028844] ? iov_iter_advance+0x13f0/0x13f0 [ 25.033316] ? pppol2tp_sendmsg+0x41b/0x670 [ 25.037613] pppol2tp_sendmsg+0x470/0x670 [ 25.041735] ? selinux_socket_sendmsg+0x36/0x40 [ 25.046377] ? pppol2tp_getsockopt+0x900/0x900 [ 25.050949] sock_sendmsg+0xca/0x110 [ 25.054637] SYSC_sendto+0x361/0x5c0 [ 25.058327] ? SYSC_connect+0x4a0/0x4a0 [ 25.062284] ? inet_dgram_connect+0x172/0x1f0 [ 25.066761] ? SYSC_connect+0x2e0/0x4a0 [ 25.070753] ? mm_fault_error+0x2c0/0x2c0 [ 25.074877] ? move_addr_to_kernel+0x60/0x60 [ 25.079261] SyS_sendto+0x40/0x50 [ 25.082695] ? SyS_getpeername+0x30/0x30 [ 25.086733] do_syscall_64+0x281/0x940 [ 25.090594] ? __do_page_fault+0xc90/0xc90 [ 25.094799] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.099530] ? syscall_return_slowpath+0x550/0x550 [ 25.104430] ? syscall_return_slowpath+0x2ac/0x550 [ 25.109331] ? prepare_exit_to_usermode+0x350/0x350 [ 25.114321] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 25.119672] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.124497] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 25.129660] RIP: 0033:0x441e89 [ 25.132821] RSP: 002b:00007ffd32fa7308 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.140505] RAX: ffffffffffffffda RBX: 00007ffd32fa73f0 RCX: 0000000000441e89 [ 25.147748] RDX: 0000000000000000 RSI: 0000000020001180 RDI: 0000000000000004 [ 25.154989] RBP: 0000000000000000 R08: 00000000200021c0 R09: 0000000000000080 [ 25.162237] R10: 0000000000040001 R11: 0000000000000216 R12: 0000000000403750 [ 25.169489] R13: 00000000004037e0 R14: 0000000000000000 R15: 0000000000000000 [ 25.176759] [ 25.178359] Allocated by task 4050: [ 25.181961] save_stack+0x43/0xd0 [ 25.185382] kasan_kmalloc+0xad/0xe0 [ 25.189068] kasan_slab_alloc+0x12/0x20 [ 25.193017] kmem_cache_alloc+0x12e/0x760 [ 25.197146] get_empty_filp+0xfb/0x4f0 [ 25.201014] path_openat+0xed/0x3530 [ 25.204704] do_filp_open+0x25b/0x3b0 [ 25.208473] do_sys_open+0x502/0x6d0 [ 25.212155] SyS_open+0x2d/0x40 [ 25.215406] do_syscall_64+0x281/0x940 [ 25.219264] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 25.224424] [ 25.226039] Freed by task 0: [ 25.229039] save_stack+0x43/0xd0 [ 25.232464] __kasan_slab_free+0x11a/0x170 [ 25.236676] kasan_slab_free+0xe/0x10 [ 25.240448] kmem_cache_free+0x83/0x2a0 [ 25.244392] file_free_rcu+0x5c/0x70 [ 25.248077] rcu_process_callbacks+0xd6c/0x17f0 [ 25.252717] __do_softirq+0x2d7/0xb85 [ 25.256484] [ 25.258094] The buggy address belongs to the object at ffff8801cc5f7040 [ 25.258094] which belongs to the cache filp of size 456 [ 25.270112] The buggy address is located 40 bytes to the left of [ 25.270112] 456-byte region [ffff8801cc5f7040, ffff8801cc5f7208) [ 25.282300] The buggy address belongs to the page: [ 25.287199] page:ffffea0007317dc0 count:1 mapcount:0 mapping:ffff8801cc5f7040 index:0xffff8801cc5f7cc0 [ 25.296613] flags: 0x2fffc0000000100(slab) [ 25.300820] raw: 02fffc0000000100 ffff8801cc5f7040 ffff8801cc5f7cc0 0000000100000001 [ 25.308679] raw: ffffea0006d613e0 ffffea0006dae6e0 ffff8801da5d6180 0000000000000000 [ 25.316527] page dumped because: kasan: bad access detected [ 25.322205] [ 25.323802] Memory state around the buggy address: [ 25.328701] ffff8801cc5f6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.336032] ffff8801cc5f6f80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 25.343362] >ffff8801cc5f7000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.350689] ^ [ 25.354805] ffff8801cc5f7080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.362144] ffff8801cc5f7100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.369469] ================================================================== [ 25.376799] Disabling lock debugging due to kernel taint [ 25.382259] Kernel panic - not syncing: panic_on_warn set ... [ 25.382259] [ 25.389613] CPU: 1 PID: 4237 Comm: syzkaller436804 Tainted: G B 4.16.0-rc4+ #263 [ 25.398330] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.407652] Call Trace: [ 25.410215] dump_stack+0x194/0x24d [ 25.413813] ? arch_local_irq_restore+0x53/0x53 [ 25.418461] ? kasan_end_report+0x32/0x50 [ 25.422602] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.427331] ? vsnprintf+0x1ed/0x1900 [ 25.431104] ? ip6_xmit+0x1f40/0x2260 [ 25.434877] panic+0x1e4/0x41c [ 25.438043] ? refcount_error_report+0x214/0x214 [ 25.442771] ? add_taint+0x1c/0x50 [ 25.446284] ? add_taint+0x1c/0x50 [ 25.449798] ? ip6_xmit+0x1f76/0x2260 [ 25.453569] kasan_end_report+0x50/0x50 [ 25.457513] kasan_report+0x149/0x360 [ 25.461285] __asan_report_load8_noabort+0x14/0x20 [ 25.466184] ip6_xmit+0x1f76/0x2260 [ 25.469793] ? ip6_finish_output2+0x23d0/0x23d0 [ 25.474442] ? fl6_update_dst+0x127/0x2b0 [ 25.478577] ? inet6_csk_route_socket+0x691/0xe80 [ 25.483394] ? trace_hardirqs_off+0x10/0x10 [ 25.487687] ? lock_acquire+0x1d5/0x580 [ 25.491630] ? lock_acquire+0x1d5/0x580 [ 25.495575] ? inet6_csk_xmit+0x114/0x580 [ 25.499693] ? trace_hardirqs_off+0x10/0x10 [ 25.503995] ? lock_release+0xa40/0xa40 [ 25.507950] inet6_csk_xmit+0x2fc/0x580 [ 25.511911] ? inet6_csk_update_pmtu+0x160/0x160 [ 25.516647] ? __sk_dst_check+0x1a5/0x380 [ 25.520765] ? sock_kzfree_s+0x60/0x60 [ 25.524629] l2tp_xmit_skb+0x105f/0x1410 [ 25.528671] ? l2tp_session_create+0xb80/0xb80 [ 25.533224] ? sock_wmalloc+0x15d/0x1d0 [ 25.537170] ? iov_iter_advance+0x13f0/0x13f0 [ 25.541637] ? pppol2tp_sendmsg+0x41b/0x670 [ 25.545938] pppol2tp_sendmsg+0x470/0x670 [ 25.550061] ? selinux_socket_sendmsg+0x36/0x40 [ 25.554699] ? pppol2tp_getsockopt+0x900/0x900 [ 25.559251] sock_sendmsg+0xca/0x110 [ 25.562936] SYSC_sendto+0x361/0x5c0 [ 25.566623] ? SYSC_connect+0x4a0/0x4a0 [ 25.570572] ? inet_dgram_connect+0x172/0x1f0 [ 25.575044] ? SYSC_connect+0x2e0/0x4a0 [ 25.579025] ? mm_fault_error+0x2c0/0x2c0 [ 25.583143] ? move_addr_to_kernel+0x60/0x60 [ 25.587523] SyS_sendto+0x40/0x50 [ 25.590945] ? SyS_getpeername+0x30/0x30 [ 25.594977] do_syscall_64+0x281/0x940 [ 25.598831] ? __do_page_fault+0xc90/0xc90 [ 25.603038] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.607772] ? syscall_return_slowpath+0x550/0x550 [ 25.612671] ? syscall_return_slowpath+0x2ac/0x550 [ 25.617571] ? prepare_exit_to_usermode+0x350/0x350 [ 25.622557] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 25.627895] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.632710] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 25.637868] RIP: 0033:0x441e89 [ 25.641037] RSP: 002b:00007ffd32fa7308 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.648714] RAX: ffffffffffffffda RBX: 00007ffd32fa73f0 RCX: 0000000000441e89 [ 25.655955] RDX: 0000000000000000 RSI: 0000000020001180 RDI: 0000000000000004 [ 25.663193] RBP: 0000000000000000 R08: 00000000200021c0 R09: 0000000000000080 [ 25.670432] R10: 0000000000040001 R11: 0000000000000216 R12: 0000000000403750 [ 25.677670] R13: 00000000004037e0 R14: 0000000000000000 R15: 0000000000000000 [ 25.685372] Dumping ftrace buffer: [ 25.688883] (ftrace buffer empty) [ 25.692562] Kernel Offset: disabled [ 25.696160] Rebooting in 86400 seconds..