INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-next-kasan-gce-8,10.128.0.50' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 40.702851] ================================================================== [ 40.703998] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 40.704884] Read of size 4 at addr ffff8801d359986c by task syzkaller717881/2991 [ 40.705870] [ 40.706103] CPU: 0 PID: 2991 Comm: syzkaller717881 Not tainted 4.14.0-rc5-next-20171018+ #36 [ 40.707227] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.708485] Call Trace: [ 40.708845] dump_stack+0x194/0x257 [ 40.709338] ? arch_local_irq_restore+0x53/0x53 [ 40.709961] ? show_regs_print_info+0x65/0x65 [ 40.710566] ? tipc_group_self+0x1a2/0x1b0 [ 40.711134] print_address_description+0x73/0x250 [ 40.711781] ? tipc_group_self+0x1a2/0x1b0 [ 40.712361] kasan_report+0x25b/0x340 [ 40.712891] __asan_report_load4_noabort+0x14/0x20 [ 40.713575] tipc_group_self+0x1a2/0x1b0 [ 40.714145] tipc_sk_leave+0xfc/0x200 [ 40.714660] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 40.715282] ? __local_bh_enable_ip+0x9d/0x160 [ 40.715913] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.716582] ? lock_sock_nested+0x91/0x110 [ 40.717148] ? trace_hardirqs_on+0xd/0x10 [ 40.717706] ? __local_bh_enable_ip+0x9d/0x160 [ 40.718324] tipc_release+0x154/0xfe0 [ 40.718846] ? kernel_text_address+0x102/0x140 [ 40.719457] ? tipc_sk_backlog_rcv+0x370/0x370 [ 40.720068] ? __kernel_text_address+0xd/0x40 [ 40.720670] ? unwind_get_return_address+0x61/0xa0 [ 40.721343] ? __save_stack_trace+0x7e/0xd0 [ 40.721940] ? check_noncircular+0x20/0x20 [ 40.722510] ? check_noncircular+0x20/0x20 [ 40.723663] ? locks_remove_file+0x3fa/0x5a0 [ 40.728047] ? fcntl_setlk+0x10c0/0x10c0 [ 40.732077] ? free_fs_struct+0x4f/0x60 [ 40.736021] ? __fsnotify_parent+0xb4/0x3a0 [ 40.740314] ? fsnotify+0x1af0/0x1af0 [ 40.744086] ? rcu_note_context_switch+0x710/0x710 [ 40.748990] sock_release+0x8d/0x1e0 [ 40.752674] ? sock_release+0x1e0/0x1e0 [ 40.756614] sock_close+0x16/0x20 [ 40.760039] __fput+0x327/0x7e0 [ 40.763292] ? fput+0x140/0x140 [ 40.766543] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.771014] ____fput+0x15/0x20 [ 40.774261] task_work_run+0x199/0x270 [ 40.778117] ? task_work_cancel+0x210/0x210 [ 40.782405] ? _raw_spin_unlock+0x22/0x30 [ 40.786520] ? switch_task_namespaces+0x87/0xc0 [ 40.791163] do_exit+0x9b5/0x1ad0 [ 40.794591] ? mm_update_next_owner+0x930/0x930 [ 40.799226] ? reacquire_held_locks+0x1fd/0x3d0 [ 40.803867] ? find_held_lock+0x35/0x1d0 [ 40.807906] ? release_sock+0x1d4/0x2a0 [ 40.811846] ? lock_downgrade+0x990/0x990 [ 40.815962] ? lock_downgrade+0x990/0x990 [ 40.820079] ? do_raw_spin_trylock+0x190/0x190 [ 40.824633] ? tipc_group_delete+0x2c0/0x3c0 [ 40.829010] ? __local_bh_enable_ip+0x9d/0x160 [ 40.833562] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.838544] ? trace_hardirqs_on+0xd/0x10 [ 40.842660] ? __local_bh_enable_ip+0x9d/0x160 [ 40.847211] ? release_sock+0x1d4/0x2a0 [ 40.851161] ? tipc_nametbl_build_group+0x27a/0x370 [ 40.856158] ? tipc_setsockopt+0x703/0xc00 [ 40.860368] ? tipc_sk_leave+0x200/0x200 [ 40.864411] ? security_socket_setsockopt+0x89/0xb0 [ 40.869397] ? SyS_setsockopt+0x215/0x360 [ 40.873516] do_group_exit+0x149/0x400 [ 40.877367] ? SyS_recv+0x40/0x40 [ 40.880787] ? SyS_exit+0x30/0x30 [ 40.884209] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.889201] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.893926] SyS_exit_group+0x1d/0x20 [ 40.897697] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 40.902417] RIP: 0033:0x43e978 [ 40.905571] RSP: 002b:00007ffe64066268 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.913247] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 40.920485] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.927722] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.934958] R10: 0000000020000fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 40.942194] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 40.949445] [ 40.951039] Allocated by task 2991: [ 40.954636] save_stack+0x43/0xd0 [ 40.958054] kasan_kmalloc+0xad/0xe0 [ 40.961732] kmem_cache_alloc_trace+0x136/0x750 [ 40.966367] tipc_group_create+0x116/0x9c0 [ 40.970566] tipc_setsockopt+0x25e/0xc00 [ 40.974594] SyS_setsockopt+0x189/0x360 [ 40.978535] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 40.983252] [ 40.984845] Freed by task 2991: [ 40.988089] save_stack+0x43/0xd0 [ 40.991507] kasan_slab_free+0x71/0xc0 [ 40.995360] kfree+0xca/0x250 [ 40.998430] tipc_group_delete+0x2c0/0x3c0 [ 41.002628] tipc_setsockopt+0xb33/0xc00 [ 41.006655] SyS_setsockopt+0x189/0x360 [ 41.010596] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.015316] [ 41.016912] The buggy address belongs to the object at ffff8801d3599800 [ 41.016912] which belongs to the cache kmalloc-192 of size 192 [ 41.029534] The buggy address is located 108 bytes inside of [ 41.029534] 192-byte region [ffff8801d3599800, ffff8801d35998c0) [ 41.041370] The buggy address belongs to the page: [ 41.046264] page:ffffea00074d6640 count:1 mapcount:0 mapping:ffff8801d3599000 index:0xffff8801d3599000 [ 41.055673] flags: 0x200000000000100(slab) [ 41.059875] raw: 0200000000000100 ffff8801d3599000 ffff8801d3599000 0000000100000009 [ 41.067721] raw: ffffea0007662820 ffff8801dac01138 ffff8801dac00040 0000000000000000 [ 41.075564] page dumped because: kasan: bad access detected [ 41.081236] [ 41.082827] Memory state around the buggy address: [ 41.087721] ffff8801d3599700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.095043] ffff8801d3599780: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.102367] >ffff8801d3599800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.109688] ^ [ 41.116405] ffff8801d3599880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.123729] ffff8801d3599900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.131051] ================================================================== [ 41.138371] Disabling lock debugging due to kernel taint [ 41.143839] Kernel panic - not syncing: panic_on_warn set ... [ 41.143839] [ 41.151168] CPU: 0 PID: 2991 Comm: syzkaller717881 Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 41.161010] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.170331] Call Trace: [ 41.172886] dump_stack+0x194/0x257 [ 41.176482] ? arch_local_irq_restore+0x53/0x53 [ 41.181119] ? kasan_end_report+0x32/0x50 [ 41.185234] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.189955] ? vsnprintf+0x1ed/0x1900 [ 41.193724] ? tipc_group_self+0xb0/0x1b0 [ 41.197838] panic+0x1e4/0x41c [ 41.200997] ? refcount_error_report+0x214/0x214 [ 41.205721] ? add_taint+0x1c/0x50 [ 41.209226] ? add_taint+0x1c/0x50 [ 41.212732] ? tipc_group_self+0x1a2/0x1b0 [ 41.216932] kasan_end_report+0x50/0x50 [ 41.220872] kasan_report+0x144/0x340 [ 41.224639] __asan_report_load4_noabort+0x14/0x20 [ 41.229534] tipc_group_self+0x1a2/0x1b0 [ 41.233562] tipc_sk_leave+0xfc/0x200 [ 41.237331] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 41.241621] ? __local_bh_enable_ip+0x9d/0x160 [ 41.246169] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.251152] ? lock_sock_nested+0x91/0x110 [ 41.255350] ? trace_hardirqs_on+0xd/0x10 [ 41.259461] ? __local_bh_enable_ip+0x9d/0x160 [ 41.264010] tipc_release+0x154/0xfe0 [ 41.267778] ? kernel_text_address+0x102/0x140 [ 41.272324] ? tipc_sk_backlog_rcv+0x370/0x370 [ 41.276870] ? __kernel_text_address+0xd/0x40 [ 41.281331] ? unwind_get_return_address+0x61/0xa0 [ 41.286228] ? __save_stack_trace+0x7e/0xd0 [ 41.290517] ? check_noncircular+0x20/0x20 [ 41.294720] ? check_noncircular+0x20/0x20 [ 41.298921] ? locks_remove_file+0x3fa/0x5a0 [ 41.303292] ? fcntl_setlk+0x10c0/0x10c0 [ 41.307326] ? free_fs_struct+0x4f/0x60 [ 41.311266] ? __fsnotify_parent+0xb4/0x3a0 [ 41.315554] ? fsnotify+0x1af0/0x1af0 [ 41.319322] ? rcu_note_context_switch+0x710/0x710 [ 41.324218] sock_release+0x8d/0x1e0 [ 41.327899] ? sock_release+0x1e0/0x1e0 [ 41.331852] sock_close+0x16/0x20 [ 41.335274] __fput+0x327/0x7e0 [ 41.338521] ? fput+0x140/0x140 [ 41.341768] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.346232] ____fput+0x15/0x20 [ 41.349479] task_work_run+0x199/0x270 [ 41.353332] ? task_work_cancel+0x210/0x210 [ 41.357618] ? _raw_spin_unlock+0x22/0x30 [ 41.361734] ? switch_task_namespaces+0x87/0xc0 [ 41.366369] do_exit+0x9b5/0x1ad0 [ 41.369792] ? mm_update_next_owner+0x930/0x930 [ 41.374424] ? reacquire_held_locks+0x1fd/0x3d0 [ 41.379062] ? find_held_lock+0x35/0x1d0 [ 41.383093] ? release_sock+0x1d4/0x2a0 [ 41.387032] ? lock_downgrade+0x990/0x990 [ 41.391147] ? lock_downgrade+0x990/0x990 [ 41.395261] ? do_raw_spin_trylock+0x190/0x190 [ 41.399811] ? tipc_group_delete+0x2c0/0x3c0 [ 41.404184] ? __local_bh_enable_ip+0x9d/0x160 [ 41.408732] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.413712] ? trace_hardirqs_on+0xd/0x10 [ 41.417831] ? __local_bh_enable_ip+0x9d/0x160 [ 41.422381] ? release_sock+0x1d4/0x2a0 [ 41.426324] ? tipc_nametbl_build_group+0x27a/0x370 [ 41.431308] ? tipc_setsockopt+0x703/0xc00 [ 41.435509] ? tipc_sk_leave+0x200/0x200 [ 41.439540] ? security_socket_setsockopt+0x89/0xb0 [ 41.444524] ? SyS_setsockopt+0x215/0x360 [ 41.448637] do_group_exit+0x149/0x400 [ 41.452488] ? SyS_recv+0x40/0x40 [ 41.455908] ? SyS_exit+0x30/0x30 [ 41.459328] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.464310] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.469032] SyS_exit_group+0x1d/0x20 [ 41.472799] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.477520] RIP: 0033:0x43e978 [ 41.480676] RSP: 002b:00007ffe64066268 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.488347] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 41.495580] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.503896] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.511136] R10: 0000000020000fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 41.518371] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 41.525676] Dumping ftrace buffer: [ 41.529187] (ftrace buffer empty) [ 41.532864] Kernel Offset: disabled [ 41.536458] Rebooting in 86400 seconds..