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-6,10.128.15.234' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 49.899667] ================================================================== [ 49.900786] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 49.901695] Read of size 4 at addr ffff8801d66c876c by task syzkaller142760/2992 [ 49.902681] [ 49.902914] CPU: 1 PID: 2992 Comm: syzkaller142760 Not tainted 4.14.0-rc5-next-20171018+ #36 [ 49.904057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.905310] Call Trace: [ 49.905674] dump_stack+0x194/0x257 [ 49.906167] ? arch_local_irq_restore+0x53/0x53 [ 49.906792] ? show_regs_print_info+0x65/0x65 [ 49.907400] ? tipc_group_self+0x1a2/0x1b0 [ 49.907969] print_address_description+0x73/0x250 [ 49.908632] ? tipc_group_self+0x1a2/0x1b0 [ 49.909201] kasan_report+0x25b/0x340 [ 49.909733] __asan_report_load4_noabort+0x14/0x20 [ 49.910388] tipc_group_self+0x1a2/0x1b0 [ 49.910946] tipc_sk_leave+0xfc/0x200 [ 49.911470] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 49.912217] ? __local_bh_enable_ip+0x9d/0x160 [ 49.912937] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.913603] ? lock_sock_nested+0x91/0x110 [ 49.914167] ? trace_hardirqs_on+0xd/0x10 [ 49.914720] ? __local_bh_enable_ip+0x9d/0x160 [ 49.915338] tipc_release+0x154/0xfe0 [ 49.915872] ? mntput_no_expire+0x130/0xa90 [ 49.916451] ? tipc_sk_backlog_rcv+0x370/0x370 [ 49.917061] ? lock_release+0xa40/0xa40 [ 49.917594] ? dentry_free+0xcd/0x130 [ 49.918105] ? rcu_read_lock_sched_held+0x108/0x120 [ 49.918770] ? kmem_cache_free+0x249/0x280 [ 49.919336] ? dentry_free+0xd2/0x130 [ 49.920182] ? locks_remove_file+0x3fa/0x5a0 [ 49.924560] ? fcntl_setlk+0x10c0/0x10c0 [ 49.928595] ? __fsnotify_parent+0xb4/0x3a0 [ 49.932898] ? fsnotify+0x1af0/0x1af0 [ 49.936668] ? rcu_note_context_switch+0x710/0x710 [ 49.941568] sock_release+0x8d/0x1e0 [ 49.945252] ? sock_release+0x1e0/0x1e0 [ 49.949194] sock_close+0x16/0x20 [ 49.952618] __fput+0x327/0x7e0 [ 49.955870] ? fput+0x140/0x140 [ 49.959120] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 49.964970] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.969440] ____fput+0x15/0x20 [ 49.972705] task_work_run+0x199/0x270 [ 49.976562] ? task_work_cancel+0x210/0x210 [ 49.980850] ? _raw_spin_unlock+0x22/0x30 [ 49.984964] ? switch_task_namespaces+0x87/0xc0 [ 49.989608] do_exit+0x9b5/0x1ad0 [ 49.993034] ? mm_update_next_owner+0x930/0x930 [ 49.997666] ? reacquire_held_locks+0x1fd/0x3d0 [ 50.002305] ? find_held_lock+0x35/0x1d0 [ 50.006340] ? release_sock+0x1d4/0x2a0 [ 50.010281] ? lock_downgrade+0x990/0x990 [ 50.014395] ? lock_downgrade+0x990/0x990 [ 50.018511] ? do_raw_spin_trylock+0x190/0x190 [ 50.023061] ? tipc_group_delete+0x2c0/0x3c0 [ 50.027436] ? __local_bh_enable_ip+0x9d/0x160 [ 50.031988] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 50.036972] ? trace_hardirqs_on+0xd/0x10 [ 50.041086] ? __local_bh_enable_ip+0x9d/0x160 [ 50.045648] ? release_sock+0x1d4/0x2a0 [ 50.049595] ? tipc_nametbl_build_group+0x27a/0x370 [ 50.054583] ? tipc_setsockopt+0x703/0xc00 [ 50.058789] ? tipc_sk_leave+0x200/0x200 [ 50.062838] ? security_socket_setsockopt+0x89/0xb0 [ 50.067824] ? SyS_setsockopt+0x215/0x360 [ 50.071943] do_group_exit+0x149/0x400 [ 50.075794] ? SyS_recv+0x40/0x40 [ 50.079214] ? SyS_exit+0x30/0x30 [ 50.082641] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 50.087624] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 50.092348] SyS_exit_group+0x1d/0x20 [ 50.096116] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 50.100835] RIP: 0033:0x43e978 [ 50.103990] RSP: 002b:00007ffd5b83a478 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 50.111662] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 50.118897] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 50.126132] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 50.133369] R10: 0000000020001fe4 R11: 0000000000000246 R12: 00000000004016a0 [ 50.140606] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 50.147856] [ 50.149452] Allocated by task 2992: [ 50.153046] save_stack+0x43/0xd0 [ 50.156463] kasan_kmalloc+0xad/0xe0 [ 50.160142] kmem_cache_alloc_trace+0x136/0x750 [ 50.164774] tipc_group_create+0x116/0x9c0 [ 50.168972] tipc_setsockopt+0x25e/0xc00 [ 50.172999] SyS_setsockopt+0x189/0x360 [ 50.176937] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 50.181654] [ 50.183251] Freed by task 2992: [ 50.186498] save_stack+0x43/0xd0 [ 50.189916] kasan_slab_free+0x71/0xc0 [ 50.193768] kfree+0xca/0x250 [ 50.196839] tipc_group_delete+0x2c0/0x3c0 [ 50.201039] tipc_setsockopt+0xb33/0xc00 [ 50.205065] SyS_setsockopt+0x189/0x360 [ 50.209003] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 50.213720] [ 50.215316] The buggy address belongs to the object at ffff8801d66c8700 [ 50.215316] which belongs to the cache kmalloc-192 of size 192 [ 50.227939] The buggy address is located 108 bytes inside of [ 50.227939] 192-byte region [ffff8801d66c8700, ffff8801d66c87c0) [ 50.239775] The buggy address belongs to the page: [ 50.244668] page:ffffea000759b200 count:1 mapcount:0 mapping:ffff8801d66c8000 index:0xffff8801d66c8f00 [ 50.254076] flags: 0x200000000000100(slab) [ 50.258277] raw: 0200000000000100 ffff8801d66c8000 ffff8801d66c8f00 0000000100000008 [ 50.266125] raw: ffffea000759b720 ffff8801dac01138 ffff8801dac00040 0000000000000000 [ 50.273968] page dumped because: kasan: bad access detected [ 50.279640] [ 50.281232] Memory state around the buggy address: [ 50.286126] ffff8801d66c8600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.293447] ffff8801d66c8680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 50.300769] >ffff8801d66c8700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.308092] ^ [ 50.314806] ffff8801d66c8780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 50.322129] ffff8801d66c8800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.329448] ================================================================== [ 50.336769] Disabling lock debugging due to kernel taint [ 50.342244] Kernel panic - not syncing: panic_on_warn set ... [ 50.342244] [ 50.349571] CPU: 1 PID: 2992 Comm: syzkaller142760 Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 50.359409] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.368725] Call Trace: [ 50.371282] dump_stack+0x194/0x257 [ 50.374877] ? arch_local_irq_restore+0x53/0x53 [ 50.379508] ? kasan_end_report+0x32/0x50 [ 50.383623] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 50.388342] ? vsnprintf+0x1ed/0x1900 [ 50.392109] ? tipc_group_self+0xb0/0x1b0 [ 50.396221] panic+0x1e4/0x41c [ 50.399379] ? refcount_error_report+0x214/0x214 [ 50.404103] ? add_taint+0x1c/0x50 [ 50.407608] ? add_taint+0x1c/0x50 [ 50.411114] ? tipc_group_self+0x1a2/0x1b0 [ 50.415312] kasan_end_report+0x50/0x50 [ 50.419249] kasan_report+0x144/0x340 [ 50.423014] __asan_report_load4_noabort+0x14/0x20 [ 50.427905] tipc_group_self+0x1a2/0x1b0 [ 50.431930] tipc_sk_leave+0xfc/0x200 [ 50.435697] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 50.439981] ? __local_bh_enable_ip+0x9d/0x160 [ 50.444526] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 50.449513] ? lock_sock_nested+0x91/0x110 [ 50.453712] ? trace_hardirqs_on+0xd/0x10 [ 50.457824] ? __local_bh_enable_ip+0x9d/0x160 [ 50.462374] tipc_release+0x154/0xfe0 [ 50.466142] ? mntput_no_expire+0x130/0xa90 [ 50.470427] ? tipc_sk_backlog_rcv+0x370/0x370 [ 50.474971] ? lock_release+0xa40/0xa40 [ 50.478911] ? dentry_free+0xcd/0x130 [ 50.482674] ? rcu_read_lock_sched_held+0x108/0x120 [ 50.487651] ? kmem_cache_free+0x249/0x280 [ 50.492078] ? dentry_free+0xd2/0x130 [ 50.495853] ? locks_remove_file+0x3fa/0x5a0 [ 50.500229] ? fcntl_setlk+0x10c0/0x10c0 [ 50.504257] ? __fsnotify_parent+0xb4/0x3a0 [ 50.508542] ? fsnotify+0x1af0/0x1af0 [ 50.512306] ? rcu_note_context_switch+0x710/0x710 [ 50.517202] sock_release+0x8d/0x1e0 [ 50.520880] ? sock_release+0x1e0/0x1e0 [ 50.524816] sock_close+0x16/0x20 [ 50.528235] __fput+0x327/0x7e0 [ 50.531481] ? fput+0x140/0x140 [ 50.534728] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 50.540583] ? _raw_spin_unlock_irq+0x27/0x70 [ 50.545048] ____fput+0x15/0x20 [ 50.548294] task_work_run+0x199/0x270 [ 50.552148] ? task_work_cancel+0x210/0x210 [ 50.556436] ? _raw_spin_unlock+0x22/0x30 [ 50.560548] ? switch_task_namespaces+0x87/0xc0 [ 50.565184] do_exit+0x9b5/0x1ad0 [ 50.568603] ? mm_update_next_owner+0x930/0x930 [ 50.573236] ? reacquire_held_locks+0x1fd/0x3d0 [ 50.577874] ? find_held_lock+0x35/0x1d0 [ 50.581909] ? release_sock+0x1d4/0x2a0 [ 50.585854] ? lock_downgrade+0x990/0x990 [ 50.589974] ? lock_downgrade+0x990/0x990 [ 50.594089] ? do_raw_spin_trylock+0x190/0x190 [ 50.598637] ? tipc_group_delete+0x2c0/0x3c0 [ 50.603009] ? __local_bh_enable_ip+0x9d/0x160 [ 50.607555] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 50.612535] ? trace_hardirqs_on+0xd/0x10 [ 50.616645] ? __local_bh_enable_ip+0x9d/0x160 [ 50.621196] ? release_sock+0x1d4/0x2a0 [ 50.625137] ? tipc_nametbl_build_group+0x27a/0x370 [ 50.630121] ? tipc_setsockopt+0x703/0xc00 [ 50.634321] ? tipc_sk_leave+0x200/0x200 [ 50.638355] ? security_socket_setsockopt+0x89/0xb0 [ 50.643336] ? SyS_setsockopt+0x215/0x360 [ 50.647458] do_group_exit+0x149/0x400 [ 50.651313] ? SyS_recv+0x40/0x40 [ 50.654741] ? SyS_exit+0x30/0x30 [ 50.658160] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 50.663141] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 50.667861] SyS_exit_group+0x1d/0x20 [ 50.671626] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 50.676344] RIP: 0033:0x43e978 [ 50.679497] RSP: 002b:00007ffd5b83a478 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 50.687172] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 50.694416] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 50.701658] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 50.708898] R10: 0000000020001fe4 R11: 0000000000000246 R12: 00000000004016a0 [ 50.716135] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 50.723419] Dumping ftrace buffer: [ 50.726928] (ftrace buffer empty) [ 50.730606] Kernel Offset: disabled [ 50.734198] Rebooting in 86400 seconds..