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-mmots-kasan-gce-9,10.128.15.218' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 46.302325] ================================================================== [ 46.303513] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 46.304381] Read of size 4 at addr ffff8801d4adad6c by task syzkaller163679/2990 [ 46.305382] [ 46.305615] CPU: 0 PID: 2990 Comm: syzkaller163679 Not tainted 4.14.0-rc5-mm1+ #20 [ 46.306624] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.307845] Call Trace: [ 46.308205] dump_stack+0x194/0x257 [ 46.308696] ? arch_local_irq_restore+0x53/0x53 [ 46.309321] ? show_regs_print_info+0x65/0x65 [ 46.309926] ? tipc_group_self+0x1a2/0x1b0 [ 46.310498] print_address_description+0x73/0x250 [ 46.311142] ? tipc_group_self+0x1a2/0x1b0 [ 46.311711] kasan_report+0x25b/0x340 [ 46.312230] __asan_report_load4_noabort+0x14/0x20 [ 46.312887] tipc_group_self+0x1a2/0x1b0 [ 46.313434] tipc_sk_leave+0xfc/0x200 [ 46.313965] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 46.314545] ? __local_bh_enable_ip+0x9d/0x160 [ 46.315159] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.315833] ? lock_sock_nested+0x91/0x110 [ 46.316400] ? trace_hardirqs_on+0xd/0x10 [ 46.316957] ? __local_bh_enable_ip+0x9d/0x160 [ 46.317578] tipc_release+0x154/0xfe0 [ 46.318098] ? kernel_text_address+0x102/0x140 [ 46.318709] ? tipc_sk_backlog_rcv+0x370/0x370 [ 46.319320] ? __kernel_text_address+0xd/0x40 [ 46.319923] ? unwind_get_return_address+0x61/0xa0 [ 46.320642] ? __save_stack_trace+0x7e/0xd0 [ 46.321226] ? check_noncircular+0x20/0x20 [ 46.321796] ? check_noncircular+0x20/0x20 [ 46.322373] ? locks_remove_file+0x3fa/0x5a0 [ 46.322970] ? fcntl_setlk+0x10c0/0x10c0 [ 46.327001] ? free_fs_struct+0x4f/0x60 [ 46.330949] ? __fsnotify_parent+0xb4/0x3a0 [ 46.335240] ? fsnotify+0x1af0/0x1af0 [ 46.339017] ? rcu_note_context_switch+0x710/0x710 [ 46.343918] sock_release+0x8d/0x1e0 [ 46.347601] ? sock_release+0x1e0/0x1e0 [ 46.351542] sock_close+0x16/0x20 [ 46.354971] __fput+0x327/0x7e0 [ 46.358228] ? fput+0x140/0x140 [ 46.361481] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.365954] ____fput+0x15/0x20 [ 46.369206] task_work_run+0x199/0x270 [ 46.373064] ? task_work_cancel+0x210/0x210 [ 46.377357] ? _raw_spin_unlock+0x22/0x30 [ 46.381477] ? switch_task_namespaces+0x87/0xc0 [ 46.386121] do_exit+0x9b5/0x1ad0 [ 46.389549] ? mm_update_next_owner+0x930/0x930 [ 46.394185] ? reacquire_held_locks+0x1fd/0x3d0 [ 46.398828] ? find_held_lock+0x35/0x1d0 [ 46.402865] ? release_sock+0x1d4/0x2a0 [ 46.406808] ? lock_downgrade+0x990/0x990 [ 46.410925] ? lock_downgrade+0x990/0x990 [ 46.415043] ? do_raw_spin_trylock+0x190/0x190 [ 46.419599] ? tipc_group_delete+0x2c0/0x3c0 [ 46.423976] ? __local_bh_enable_ip+0x9d/0x160 [ 46.428526] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.433513] ? trace_hardirqs_on+0xd/0x10 [ 46.437630] ? __local_bh_enable_ip+0x9d/0x160 [ 46.442182] ? release_sock+0x1d4/0x2a0 [ 46.446134] ? tipc_nametbl_build_group+0x27a/0x370 [ 46.451126] ? tipc_setsockopt+0x703/0xc00 [ 46.455329] ? tipc_sk_leave+0x200/0x200 [ 46.459369] ? security_socket_setsockopt+0x89/0xb0 [ 46.464357] ? SyS_setsockopt+0x215/0x360 [ 46.468477] do_group_exit+0x149/0x400 [ 46.472330] ? SyS_recv+0x40/0x40 [ 46.475750] ? SyS_exit+0x30/0x30 [ 46.479172] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.484159] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.488885] SyS_exit_group+0x1d/0x20 [ 46.492657] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.497383] RIP: 0033:0x43e978 [ 46.500539] RSP: 002b:00007ffcaf8f5b48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.508218] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 46.515456] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.522696] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 46.529934] R10: 0000000020000fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 46.537172] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 46.544427] [ 46.546025] Allocated by task 2990: [ 46.549625] save_stack+0x43/0xd0 [ 46.553047] kasan_kmalloc+0xad/0xe0 [ 46.556727] kmem_cache_alloc_trace+0x136/0x750 [ 46.561361] tipc_group_create+0x116/0x9c0 [ 46.565563] tipc_setsockopt+0x25e/0xc00 [ 46.569591] SyS_setsockopt+0x189/0x360 [ 46.573532] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.578250] [ 46.580326] Freed by task 2990: [ 46.583579] save_stack+0x43/0xd0 [ 46.587000] kasan_slab_free+0x71/0xc0 [ 46.590852] kfree+0xca/0x250 [ 46.593929] tipc_group_delete+0x2c0/0x3c0 [ 46.598129] tipc_setsockopt+0xb33/0xc00 [ 46.602159] SyS_setsockopt+0x189/0x360 [ 46.606105] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.610833] [ 46.612433] The buggy address belongs to the object at ffff8801d4adad00 [ 46.612433] which belongs to the cache kmalloc-192 of size 192 [ 46.625056] The buggy address is located 108 bytes inside of [ 46.625056] 192-byte region [ffff8801d4adad00, ffff8801d4adadc0) [ 46.636892] The buggy address belongs to the page: [ 46.641791] page:ffffea000752b680 count:1 mapcount:0 mapping:ffff8801d4ada000 index:0xffff8801d4adaf00 [ 46.651201] flags: 0x200000000000100(slab) [ 46.655403] raw: 0200000000000100 ffff8801d4ada000 ffff8801d4adaf00 000000010000000e [ 46.663252] raw: ffffea000752dd60 ffff8801dac01138 ffff8801dac00040 0000000000000000 [ 46.671096] page dumped because: kasan: bad access detected [ 46.676770] [ 46.678364] Memory state around the buggy address: [ 46.683261] ffff8801d4adac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.690587] ffff8801d4adac80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.697912] >ffff8801d4adad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.705237] ^ [ 46.711954] ffff8801d4adad80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.719280] ffff8801d4adae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.726603] ================================================================== [ 46.733926] Disabling lock debugging due to kernel taint [ 46.739414] Kernel panic - not syncing: panic_on_warn set ... [ 46.739414] [ 46.746749] CPU: 0 PID: 2990 Comm: syzkaller163679 Tainted: G B 4.14.0-rc5-mm1+ #20 [ 46.755722] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.765043] Call Trace: [ 46.767604] dump_stack+0x194/0x257 [ 46.771199] ? arch_local_irq_restore+0x53/0x53 [ 46.775834] ? kasan_end_report+0x32/0x50 [ 46.779948] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.784668] ? vsnprintf+0x1ed/0x1900 [ 46.788434] ? tipc_group_self+0xb0/0x1b0 [ 46.792558] panic+0x1e4/0x41c [ 46.795716] ? refcount_error_report+0x214/0x214 [ 46.800437] ? add_taint+0x1c/0x50 [ 46.803943] ? add_taint+0x1c/0x50 [ 46.807449] ? tipc_group_self+0x1a2/0x1b0 [ 46.811646] kasan_end_report+0x50/0x50 [ 46.815585] kasan_report+0x144/0x340 [ 46.819351] __asan_report_load4_noabort+0x14/0x20 [ 46.824243] tipc_group_self+0x1a2/0x1b0 [ 46.828270] tipc_sk_leave+0xfc/0x200 [ 46.832035] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 46.836323] ? __local_bh_enable_ip+0x9d/0x160 [ 46.840871] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.845853] ? lock_sock_nested+0x91/0x110 [ 46.850053] ? trace_hardirqs_on+0xd/0x10 [ 46.854164] ? __local_bh_enable_ip+0x9d/0x160 [ 46.858712] tipc_release+0x154/0xfe0 [ 46.862481] ? kernel_text_address+0x102/0x140 [ 46.867029] ? tipc_sk_backlog_rcv+0x370/0x370 [ 46.871576] ? __kernel_text_address+0xd/0x40 [ 46.876039] ? unwind_get_return_address+0x61/0xa0 [ 46.880936] ? __save_stack_trace+0x7e/0xd0 [ 46.885223] ? check_noncircular+0x20/0x20 [ 46.889423] ? check_noncircular+0x20/0x20 [ 46.893627] ? locks_remove_file+0x3fa/0x5a0 [ 46.898001] ? fcntl_setlk+0x10c0/0x10c0 [ 46.902029] ? free_fs_struct+0x4f/0x60 [ 46.905969] ? __fsnotify_parent+0xb4/0x3a0 [ 46.910256] ? fsnotify+0x1af0/0x1af0 [ 46.914023] ? rcu_note_context_switch+0x710/0x710 [ 46.918918] sock_release+0x8d/0x1e0 [ 46.922599] ? sock_release+0x1e0/0x1e0 [ 46.926537] sock_close+0x16/0x20 [ 46.929957] __fput+0x327/0x7e0 [ 46.933205] ? fput+0x140/0x140 [ 46.936453] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.940916] ____fput+0x15/0x20 [ 46.944159] task_work_run+0x199/0x270 [ 46.948012] ? task_work_cancel+0x210/0x210 [ 46.952298] ? _raw_spin_unlock+0x22/0x30 [ 46.956411] ? switch_task_namespaces+0x87/0xc0 [ 46.961049] do_exit+0x9b5/0x1ad0 [ 46.964469] ? mm_update_next_owner+0x930/0x930 [ 46.969100] ? reacquire_held_locks+0x1fd/0x3d0 [ 46.973734] ? find_held_lock+0x35/0x1d0 [ 46.977763] ? release_sock+0x1d4/0x2a0 [ 46.981705] ? lock_downgrade+0x990/0x990 [ 46.985816] ? lock_downgrade+0x990/0x990 [ 46.989931] ? do_raw_spin_trylock+0x190/0x190 [ 46.994482] ? tipc_group_delete+0x2c0/0x3c0 [ 46.998857] ? __local_bh_enable_ip+0x9d/0x160 [ 47.003403] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.008385] ? trace_hardirqs_on+0xd/0x10 [ 47.012497] ? __local_bh_enable_ip+0x9d/0x160 [ 47.017045] ? release_sock+0x1d4/0x2a0 [ 47.020988] ? tipc_nametbl_build_group+0x27a/0x370 [ 47.025972] ? tipc_setsockopt+0x703/0xc00 [ 47.030172] ? tipc_sk_leave+0x200/0x200 [ 47.034206] ? security_socket_setsockopt+0x89/0xb0 [ 47.039186] ? SyS_setsockopt+0x215/0x360 [ 47.043302] do_group_exit+0x149/0x400 [ 47.047154] ? SyS_recv+0x40/0x40 [ 47.050574] ? SyS_exit+0x30/0x30 [ 47.053993] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.058975] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.063697] SyS_exit_group+0x1d/0x20 [ 47.067465] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 47.072185] RIP: 0033:0x43e978 [ 47.075343] RSP: 002b:00007ffcaf8f5b48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 47.083225] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 47.090463] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 47.097700] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 47.104934] R10: 0000000020000fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 47.112169] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 47.119773] Dumping ftrace buffer: [ 47.123283] (ftrace buffer empty) [ 47.126960] Kernel Offset: disabled [ 47.130555] Rebooting in 86400 seconds..