[info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[ 9.021201] rsyslogd (2859) used greatest stack depth: 14592 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-mmots-kasan-gce-5,10.128.15.225' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 42.696022] ================================================================== [ 42.697120] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 42.698000] Read of size 4 at addr ffff8801d8bef06c by task syzkaller070452/2987 [ 42.698995] [ 42.699228] CPU: 1 PID: 2987 Comm: syzkaller070452 Not tainted 4.14.0-rc5-mm1+ #19 [ 42.700274] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.701536] Call Trace: [ 42.701892] dump_stack+0x194/0x257 [ 42.702431] ? arch_local_irq_restore+0x53/0x53 [ 42.703065] ? show_regs_print_info+0x65/0x65 [ 42.703787] ? tipc_group_self+0x1a2/0x1b0 [ 42.704372] print_address_description+0x73/0x250 [ 42.705056] ? tipc_group_self+0x1a2/0x1b0 [ 42.705641] kasan_report+0x25b/0x340 [ 42.706154] __asan_report_load4_noabort+0x14/0x20 [ 42.706810] tipc_group_self+0x1a2/0x1b0 [ 42.707373] tipc_sk_leave+0xfc/0x200 [ 42.707888] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 42.708465] ? __local_bh_enable_ip+0x9d/0x160 [ 42.709076] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.709790] ? lock_sock_nested+0x91/0x110 [ 42.710373] ? trace_hardirqs_on+0xd/0x10 [ 42.710927] ? __local_bh_enable_ip+0x9d/0x160 [ 42.711554] tipc_release+0x154/0xfe0 [ 42.712070] ? mntput_no_expire+0x130/0xa90 [ 42.712651] ? tipc_sk_backlog_rcv+0x370/0x370 [ 42.713275] ? lock_release+0xa40/0xa40 [ 42.713807] ? dentry_free+0xcd/0x130 [ 42.714318] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.715011] ? kmem_cache_free+0x249/0x280 [ 42.715613] ? dentry_free+0xd2/0x130 [ 42.716128] ? locks_remove_file+0x3fa/0x5a0 [ 42.720507] ? fcntl_setlk+0x10c0/0x10c0 [ 42.724536] ? __fsnotify_parent+0xb4/0x3a0 [ 42.728824] ? fsnotify+0x1af0/0x1af0 [ 42.732592] ? rcu_note_context_switch+0x710/0x710 [ 42.737489] sock_release+0x8d/0x1e0 [ 42.741168] ? sock_release+0x1e0/0x1e0 [ 42.745107] sock_close+0x16/0x20 [ 42.748529] __fput+0x327/0x7e0 [ 42.751779] ? fput+0x140/0x140 [ 42.755028] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 42.760879] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.765347] ____fput+0x15/0x20 [ 42.768592] task_work_run+0x199/0x270 [ 42.772448] ? task_work_cancel+0x210/0x210 [ 42.776738] ? _raw_spin_unlock+0x22/0x30 [ 42.780869] ? switch_task_namespaces+0x87/0xc0 [ 42.785507] do_exit+0x9b5/0x1ad0 [ 42.788937] ? mm_update_next_owner+0x930/0x930 [ 42.793572] ? reacquire_held_locks+0x1fd/0x3d0 [ 42.798213] ? find_held_lock+0x35/0x1d0 [ 42.802340] ? release_sock+0x1d4/0x2a0 [ 42.806282] ? lock_downgrade+0x990/0x990 [ 42.810400] ? lock_downgrade+0x990/0x990 [ 42.814516] ? do_raw_spin_trylock+0x190/0x190 [ 42.819067] ? tipc_group_delete+0x2c0/0x3c0 [ 42.823450] ? __local_bh_enable_ip+0x9d/0x160 [ 42.828000] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.832984] ? trace_hardirqs_on+0xd/0x10 [ 42.837099] ? __local_bh_enable_ip+0x9d/0x160 [ 42.841651] ? release_sock+0x1d4/0x2a0 [ 42.845597] ? tipc_nametbl_build_group+0x27a/0x370 [ 42.850583] ? tipc_setsockopt+0x703/0xc00 [ 42.854787] ? tipc_sk_leave+0x200/0x200 [ 42.858824] ? security_socket_setsockopt+0x89/0xb0 [ 42.863809] ? SyS_setsockopt+0x215/0x360 [ 42.867924] do_group_exit+0x149/0x400 [ 42.871776] ? SyS_recv+0x40/0x40 [ 42.875197] ? SyS_exit+0x30/0x30 [ 42.878615] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.883598] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.888323] SyS_exit_group+0x1d/0x20 [ 42.892091] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.896812] RIP: 0033:0x43e978 [ 42.899968] RSP: 002b:00007fff8ecff898 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.907639] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 42.914876] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.922110] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.929345] R10: 0000000020b27000 R11: 0000000000000246 R12: 00000000004016a0 [ 42.936577] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 42.943830] [ 42.945423] Allocated by task 2987: [ 42.949018] save_stack+0x43/0xd0 [ 42.952434] kasan_kmalloc+0xad/0xe0 [ 42.956111] kmem_cache_alloc_trace+0x136/0x750 [ 42.960742] tipc_group_create+0x116/0x9c0 [ 42.964939] tipc_setsockopt+0x25e/0xc00 [ 42.968966] SyS_setsockopt+0x189/0x360 [ 42.972906] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.977622] [ 42.979215] Freed by task 2987: [ 42.982457] save_stack+0x43/0xd0 [ 42.985872] kasan_slab_free+0x71/0xc0 [ 42.989723] kfree+0xca/0x250 [ 42.992795] tipc_group_delete+0x2c0/0x3c0 [ 42.996993] tipc_setsockopt+0xb33/0xc00 [ 43.001031] SyS_setsockopt+0x189/0x360 [ 43.004971] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.009687] [ 43.011281] The buggy address belongs to the object at ffff8801d8bef000 [ 43.011281] which belongs to the cache kmalloc-192 of size 192 [ 43.023904] The buggy address is located 108 bytes inside of [ 43.023904] 192-byte region [ffff8801d8bef000, ffff8801d8bef0c0) [ 43.035742] The buggy address belongs to the page: [ 43.040641] page:ffffea000762fbc0 count:1 mapcount:0 mapping:ffff8801d8bef000 index:0x0 [ 43.048749] flags: 0x200000000000100(slab) [ 43.052951] raw: 0200000000000100 ffff8801d8bef000 0000000000000000 0000000100000010 [ 43.060798] raw: ffffea000751f260 ffffea00075b04a0 ffff8801dac00040 0000000000000000 [ 43.068639] page dumped because: kasan: bad access detected [ 43.074310] [ 43.075903] Memory state around the buggy address: [ 43.080797] ffff8801d8beef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.088123] ffff8801d8beef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.095447] >ffff8801d8bef000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.102773] ^ [ 43.109490] ffff8801d8bef080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.116813] ffff8801d8bef100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 43.124135] ================================================================== [ 43.131455] Disabling lock debugging due to kernel taint [ 43.136926] Kernel panic - not syncing: panic_on_warn set ... [ 43.136926] [ 43.144266] CPU: 1 PID: 2987 Comm: syzkaller070452 Tainted: G B 4.14.0-rc5-mm1+ #19 [ 43.153241] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.162561] Call Trace: [ 43.165118] dump_stack+0x194/0x257 [ 43.168716] ? arch_local_irq_restore+0x53/0x53 [ 43.173435] ? kasan_end_report+0x32/0x50 [ 43.177549] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.182274] ? vsnprintf+0x1ed/0x1900 [ 43.186039] ? tipc_group_self+0xb0/0x1b0 [ 43.190154] panic+0x1e4/0x41c [ 43.193311] ? refcount_error_report+0x214/0x214 [ 43.198032] ? add_taint+0x1c/0x50 [ 43.201536] ? add_taint+0x1c/0x50 [ 43.205041] ? tipc_group_self+0x1a2/0x1b0 [ 43.209240] kasan_end_report+0x50/0x50 [ 43.213179] kasan_report+0x144/0x340 [ 43.216946] __asan_report_load4_noabort+0x14/0x20 [ 43.221841] tipc_group_self+0x1a2/0x1b0 [ 43.225868] tipc_sk_leave+0xfc/0x200 [ 43.229633] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 43.233917] ? __local_bh_enable_ip+0x9d/0x160 [ 43.238469] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.243450] ? lock_sock_nested+0x91/0x110 [ 43.247647] ? trace_hardirqs_on+0xd/0x10 [ 43.251761] ? __local_bh_enable_ip+0x9d/0x160 [ 43.256309] tipc_release+0x154/0xfe0 [ 43.260077] ? mntput_no_expire+0x130/0xa90 [ 43.264365] ? tipc_sk_backlog_rcv+0x370/0x370 [ 43.268913] ? lock_release+0xa40/0xa40 [ 43.272854] ? dentry_free+0xcd/0x130 [ 43.276619] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.281597] ? kmem_cache_free+0x249/0x280 [ 43.285799] ? dentry_free+0xd2/0x130 [ 43.289565] ? locks_remove_file+0x3fa/0x5a0 [ 43.293937] ? fcntl_setlk+0x10c0/0x10c0 [ 43.297963] ? __fsnotify_parent+0xb4/0x3a0 [ 43.302250] ? fsnotify+0x1af0/0x1af0 [ 43.306016] ? rcu_note_context_switch+0x710/0x710 [ 43.310912] sock_release+0x8d/0x1e0 [ 43.314588] ? sock_release+0x1e0/0x1e0 [ 43.318524] sock_close+0x16/0x20 [ 43.321942] __fput+0x327/0x7e0 [ 43.325190] ? fput+0x140/0x140 [ 43.328434] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 43.334282] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.338742] ____fput+0x15/0x20 [ 43.341988] task_work_run+0x199/0x270 [ 43.345841] ? task_work_cancel+0x210/0x210 [ 43.350125] ? _raw_spin_unlock+0x22/0x30 [ 43.354237] ? switch_task_namespaces+0x87/0xc0 [ 43.358870] do_exit+0x9b5/0x1ad0 [ 43.362292] ? mm_update_next_owner+0x930/0x930 [ 43.366936] ? reacquire_held_locks+0x1fd/0x3d0 [ 43.371572] ? find_held_lock+0x35/0x1d0 [ 43.375602] ? release_sock+0x1d4/0x2a0 [ 43.379538] ? lock_downgrade+0x990/0x990 [ 43.383648] ? lock_downgrade+0x990/0x990 [ 43.387759] ? do_raw_spin_trylock+0x190/0x190 [ 43.392307] ? tipc_group_delete+0x2c0/0x3c0 [ 43.396676] ? __local_bh_enable_ip+0x9d/0x160 [ 43.401226] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.406218] ? trace_hardirqs_on+0xd/0x10 [ 43.410334] ? __local_bh_enable_ip+0x9d/0x160 [ 43.414882] ? release_sock+0x1d4/0x2a0 [ 43.418828] ? tipc_nametbl_build_group+0x27a/0x370 [ 43.423811] ? tipc_setsockopt+0x703/0xc00 [ 43.428011] ? tipc_sk_leave+0x200/0x200 [ 43.432043] ? security_socket_setsockopt+0x89/0xb0 [ 43.437025] ? SyS_setsockopt+0x215/0x360 [ 43.441139] do_group_exit+0x149/0x400 [ 43.444990] ? SyS_recv+0x40/0x40 [ 43.448407] ? SyS_exit+0x30/0x30 [ 43.451827] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.456812] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.461534] SyS_exit_group+0x1d/0x20 [ 43.465302] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.470022] RIP: 0033:0x43e978 [ 43.473177] RSP: 002b:00007fff8ecff898 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 43.480848] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 43.488084] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 43.495320] RBP: 0000000000000082 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 43.502553] R10: 0000000020b27000 R11: 0000000000000246 R12: 00000000004016a0 [ 43.509789] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 43.517066] Dumping ftrace buffer: [ 43.520569] (ftrace buffer empty) [ 43.524247] Kernel Offset: disabled [ 43.527841] Rebooting in 86400 seconds..