[info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[ 8.396248] rsyslogd (2864) used greatest stack depth: 14512 bytes left [?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-9,10.128.15.201' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.978867] ================================================================== [ 27.979969] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 27.980833] Read of size 4 at addr ffff8801d42c006c by task syzkaller192434/2986 [ 27.981817] [ 27.982049] CPU: 1 PID: 2986 Comm: syzkaller192434 Not tainted 4.14.0-rc5-next-20171018+ #36 [ 27.983183] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.984458] Call Trace: [ 27.984815] dump_stack+0x194/0x257 [ 27.985306] ? arch_local_irq_restore+0x53/0x53 [ 27.985943] ? show_regs_print_info+0x65/0x65 [ 27.986550] ? tipc_group_self+0x1a2/0x1b0 [ 27.987137] print_address_description+0x73/0x250 [ 27.987797] ? tipc_group_self+0x1a2/0x1b0 [ 27.988362] kasan_report+0x25b/0x340 [ 27.988877] __asan_report_load4_noabort+0x14/0x20 [ 27.989570] tipc_group_self+0x1a2/0x1b0 [ 27.990115] tipc_sk_leave+0xfc/0x200 [ 27.990629] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 27.991207] ? __local_bh_enable_ip+0x9d/0x160 [ 27.991821] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.992488] ? lock_sock_nested+0x91/0x110 [ 27.993053] ? trace_hardirqs_on+0xd/0x10 [ 27.993626] ? __local_bh_enable_ip+0x9d/0x160 [ 27.994241] tipc_release+0x154/0xfe0 [ 27.994756] ? mntput_no_expire+0x130/0xa90 [ 27.995335] ? tipc_sk_backlog_rcv+0x370/0x370 [ 27.995990] ? lock_release+0xa40/0xa40 [ 27.996559] ? dentry_free+0xcd/0x130 [ 27.997070] ? rcu_read_lock_sched_held+0x108/0x120 [ 27.997736] ? kmem_cache_free+0x249/0x280 [ 27.998303] ? dentry_free+0xd2/0x130 [ 27.998816] ? locks_remove_file+0x3fa/0x5a0 [ 27.999407] ? fcntl_setlk+0x10c0/0x10c0 [ 28.003449] ? __fsnotify_parent+0xb4/0x3a0 [ 28.007742] ? fsnotify+0x1af0/0x1af0 [ 28.011510] ? rcu_note_context_switch+0x710/0x710 [ 28.016418] sock_release+0x8d/0x1e0 [ 28.020102] ? sock_release+0x1e0/0x1e0 [ 28.024043] sock_close+0x16/0x20 [ 28.027465] __fput+0x327/0x7e0 [ 28.030732] ? fput+0x140/0x140 [ 28.033986] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 28.039837] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.044308] ____fput+0x15/0x20 [ 28.047560] task_work_run+0x199/0x270 [ 28.051423] ? task_work_cancel+0x210/0x210 [ 28.055716] ? _raw_spin_unlock+0x22/0x30 [ 28.059833] ? switch_task_namespaces+0x87/0xc0 [ 28.064472] do_exit+0x9b5/0x1ad0 [ 28.067901] ? mm_update_next_owner+0x930/0x930 [ 28.072535] ? reacquire_held_locks+0x1fd/0x3d0 [ 28.077175] ? find_held_lock+0x35/0x1d0 [ 28.081212] ? release_sock+0x1d4/0x2a0 [ 28.085152] ? lock_downgrade+0x990/0x990 [ 28.089264] ? lock_downgrade+0x990/0x990 [ 28.093379] ? do_raw_spin_trylock+0x190/0x190 [ 28.097929] ? tipc_group_delete+0x2c0/0x3c0 [ 28.102303] ? __local_bh_enable_ip+0x9d/0x160 [ 28.106851] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.111833] ? trace_hardirqs_on+0xd/0x10 [ 28.115947] ? __local_bh_enable_ip+0x9d/0x160 [ 28.120499] ? release_sock+0x1d4/0x2a0 [ 28.124450] ? tipc_nametbl_build_group+0x27a/0x370 [ 28.129439] ? tipc_setsockopt+0x703/0xc00 [ 28.133644] ? tipc_sk_leave+0x200/0x200 [ 28.137681] ? security_socket_setsockopt+0x89/0xb0 [ 28.142668] ? SyS_setsockopt+0x215/0x360 [ 28.146784] do_group_exit+0x149/0x400 [ 28.150638] ? SyS_recv+0x40/0x40 [ 28.154058] ? SyS_exit+0x30/0x30 [ 28.157476] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.162462] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.167186] SyS_exit_group+0x1d/0x20 [ 28.170954] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 28.175672] RIP: 0033:0x43e978 [ 28.178826] RSP: 002b:00007ffd7f824638 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 28.186497] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 28.193732] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 28.200965] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 28.208201] R10: 0000000020165fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 28.215435] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 28.222691] [ 28.224284] Allocated by task 2986: [ 28.227876] save_stack+0x43/0xd0 [ 28.231292] kasan_kmalloc+0xad/0xe0 [ 28.234968] kmem_cache_alloc_trace+0x136/0x750 [ 28.239602] tipc_group_create+0x116/0x9c0 [ 28.243798] tipc_setsockopt+0x25e/0xc00 [ 28.247822] SyS_setsockopt+0x189/0x360 [ 28.251760] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 28.256476] [ 28.258067] Freed by task 2986: [ 28.261309] save_stack+0x43/0xd0 [ 28.264726] kasan_slab_free+0x71/0xc0 [ 28.268582] kfree+0xca/0x250 [ 28.271653] tipc_group_delete+0x2c0/0x3c0 [ 28.275852] tipc_setsockopt+0xb33/0xc00 [ 28.279874] SyS_setsockopt+0x189/0x360 [ 28.283811] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 28.288530] [ 28.290123] The buggy address belongs to the object at ffff8801d42c0000 [ 28.290123] which belongs to the cache kmalloc-192 of size 192 [ 28.302742] The buggy address is located 108 bytes inside of [ 28.302742] 192-byte region [ffff8801d42c0000, ffff8801d42c00c0) [ 28.314579] The buggy address belongs to the page: [ 28.319475] page:ffffea000750b000 count:1 mapcount:0 mapping:ffff8801d42c0000 index:0xffff8801d42c0f00 [ 28.328886] flags: 0x200000000000100(slab) [ 28.333087] raw: 0200000000000100 ffff8801d42c0000 ffff8801d42c0f00 0000000100000007 [ 28.340935] raw: ffffea00075554e0 ffffea000759bea0 ffff8801dac00040 0000000000000000 [ 28.348779] page dumped because: kasan: bad access detected [ 28.354451] [ 28.356046] Memory state around the buggy address: [ 28.360940] ffff8801d42bff00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 28.368262] ffff8801d42bff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.375584] >ffff8801d42c0000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.382906] ^ [ 28.389621] ffff8801d42c0080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 28.396944] ffff8801d42c0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.404263] ================================================================== [ 28.411586] Disabling lock debugging due to kernel taint [ 28.417164] Kernel panic - not syncing: panic_on_warn set ... [ 28.417164] [ 28.424507] CPU: 1 PID: 2986 Comm: syzkaller192434 Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 28.434346] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.443663] Call Trace: [ 28.446219] dump_stack+0x194/0x257 [ 28.449811] ? arch_local_irq_restore+0x53/0x53 [ 28.454445] ? kasan_end_report+0x32/0x50 [ 28.458560] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.463282] ? vsnprintf+0x1ed/0x1900 [ 28.467047] ? tipc_group_self+0xb0/0x1b0 [ 28.471159] panic+0x1e4/0x41c [ 28.474318] ? refcount_error_report+0x214/0x214 [ 28.479039] ? add_taint+0x1c/0x50 [ 28.482544] ? add_taint+0x1c/0x50 [ 28.486048] ? tipc_group_self+0x1a2/0x1b0 [ 28.490245] kasan_end_report+0x50/0x50 [ 28.494183] kasan_report+0x144/0x340 [ 28.497951] __asan_report_load4_noabort+0x14/0x20 [ 28.502844] tipc_group_self+0x1a2/0x1b0 [ 28.506871] tipc_sk_leave+0xfc/0x200 [ 28.510637] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 28.514924] ? __local_bh_enable_ip+0x9d/0x160 [ 28.519474] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.524454] ? lock_sock_nested+0x91/0x110 [ 28.528651] ? trace_hardirqs_on+0xd/0x10 [ 28.532761] ? __local_bh_enable_ip+0x9d/0x160 [ 28.537313] tipc_release+0x154/0xfe0 [ 28.541080] ? mntput_no_expire+0x130/0xa90 [ 28.545367] ? tipc_sk_backlog_rcv+0x370/0x370 [ 28.549913] ? lock_release+0xa40/0xa40 [ 28.553854] ? dentry_free+0xcd/0x130 [ 28.557625] ? rcu_read_lock_sched_held+0x108/0x120 [ 28.562613] ? kmem_cache_free+0x249/0x280 [ 28.566816] ? dentry_free+0xd2/0x130 [ 28.570583] ? locks_remove_file+0x3fa/0x5a0 [ 28.574956] ? fcntl_setlk+0x10c0/0x10c0 [ 28.578982] ? __fsnotify_parent+0xb4/0x3a0 [ 28.583270] ? fsnotify+0x1af0/0x1af0 [ 28.587037] ? rcu_note_context_switch+0x710/0x710 [ 28.591934] sock_release+0x8d/0x1e0 [ 28.595612] ? sock_release+0x1e0/0x1e0 [ 28.599551] sock_close+0x16/0x20 [ 28.602968] __fput+0x327/0x7e0 [ 28.606214] ? fput+0x140/0x140 [ 28.609464] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 28.615313] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.619777] ____fput+0x15/0x20 [ 28.623024] task_work_run+0x199/0x270 [ 28.626879] ? task_work_cancel+0x210/0x210 [ 28.631165] ? _raw_spin_unlock+0x22/0x30 [ 28.635284] ? switch_task_namespaces+0x87/0xc0 [ 28.639920] do_exit+0x9b5/0x1ad0 [ 28.643341] ? mm_update_next_owner+0x930/0x930 [ 28.647977] ? reacquire_held_locks+0x1fd/0x3d0 [ 28.652613] ? find_held_lock+0x35/0x1d0 [ 28.656642] ? release_sock+0x1d4/0x2a0 [ 28.660579] ? lock_downgrade+0x990/0x990 [ 28.664688] ? lock_downgrade+0x990/0x990 [ 28.668805] ? do_raw_spin_trylock+0x190/0x190 [ 28.673358] ? tipc_group_delete+0x2c0/0x3c0 [ 28.677732] ? __local_bh_enable_ip+0x9d/0x160 [ 28.682277] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.687258] ? trace_hardirqs_on+0xd/0x10 [ 28.691369] ? __local_bh_enable_ip+0x9d/0x160 [ 28.695917] ? release_sock+0x1d4/0x2a0 [ 28.699872] ? tipc_nametbl_build_group+0x27a/0x370 [ 28.704856] ? tipc_setsockopt+0x703/0xc00 [ 28.709065] ? tipc_sk_leave+0x200/0x200 [ 28.713097] ? security_socket_setsockopt+0x89/0xb0 [ 28.718079] ? SyS_setsockopt+0x215/0x360 [ 28.722201] do_group_exit+0x149/0x400 [ 28.726050] ? SyS_recv+0x40/0x40 [ 28.729486] ? SyS_exit+0x30/0x30 [ 28.732909] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.737892] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.742616] SyS_exit_group+0x1d/0x20 [ 28.746382] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 28.751100] RIP: 0033:0x43e978 [ 28.754254] RSP: 002b:00007ffd7f824638 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 28.761926] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 28.769163] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 28.776398] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 28.783632] R10: 0000000020165fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 28.790866] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 28.798141] Dumping ftrace buffer: [ 28.801646] (ftrace buffer empty) [ 28.805323] Kernel Offset: disabled [ 28.808917] Rebooting in 86400 seconds..