[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. [ 9.576277] sshd (2910) used greatest stack depth: 14512 bytes left [....] 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.0.7' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 29.561199] ================================================================== [ 29.562360] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 29.563254] Read of size 4 at addr ffff8801d42b276c by task syzkaller795372/2996 [ 29.564302] [ 29.564537] CPU: 1 PID: 2996 Comm: syzkaller795372 Not tainted 4.14.0-rc5-next-20171018+ #36 [ 29.565769] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.566989] Call Trace: [ 29.567351] dump_stack+0x194/0x257 [ 29.567844] ? arch_local_irq_restore+0x53/0x53 [ 29.568468] ? show_regs_print_info+0x65/0x65 [ 29.569105] ? tipc_group_self+0x1a2/0x1b0 [ 29.569709] print_address_description+0x73/0x250 [ 29.570355] ? tipc_group_self+0x1a2/0x1b0 [ 29.570945] kasan_report+0x25b/0x340 [ 29.571478] __asan_report_load4_noabort+0x14/0x20 [ 29.572136] tipc_group_self+0x1a2/0x1b0 [ 29.572685] tipc_sk_leave+0xfc/0x200 [ 29.573211] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 29.573794] ? __local_bh_enable_ip+0x9d/0x160 [ 29.574431] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.575262] ? lock_sock_nested+0x91/0x110 [ 29.575891] ? trace_hardirqs_on+0xd/0x10 [ 29.576446] ? __local_bh_enable_ip+0x9d/0x160 [ 29.577063] tipc_release+0x154/0xfe0 [ 29.577598] ? mntput_no_expire+0x130/0xa90 [ 29.578191] ? tipc_sk_backlog_rcv+0x370/0x370 [ 29.578804] ? lock_release+0xa40/0xa40 [ 29.579340] ? dentry_free+0xcd/0x130 [ 29.579864] ? rcu_read_lock_sched_held+0x108/0x120 [ 29.580548] ? kmem_cache_free+0x249/0x280 [ 29.581118] ? dentry_free+0xd2/0x130 [ 29.583475] ? locks_remove_file+0x3fa/0x5a0 [ 29.587857] ? fcntl_setlk+0x10c0/0x10c0 [ 29.591890] ? __fsnotify_parent+0xb4/0x3a0 [ 29.596181] ? fsnotify+0x1af0/0x1af0 [ 29.599950] ? rcu_note_context_switch+0x710/0x710 [ 29.604853] sock_release+0x8d/0x1e0 [ 29.608537] ? sock_release+0x1e0/0x1e0 [ 29.612479] sock_close+0x16/0x20 [ 29.615902] __fput+0x327/0x7e0 [ 29.619157] ? fput+0x140/0x140 [ 29.622416] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.628268] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.632736] ____fput+0x15/0x20 [ 29.635986] task_work_run+0x199/0x270 [ 29.639846] ? task_work_cancel+0x210/0x210 [ 29.644136] ? _raw_spin_unlock+0x22/0x30 [ 29.648255] ? switch_task_namespaces+0x87/0xc0 [ 29.652897] do_exit+0x9b5/0x1ad0 [ 29.656323] ? mm_update_next_owner+0x930/0x930 [ 29.660961] ? reacquire_held_locks+0x1fd/0x3d0 [ 29.665606] ? find_held_lock+0x35/0x1d0 [ 29.669644] ? release_sock+0x1d4/0x2a0 [ 29.673588] ? lock_downgrade+0x990/0x990 [ 29.677706] ? lock_downgrade+0x990/0x990 [ 29.681824] ? do_raw_spin_trylock+0x190/0x190 [ 29.686378] ? tipc_group_delete+0x2c0/0x3c0 [ 29.690756] ? __local_bh_enable_ip+0x9d/0x160 [ 29.695308] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.700295] ? trace_hardirqs_on+0xd/0x10 [ 29.704411] ? __local_bh_enable_ip+0x9d/0x160 [ 29.708966] ? release_sock+0x1d4/0x2a0 [ 29.712918] ? tipc_nametbl_build_group+0x27a/0x370 [ 29.717911] ? tipc_setsockopt+0x703/0xc00 [ 29.722115] ? tipc_sk_leave+0x200/0x200 [ 29.726156] ? security_socket_setsockopt+0x89/0xb0 [ 29.731144] ? SyS_setsockopt+0x215/0x360 [ 29.735263] do_group_exit+0x149/0x400 [ 29.739115] ? SyS_recv+0x40/0x40 [ 29.742537] ? SyS_exit+0x30/0x30 [ 29.745959] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.750949] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.755677] SyS_exit_group+0x1d/0x20 [ 29.759452] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.764179] RIP: 0033:0x43e978 [ 29.767339] RSP: 002b:00007fffabb3d5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.775016] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 29.782252] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.789493] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.796730] R10: 0000000020b27000 R11: 0000000000000246 R12: 00000000004016a0 [ 29.803968] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 29.811227] [ 29.812827] Allocated by task 2996: [ 29.816424] save_stack+0x43/0xd0 [ 29.819845] kasan_kmalloc+0xad/0xe0 [ 29.823526] kmem_cache_alloc_trace+0x136/0x750 [ 29.828160] tipc_group_create+0x116/0x9c0 [ 29.832359] tipc_setsockopt+0x25e/0xc00 [ 29.836387] SyS_setsockopt+0x189/0x360 [ 29.840328] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.845046] [ 29.846642] Freed by task 2996: [ 29.849890] save_stack+0x43/0xd0 [ 29.853311] kasan_slab_free+0x71/0xc0 [ 29.857164] kfree+0xca/0x250 [ 29.860235] tipc_group_delete+0x2c0/0x3c0 [ 29.864437] tipc_setsockopt+0xb33/0xc00 [ 29.868466] SyS_setsockopt+0x189/0x360 [ 29.872407] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.877127] [ 29.878724] The buggy address belongs to the object at ffff8801d42b2700 [ 29.878724] which belongs to the cache kmalloc-192 of size 192 [ 29.891346] The buggy address is located 108 bytes inside of [ 29.891346] 192-byte region [ffff8801d42b2700, ffff8801d42b27c0) [ 29.903185] The buggy address belongs to the page: [ 29.908080] page:ffffea000750ac80 count:1 mapcount:0 mapping:ffff8801d42b2000 index:0xffff8801d42b2900 [ 29.917492] flags: 0x200000000000100(slab) [ 29.921698] raw: 0200000000000100 ffff8801d42b2000 ffff8801d42b2900 000000010000000a [ 29.929547] raw: ffffea0007551aa0 ffffea000750a9e0 ffff8801dac00040 0000000000000000 [ 29.937394] page dumped because: kasan: bad access detected [ 29.943073] [ 29.944667] Memory state around the buggy address: [ 29.949574] ffff8801d42b2600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.956900] ffff8801d42b2680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.964227] >ffff8801d42b2700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.971551] ^ [ 29.978283] ffff8801d42b2780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.985607] ffff8801d42b2800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.992930] ================================================================== [ 30.000252] Disabling lock debugging due to kernel taint [ 30.005743] Kernel panic - not syncing: panic_on_warn set ... [ 30.005743] [ 30.013078] CPU: 1 PID: 2996 Comm: syzkaller795372 Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 30.022918] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.032236] Call Trace: [ 30.034794] dump_stack+0x194/0x257 [ 30.038388] ? arch_local_irq_restore+0x53/0x53 [ 30.043023] ? kasan_end_report+0x32/0x50 [ 30.047141] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.051861] ? vsnprintf+0x1ed/0x1900 [ 30.055629] ? tipc_group_self+0xb0/0x1b0 [ 30.059745] panic+0x1e4/0x41c [ 30.062902] ? refcount_error_report+0x214/0x214 [ 30.067626] ? add_taint+0x1c/0x50 [ 30.071131] ? add_taint+0x1c/0x50 [ 30.074638] ? tipc_group_self+0x1a2/0x1b0 [ 30.078838] kasan_end_report+0x50/0x50 [ 30.082778] kasan_report+0x144/0x340 [ 30.086548] __asan_report_load4_noabort+0x14/0x20 [ 30.091442] tipc_group_self+0x1a2/0x1b0 [ 30.095471] tipc_sk_leave+0xfc/0x200 [ 30.099236] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 30.103525] ? __local_bh_enable_ip+0x9d/0x160 [ 30.108073] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.113059] ? lock_sock_nested+0x91/0x110 [ 30.117258] ? trace_hardirqs_on+0xd/0x10 [ 30.121372] ? __local_bh_enable_ip+0x9d/0x160 [ 30.125923] tipc_release+0x154/0xfe0 [ 30.129694] ? mntput_no_expire+0x130/0xa90 [ 30.134012] ? tipc_sk_backlog_rcv+0x370/0x370 [ 30.138561] ? lock_release+0xa40/0xa40 [ 30.142499] ? dentry_free+0xcd/0x130 [ 30.146266] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.151246] ? kmem_cache_free+0x249/0x280 [ 30.155447] ? dentry_free+0xd2/0x130 [ 30.159216] ? locks_remove_file+0x3fa/0x5a0 [ 30.163592] ? fcntl_setlk+0x10c0/0x10c0 [ 30.167622] ? __fsnotify_parent+0xb4/0x3a0 [ 30.171910] ? fsnotify+0x1af0/0x1af0 [ 30.175676] ? rcu_note_context_switch+0x710/0x710 [ 30.180576] sock_release+0x8d/0x1e0 [ 30.184256] ? sock_release+0x1e0/0x1e0 [ 30.188198] sock_close+0x16/0x20 [ 30.191623] __fput+0x327/0x7e0 [ 30.194875] ? fput+0x140/0x140 [ 30.198125] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.203974] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.208436] ____fput+0x15/0x20 [ 30.211681] task_work_run+0x199/0x270 [ 30.215537] ? task_work_cancel+0x210/0x210 [ 30.219825] ? _raw_spin_unlock+0x22/0x30 [ 30.223939] ? switch_task_namespaces+0x87/0xc0 [ 30.228578] do_exit+0x9b5/0x1ad0 [ 30.232001] ? mm_update_next_owner+0x930/0x930 [ 30.236634] ? reacquire_held_locks+0x1fd/0x3d0 [ 30.241270] ? find_held_lock+0x35/0x1d0 [ 30.245302] ? release_sock+0x1d4/0x2a0 [ 30.249242] ? lock_downgrade+0x990/0x990 [ 30.253353] ? lock_downgrade+0x990/0x990 [ 30.257466] ? do_raw_spin_trylock+0x190/0x190 [ 30.262016] ? tipc_group_delete+0x2c0/0x3c0 [ 30.266391] ? __local_bh_enable_ip+0x9d/0x160 [ 30.270938] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.275919] ? trace_hardirqs_on+0xd/0x10 [ 30.280033] ? __local_bh_enable_ip+0x9d/0x160 [ 30.284583] ? release_sock+0x1d4/0x2a0 [ 30.288527] ? tipc_nametbl_build_group+0x27a/0x370 [ 30.293511] ? tipc_setsockopt+0x703/0xc00 [ 30.297712] ? tipc_sk_leave+0x200/0x200 [ 30.301747] ? security_socket_setsockopt+0x89/0xb0 [ 30.306731] ? SyS_setsockopt+0x215/0x360 [ 30.310844] do_group_exit+0x149/0x400 [ 30.314695] ? SyS_recv+0x40/0x40 [ 30.318115] ? SyS_exit+0x30/0x30 [ 30.321536] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.326520] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.331241] SyS_exit_group+0x1d/0x20 [ 30.335010] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.339733] RIP: 0033:0x43e978 [ 30.342890] RSP: 002b:00007fffabb3d5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 30.350571] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 30.357807] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 30.365043] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 30.372278] R10: 0000000020b27000 R11: 0000000000000246 R12: 00000000004016a0 [ 30.379515] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 30.387128] Dumping ftrace buffer: [ 30.390635] (ftrace buffer empty) [ 30.394312] Kernel Offset: disabled [ 30.397909] Rebooting in 86400 seconds..