[....] Starting enhanced syslogd: rsyslogd[ 12.194472] audit: type=1400 audit(1515422923.622:5): avc: denied { syslog } for pid=3343 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.389104] audit: type=1400 audit(1515422930.816:6): avc: denied { map } for pid=3482 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.15.208' (ECDSA) to the list of known hosts. 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 [ 45.674933] audit: type=1400 audit(1515422957.102:7): avc: denied { map } for pid=3499 comm="syzkaller447710" path="/root/syzkaller447710806" 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 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 [ 46.350038] ================================================================== [ 46.357439] BUG: KASAN: use-after-free in tipc_group_size+0x40/0x50 [ 46.363818] Read of size 2 at addr ffff8801c08ba280 by task syzkaller447710/3513 [ 46.371315] [ 46.372913] CPU: 0 PID: 3513 Comm: syzkaller447710 Not tainted 4.15.0-rc7+ #252 [ 46.380335] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.389668] Call Trace: [ 46.392231] dump_stack+0x194/0x257 [ 46.395834] ? arch_local_irq_restore+0x53/0x53 [ 46.400477] ? show_regs_print_info+0x18/0x18 [ 46.404951] ? iterate_fd+0x3f0/0x3f0 [ 46.408723] ? tipc_group_size+0x40/0x50 [ 46.412757] print_address_description+0x73/0x250 [ 46.417569] ? tipc_group_size+0x40/0x50 [ 46.421622] kasan_report+0x25b/0x340 [ 46.425396] __asan_report_load2_noabort+0x14/0x20 [ 46.430302] tipc_group_size+0x40/0x50 [ 46.434167] tipc_poll+0x374/0x4f0 [ 46.437676] ? tipc_ioctl+0x240/0x240 [ 46.441449] ? __check_object_size+0x25d/0x4f0 [ 46.445999] ? mark_held_locks+0xaf/0x100 [ 46.450130] sock_poll+0x141/0x320 [ 46.453646] ? __might_sleep+0x95/0x190 [ 46.457592] ? sock_ioctl+0x440/0x440 [ 46.461368] ? sock_ioctl+0x440/0x440 [ 46.465135] do_sys_poll+0x715/0x10b0 [ 46.468920] ? compat_core_sys_select+0x9e0/0x9e0 [ 46.473735] ? _raw_spin_unlock+0x22/0x30 [ 46.477854] ? __handle_mm_fault+0x80e/0x3ce0 [ 46.482321] ? check_noncircular+0x20/0x20 [ 46.486521] ? __pmd_alloc+0x4e0/0x4e0 [ 46.490390] ? find_held_lock+0x35/0x1d0 [ 46.494427] ? handle_mm_fault+0x248/0x8d0 [ 46.498631] ? find_held_lock+0x35/0x1d0 [ 46.502680] ? handle_mm_fault+0x410/0x8d0 [ 46.506881] ? memset+0x31/0x40 [ 46.510127] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 46.514687] ? vmacache_find+0x5f/0x280 [ 46.518631] ? vmacache_update+0xfe/0x130 [ 46.522750] ? up_read+0x1a/0x40 [ 46.526088] ? __do_page_fault+0x3d6/0xc90 [ 46.530292] ? get_unused_fd_flags+0x190/0x190 [ 46.534848] ? mm_fault_error+0x2c0/0x2c0 [ 46.538966] ? sock_alloc_file+0x2a6/0x560 [ 46.543175] ? do_page_fault+0xee/0x720 [ 46.547116] ? __alloc_fd+0x750/0x750 [ 46.550891] ? poll_select_set_timeout+0x12f/0x210 [ 46.555794] ? do_restart_poll+0x2a0/0x2a0 [ 46.560004] ? SyS_futex+0x269/0x390 [ 46.563685] ? fd_install+0x4d/0x60 [ 46.567296] SyS_poll+0x10d/0x450 [ 46.570715] ? SyS_poll+0x10d/0x450 [ 46.574312] ? SyS_pselect6+0x650/0x650 [ 46.578252] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.583246] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.587979] entry_SYSCALL_64_fastpath+0x23/0x9a [ 46.592703] RIP: 0033:0x445cb9 [ 46.595862] RSP: 002b:00007f04886b1ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000007 [ 46.603537] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 0000000000445cb9 [ 46.610788] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000020fa2ff8 [ 46.618028] RBP: 00000000006dac38 R08: 0000000000000000 R09: 0000000000000000 [ 46.625271] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 46.632508] R13: 00007ffc84d56d7f R14: 00007f04886b29c0 R15: 0000000000000005 [ 46.639771] [ 46.641371] Allocated by task 3510: [ 46.644978] save_stack+0x43/0xd0 [ 46.648398] kasan_kmalloc+0xad/0xe0 [ 46.652075] kmem_cache_alloc_trace+0x136/0x750 [ 46.656718] tipc_group_create+0x116/0x9c0 [ 46.660916] tipc_setsockopt+0x249/0xc10 [ 46.664944] SyS_setsockopt+0x189/0x360 [ 46.668883] entry_SYSCALL_64_fastpath+0x23/0x9a [ 46.673601] [ 46.675195] Freed by task 3510: [ 46.678440] save_stack+0x43/0xd0 [ 46.681857] kasan_slab_free+0x71/0xc0 [ 46.685709] kfree+0xd6/0x260 [ 46.688786] tipc_group_delete+0x2c8/0x3d0 [ 46.692987] tipc_setsockopt+0xb0d/0xc10 [ 46.697012] SyS_setsockopt+0x189/0x360 [ 46.700954] entry_SYSCALL_64_fastpath+0x23/0x9a [ 46.705673] [ 46.707268] The buggy address belongs to the object at ffff8801c08ba200 [ 46.707268] which belongs to the cache kmalloc-192 of size 192 [ 46.719890] The buggy address is located 128 bytes inside of [ 46.719890] 192-byte region [ffff8801c08ba200, ffff8801c08ba2c0) [ 46.731729] The buggy address belongs to the page: [ 46.736627] page:ffffea0007022e80 count:1 mapcount:0 mapping:ffff8801c08ba000 index:0x0 [ 46.744738] flags: 0x2fffc0000000100(slab) [ 46.748943] raw: 02fffc0000000100 ffff8801c08ba000 0000000000000000 0000000100000010 [ 46.756790] raw: ffffea00071338a0 ffffea0006fe2360 ffff8801dac00040 0000000000000000 [ 46.764635] page dumped because: kasan: bad access detected [ 46.770322] [ 46.771918] Memory state around the buggy address: [ 46.776823] ffff8801c08ba180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.784147] ffff8801c08ba200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.791478] >ffff8801c08ba280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.798802] ^ executing program [ 46.802144] ffff8801c08ba300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.809471] ffff8801c08ba380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.816795] ================================================================== [ 46.824119] Disabling lock debugging due to kernel taint [ 46.829664] Kernel panic - not syncing: panic_on_warn set ... [ 46.829664] [ 46.837011] CPU: 0 PID: 3513 Comm: syzkaller447710 Tainted: G B 4.15.0-rc7+ #252 [ 46.845727] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.855047] Call Trace: [ 46.857604] dump_stack+0x194/0x257 [ 46.861199] ? arch_local_irq_restore+0x53/0x53 [ 46.865832] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.870557] ? vsnprintf+0x1ed/0x1900 [ 46.874326] ? tipc_group_exclude+0x80/0xa0 [ 46.878613] panic+0x1e4/0x41c [ 46.881771] ? refcount_error_report+0x214/0x214 [ 46.886502] ? add_taint+0x1c/0x50 [ 46.890005] ? add_taint+0x1c/0x50 [ 46.893512] ? tipc_group_size+0x40/0x50 [ 46.897539] kasan_end_report+0x50/0x50 [ 46.901488] kasan_report+0x144/0x340 [ 46.905256] __asan_report_load2_noabort+0x14/0x20 [ 46.910150] tipc_group_size+0x40/0x50 [ 46.914002] tipc_poll+0x374/0x4f0 [ 46.917518] ? tipc_ioctl+0x240/0x240 [ 46.921284] ? __check_object_size+0x25d/0x4f0 [ 46.925844] ? mark_held_locks+0xaf/0x100 [ 46.929959] sock_poll+0x141/0x320 [ 46.933471] ? __might_sleep+0x95/0x190 [ 46.937412] ? sock_ioctl+0x440/0x440 [ 46.941179] ? sock_ioctl+0x440/0x440 [ 46.944945] do_sys_poll+0x715/0x10b0 [ 46.949359] ? compat_core_sys_select+0x9e0/0x9e0 [ 46.954174] ? _raw_spin_unlock+0x22/0x30 [ 46.958290] ? __handle_mm_fault+0x80e/0x3ce0 [ 46.962757] ? check_noncircular+0x20/0x20 [ 46.966955] ? __pmd_alloc+0x4e0/0x4e0 [ 46.970812] ? find_held_lock+0x35/0x1d0 [ 46.974842] ? handle_mm_fault+0x248/0x8d0 [ 46.979564] ? find_held_lock+0x35/0x1d0 [ 46.983601] ? handle_mm_fault+0x410/0x8d0 [ 46.987802] ? memset+0x31/0x40 [ 46.991050] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 46.995597] ? vmacache_find+0x5f/0x280 [ 46.999538] ? vmacache_update+0xfe/0x130 [ 47.003652] ? up_read+0x1a/0x40 [ 47.006985] ? __do_page_fault+0x3d6/0xc90 [ 47.011183] ? get_unused_fd_flags+0x190/0x190 [ 47.015737] ? mm_fault_error+0x2c0/0x2c0 [ 47.019861] ? sock_alloc_file+0x2a6/0x560 [ 47.024063] ? do_page_fault+0xee/0x720 [ 47.028006] ? __alloc_fd+0x750/0x750 [ 47.031771] ? poll_select_set_timeout+0x12f/0x210 [ 47.036667] ? do_restart_poll+0x2a0/0x2a0 [ 47.040869] ? SyS_futex+0x269/0x390 [ 47.044548] ? fd_install+0x4d/0x60 [ 47.048145] SyS_poll+0x10d/0x450 [ 47.051569] ? SyS_poll+0x10d/0x450 [ 47.055160] ? SyS_pselect6+0x650/0x650 [ 47.059099] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.064084] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.068810] entry_SYSCALL_64_fastpath+0x23/0x9a [ 47.073532] RIP: 0033:0x445cb9 [ 47.076688] RSP: 002b:00007f04886b1ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000007 [ 47.084366] RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 0000000000445cb9 [ 47.091602] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000020fa2ff8 [ 47.098836] RBP: 00000000006dac38 R08: 0000000000000000 R09: 0000000000000000 [ 47.106071] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 47.113307] R13: 00007ffc84d56d7f R14: 00007f04886b29c0 R15: 0000000000000005 [ 47.120579] Dumping ftrace buffer: [ 47.124081] (ftrace buffer empty) [ 47.127755] Kernel Offset: disabled [ 47.131347] Rebooting in 86400 seconds..