[ 35.983245] default_idle+0xbf/0x460 [ 35.986924] ? __sched_text_end+0x4/0x4 [ 35.990865] ? tick_nohz_idle_enter+0xde/0x160 [ 35.995414] arch_cpu_idle+0xa/0x10 [ 35.999003] default_idle_call+0x36/0x90 [ 36.003029] do_idle+0x24e/0x3b0 [ 36.006360] ? complete+0x6a/0x80 [ 36.009778] cpu_startup_entry+0x18/0x20 [ 36.013803] start_secondary+0x2ea/0x3f0 [ 36.017829] secondary_startup_64+0xa5/0xa5 Warning: Permanently added 'ci-upstream-net-kasan-gce-8,10.128.0.54' (ECDSA) to the list of known hosts. executing program [ 42.057146] ================================================================== [ 42.064525] BUG: KASAN: use-after-free in tipc_group_self+0x1a2/0x1b0 [ 42.071070] Read of size 4 at addr ffff8801d84d1d6c by task syzkaller279827/2990 [ 42.078565] [ 42.080165] CPU: 1 PID: 2990 Comm: syzkaller279827 Not tainted 4.14.0-rc4+ #86 [ 42.087487] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.096805] Call Trace: [ 42.099362] dump_stack+0x194/0x257 [ 42.102955] ? arch_local_irq_restore+0x53/0x53 [ 42.107589] ? show_regs_print_info+0x65/0x65 [ 42.112050] ? lock_sock_nested+0xa3/0x110 [ 42.116249] ? tipc_group_self+0x1a2/0x1b0 [ 42.120449] print_address_description+0x73/0x250 [ 42.125257] ? tipc_group_self+0x1a2/0x1b0 [ 42.129458] kasan_report+0x25b/0x340 [ 42.133224] __asan_report_load4_noabort+0x14/0x20 [ 42.138118] tipc_group_self+0x1a2/0x1b0 [ 42.142147] tipc_sk_leave+0xfc/0x200 [ 42.145915] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 42.150207] ? lock_sock_nested+0x44/0x110 [ 42.154495] ? lock_sock_nested+0x91/0x110 [ 42.158697] ? trace_hardirqs_on+0xd/0x10 [ 42.162810] ? __local_bh_enable_ip+0x9d/0x160 [ 42.167361] tipc_release+0x154/0xfd0 [ 42.171129] ? lock_acquire+0x1d5/0x580 [ 42.175070] ? mnt_get_count+0x150/0x150 [ 42.179099] ? tipc_sk_backlog_rcv+0x370/0x370 [ 42.183650] ? lock_release+0xd70/0xd70 [ 42.187590] ? trace_hardirqs_on+0xd/0x10 [ 42.191704] ? kmem_cache_free+0x21b/0x280 [ 42.195906] ? dentry_free+0xd2/0x130 [ 42.199675] ? locks_remove_file+0x3fa/0x5a0 [ 42.204048] ? fcntl_setlk+0x10d0/0x10d0 [ 42.208075] ? mnt_get_count+0x150/0x150 [ 42.212103] ? __fsnotify_parent+0xb4/0x3a0 [ 42.216392] ? fsnotify+0x1af0/0x1af0 [ 42.220161] ? dput.part.24+0x2a/0x740 [ 42.224028] sock_release+0x8d/0x1e0 [ 42.227709] ? sock_release+0x1e0/0x1e0 [ 42.231648] sock_close+0x16/0x20 [ 42.235066] __fput+0x333/0x7f0 [ 42.238315] ? fput+0x140/0x140 [ 42.241561] ? check_same_owner+0x320/0x320 [ 42.245847] ? do_raw_spin_trylock+0x190/0x190 [ 42.250399] ____fput+0x15/0x20 [ 42.253646] task_work_run+0x199/0x270 [ 42.257502] ? task_work_cancel+0x210/0x210 [ 42.261798] ? _raw_spin_unlock+0x22/0x30 [ 42.265914] ? switch_task_namespaces+0x87/0xc0 [ 42.270552] do_exit+0x9d2/0x1af0 [ 42.273976] ? tipc_accept_from_sock+0x521/0x580 [ 42.278698] ? mm_update_next_owner+0x930/0x930 [ 42.283332] ? release_sock+0x1d4/0x2a0 [ 42.287271] ? lock_downgrade+0x990/0x990 [ 42.291386] ? lock_downgrade+0x990/0x990 [ 42.295501] ? lock_acquire+0x1d5/0x580 [ 42.299438] ? release_sock+0x74/0x2a0 [ 42.303293] ? do_raw_spin_trylock+0x190/0x190 [ 42.307847] ? tipc_group_delete+0x2c0/0x3c0 [ 42.312246] ? lock_release+0xcb0/0xd70 [ 42.316187] ? trace_hardirqs_on+0xd/0x10 [ 42.320301] ? __local_bh_enable_ip+0x9d/0x160 [ 42.324850] ? release_sock+0x1d4/0x2a0 [ 42.328796] ? tipc_nametbl_build_group+0x27a/0x370 [ 42.333783] ? tipc_setsockopt+0x703/0xc00 [ 42.337990] ? tipc_sk_leave+0x200/0x200 [ 42.342026] ? security_socket_setsockopt+0x89/0xb0 [ 42.347010] ? SyS_setsockopt+0x215/0x360 [ 42.351125] do_group_exit+0x149/0x400 [ 42.354977] ? SyS_recv+0x40/0x40 [ 42.358397] ? SyS_exit+0x30/0x30 [ 42.361816] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.366539] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.371262] SyS_exit_group+0x1d/0x20 [ 42.375030] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.379749] RIP: 0033:0x43e978 [ 42.382906] RSP: 002b:00007ffd2da7f0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.390579] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 42.397814] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.405049] RBP: 00000000000014b1 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.412285] R10: 0000000020165fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 42.419519] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 42.426765] [ 42.428358] Allocated by task 2990: [ 42.431952] save_stack_trace+0x16/0x20 [ 42.435890] save_stack+0x43/0xd0 [ 42.439306] kasan_kmalloc+0xad/0xe0 [ 42.442984] kmem_cache_alloc_trace+0x136/0x750 [ 42.447616] tipc_group_create+0x116/0x9c0 [ 42.451816] tipc_setsockopt+0x25e/0xc00 [ 42.455842] SyS_setsockopt+0x189/0x360 [ 42.459779] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.464498] [ 42.466091] Freed by task 2990: [ 42.469334] save_stack_trace+0x16/0x20 [ 42.473270] save_stack+0x43/0xd0 [ 42.476688] kasan_slab_free+0x71/0xc0 [ 42.480539] kfree+0xca/0x250 [ 42.483608] tipc_group_delete+0x2c0/0x3c0 [ 42.487819] tipc_setsockopt+0xb33/0xc00 [ 42.491854] SyS_setsockopt+0x189/0x360 [ 42.495792] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.500508] [ 42.502103] The buggy address belongs to the object at ffff8801d84d1d00 [ 42.502103] which belongs to the cache kmalloc-192 of size 192 [ 42.514724] The buggy address is located 108 bytes inside of [ 42.514724] 192-byte region [ffff8801d84d1d00, ffff8801d84d1dc0) [ 42.526561] The buggy address belongs to the page: [ 42.531457] page:ffffea0007613440 count:1 mapcount:0 mapping:ffff8801d84d1000 index:0xffff8801d84d1300 [ 42.540871] flags: 0x200000000000100(slab) [ 42.545072] raw: 0200000000000100 ffff8801d84d1000 ffff8801d84d1300 000000010000000d [ 42.552920] raw: ffffea0007612fa0 ffffea00074ab3a0 ffff8801dac00040 0000000000000000 [ 42.560766] page dumped because: kasan: bad access detected [ 42.566438] [ 42.568033] Memory state around the buggy address: [ 42.572928] ffff8801d84d1c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.580254] ffff8801d84d1c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 42.587579] >ffff8801d84d1d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.594900] ^ [ 42.601616] ffff8801d84d1d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 42.608941] ffff8801d84d1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.616265] ================================================================== [ 42.623781] Kernel panic - not syncing: panic_on_warn set ... [ 42.623781] [ 42.631121] CPU: 1 PID: 2990 Comm: syzkaller279827 Tainted: G B 4.14.0-rc4+ #86 [ 42.639660] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.649067] Call Trace: [ 42.651624] dump_stack+0x194/0x257 [ 42.655219] ? arch_local_irq_restore+0x53/0x53 [ 42.659854] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.664578] ? tipc_group_self+0x180/0x1b0 [ 42.668783] panic+0x1e4/0x417 [ 42.671944] ? __warn+0x1d9/0x1d9 [ 42.675370] ? tipc_group_self+0x1a2/0x1b0 [ 42.679583] kasan_end_report+0x50/0x50 [ 42.683522] kasan_report+0x144/0x340 [ 42.687291] __asan_report_load4_noabort+0x14/0x20 [ 42.692185] tipc_group_self+0x1a2/0x1b0 [ 42.696216] tipc_sk_leave+0xfc/0x200 [ 42.699984] ? tipc_sk_withdraw+0x6b0/0x6b0 [ 42.704271] ? lock_sock_nested+0x44/0x110 [ 42.708470] ? lock_sock_nested+0x91/0x110 [ 42.712673] ? trace_hardirqs_on+0xd/0x10 [ 42.716787] ? __local_bh_enable_ip+0x9d/0x160 [ 42.721336] tipc_release+0x154/0xfd0 [ 42.725106] ? lock_acquire+0x1d5/0x580 [ 42.729046] ? mnt_get_count+0x150/0x150 [ 42.733074] ? tipc_sk_backlog_rcv+0x370/0x370 [ 42.737622] ? lock_release+0xd70/0xd70 [ 42.741572] ? trace_hardirqs_on+0xd/0x10 [ 42.745687] ? kmem_cache_free+0x21b/0x280 [ 42.749892] ? dentry_free+0xd2/0x130 [ 42.753661] ? locks_remove_file+0x3fa/0x5a0 [ 42.758035] ? fcntl_setlk+0x10d0/0x10d0 [ 42.762063] ? mnt_get_count+0x150/0x150 [ 42.766089] ? __fsnotify_parent+0xb4/0x3a0 [ 42.770745] ? fsnotify+0x1af0/0x1af0 [ 42.774513] ? dput.part.24+0x2a/0x740 [ 42.778375] sock_release+0x8d/0x1e0 [ 42.782057] ? sock_release+0x1e0/0x1e0 [ 42.785997] sock_close+0x16/0x20 [ 42.789416] __fput+0x333/0x7f0 [ 42.792663] ? fput+0x140/0x140 [ 42.795912] ? check_same_owner+0x320/0x320 [ 42.800202] ? do_raw_spin_trylock+0x190/0x190 [ 42.804751] ____fput+0x15/0x20 [ 42.807997] task_work_run+0x199/0x270 [ 42.811852] ? task_work_cancel+0x210/0x210 [ 42.816141] ? _raw_spin_unlock+0x22/0x30 [ 42.820255] ? switch_task_namespaces+0x87/0xc0 [ 42.824892] do_exit+0x9d2/0x1af0 [ 42.828316] ? tipc_accept_from_sock+0x521/0x580 [ 42.833037] ? mm_update_next_owner+0x930/0x930 [ 42.837675] ? release_sock+0x1d4/0x2a0 [ 42.841615] ? lock_downgrade+0x990/0x990 [ 42.845736] ? lock_downgrade+0x990/0x990 [ 42.849855] ? lock_acquire+0x1d5/0x580 [ 42.853797] ? release_sock+0x74/0x2a0 [ 42.857652] ? do_raw_spin_trylock+0x190/0x190 [ 42.862204] ? tipc_group_delete+0x2c0/0x3c0 [ 42.866580] ? lock_release+0xcb0/0xd70 [ 42.870521] ? trace_hardirqs_on+0xd/0x10 [ 42.874635] ? __local_bh_enable_ip+0x9d/0x160 [ 42.879187] ? release_sock+0x1d4/0x2a0 [ 42.883131] ? tipc_nametbl_build_group+0x27a/0x370 [ 42.888119] ? tipc_setsockopt+0x703/0xc00 [ 42.892319] ? tipc_sk_leave+0x200/0x200 [ 42.896354] ? security_socket_setsockopt+0x89/0xb0 [ 42.901337] ? SyS_setsockopt+0x215/0x360 [ 42.905464] do_group_exit+0x149/0x400 [ 42.909326] ? SyS_recv+0x40/0x40 [ 42.912761] ? SyS_exit+0x30/0x30 [ 42.916193] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.920925] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.925659] SyS_exit_group+0x1d/0x20 [ 42.929429] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.934150] RIP: 0033:0x43e978 [ 42.937307] RSP: 002b:00007ffd2da7f0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.944980] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e978 [ 42.952216] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.959450] RBP: 00000000000014b1 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.966688] R10: 0000000020165fe4 R11: 0000000000000246 R12: 00000000006ca858 [ 42.973932] R13: 00000000006ca858 R14: 0000000000000000 R15: 0000000000002710 [ 42.981223] Dumping ftrace buffer: [ 42.984732] (ftrace buffer empty) [ 42.988408] Kernel Offset: disabled [ 42.992004] Rebooting in 86400 seconds..