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 syzkaller login: [ 32.578660] sshd (6060) used greatest stack depth: 15744 bytes left Warning: Permanently added '10.128.10.23' (ECDSA) to the list of known hosts. executing program [ 52.887498] ================================================================== [ 52.895380] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 52.902316] Read of size 2 at addr ffff8881d7863274 by task syz-executor910/6080 [ 52.909936] [ 52.911550] CPU: 0 PID: 6080 Comm: syz-executor910 Not tainted 4.20.0-rc6+ #339 [ 52.919102] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.928526] Call Trace: [ 52.931107] dump_stack+0x244/0x39d [ 52.934724] ? dump_stack_print_info.cold.1+0x20/0x20 [ 52.939997] ? printk+0xa7/0xcf [ 52.943259] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 52.947996] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 52.953085] print_address_description.cold.7+0x9/0x1ff [ 52.958580] kasan_report.cold.8+0x242/0x309 [ 52.963043] ? tipc_group_bc_cong+0x327/0x3f0 [ 52.967539] __asan_report_load2_noabort+0x14/0x20 [ 52.972460] tipc_group_bc_cong+0x327/0x3f0 [ 52.976775] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 52.982081] ? tipc_group_cong+0x5d0/0x5d0 [ 52.986308] ? remove_wait_queue+0x1a6/0x360 [ 52.990702] ? add_wait_queue+0x2b0/0x2b0 [ 52.994834] ? __local_bh_enable_ip+0x160/0x260 [ 52.999487] tipc_send_group_bcast+0x50a/0xd90 [ 53.004287] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 53.009294] ? __init_waitqueue_head+0x150/0x150 [ 53.014042] ? refill_pi_state_cache.part.8+0x310/0x310 [ 53.019421] ? mark_held_locks+0x130/0x130 [ 53.023688] ? futex_wait_setup+0x266/0x3e0 [ 53.028091] ? futex_wake+0x760/0x760 [ 53.031909] ? print_usage_bug+0xc0/0xc0 [ 53.035967] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 53.041179] __tipc_sendmsg+0xeec/0x1d40 [ 53.045286] ? futex_wait+0x5ec/0xa50 [ 53.049082] ? tipc_sendmcast+0xf50/0xf50 [ 53.053214] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 53.058397] ? zap_class+0x640/0x640 [ 53.062133] ? print_usage_bug+0xc0/0xc0 [ 53.066203] ? find_held_lock+0x36/0x1c0 [ 53.070298] ? mark_held_locks+0xc7/0x130 [ 53.074466] ? __local_bh_enable_ip+0x160/0x260 [ 53.079362] ? __local_bh_enable_ip+0x160/0x260 [ 53.084065] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 53.088642] ? trace_hardirqs_on+0xbd/0x310 [ 53.092946] ? lock_release+0xa00/0xa00 [ 53.096908] ? lock_sock_nested+0xe2/0x120 [ 53.101136] ? trace_hardirqs_off_caller+0x310/0x310 [ 53.106238] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.111771] ? check_preemption_disabled+0x48/0x280 [ 53.116776] ? lock_sock_nested+0x9a/0x120 [ 53.120993] ? lock_sock_nested+0x9a/0x120 [ 53.125225] ? __local_bh_enable_ip+0x160/0x260 [ 53.129951] tipc_sendmsg+0x50/0x70 [ 53.133605] ? __tipc_sendmsg+0x1d40/0x1d40 [ 53.137981] sock_sendmsg+0xd5/0x120 [ 53.141800] ___sys_sendmsg+0x7fd/0x930 [ 53.145762] ? find_held_lock+0x36/0x1c0 [ 53.149815] ? copy_msghdr_from_user+0x580/0x580 [ 53.154590] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.159337] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 53.163983] ? retint_kernel+0x2d/0x2d [ 53.167874] ? trace_hardirqs_on_caller+0xc0/0x310 [ 53.172799] ? __fget_light+0x2e9/0x430 [ 53.176853] ? fget_raw+0x20/0x20 [ 53.180385] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.185137] ? retint_kernel+0x2d/0x2d [ 53.189016] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 53.194537] ? sockfd_lookup_light+0xc5/0x160 [ 53.199138] __sys_sendmsg+0x11d/0x280 [ 53.203018] ? __ia32_sys_shutdown+0x80/0x80 [ 53.207413] ? fput+0x130/0x1a0 [ 53.210679] ? __x64_sys_futex+0x47f/0x6a0 [ 53.214896] ? do_syscall_64+0x9a/0x820 [ 53.219105] ? do_syscall_64+0x9a/0x820 [ 53.223076] ? trace_hardirqs_off_caller+0x310/0x310 [ 53.228172] __x64_sys_sendmsg+0x78/0xb0 [ 53.232232] do_syscall_64+0x1b9/0x820 [ 53.236113] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 53.241464] ? syscall_return_slowpath+0x5e0/0x5e0 [ 53.246389] ? trace_hardirqs_on_caller+0x310/0x310 [ 53.251407] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 53.256405] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 53.263058] ? __switch_to_asm+0x40/0x70 [ 53.267100] ? __switch_to_asm+0x34/0x70 [ 53.271164] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 53.276134] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.281422] RIP: 0033:0x446389 [ 53.284602] Code: e8 2c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 53.303492] RSP: 002b:00007f0049639db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 53.311338] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 53.318617] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 53.325974] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 53.333306] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 53.340566] R13: 00007ffe295265af R14: 00007f004963a9c0 R15: 00000000006dad2c [ 53.347825] [ 53.349432] Allocated by task 6081: [ 53.353064] save_stack+0x43/0xd0 [ 53.356502] kasan_kmalloc+0xc7/0xe0 [ 53.360287] kmem_cache_alloc_trace+0x152/0x750 [ 53.365004] tipc_group_create+0x152/0xa70 [ 53.369320] tipc_setsockopt+0x2d1/0xd70 [ 53.373508] __sys_setsockopt+0x1ba/0x3c0 [ 53.377659] __x64_sys_setsockopt+0xbe/0x150 [ 53.382052] do_syscall_64+0x1b9/0x820 [ 53.385923] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.391089] [ 53.392696] Freed by task 6081: [ 53.396022] save_stack+0x43/0xd0 [ 53.399466] __kasan_slab_free+0x102/0x150 [ 53.403792] kasan_slab_free+0xe/0x10 [ 53.407599] kfree+0xcf/0x230 [ 53.410822] tipc_group_delete+0x2e4/0x3f0 [ 53.415061] tipc_sk_leave+0x113/0x220 [ 53.418966] tipc_setsockopt+0x97d/0xd70 [ 53.423011] __sys_setsockopt+0x1ba/0x3c0 [ 53.427145] __x64_sys_setsockopt+0xbe/0x150 [ 53.431534] do_syscall_64+0x1b9/0x820 [ 53.435400] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.440681] [ 53.442295] The buggy address belongs to the object at ffff8881d7863200 [ 53.442295] which belongs to the cache kmalloc-192 of size 192 [ 53.454936] The buggy address is located 116 bytes inside of [ 53.454936] 192-byte region [ffff8881d7863200, ffff8881d78632c0) [ 53.466792] The buggy address belongs to the page: [ 53.471723] page:ffffea00075e18c0 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 53.479851] flags: 0x2fffc0000000200(slab) [ 53.484091] raw: 02fffc0000000200 ffffea00075ece48 ffff8881da801148 ffff8881da800040 [ 53.491966] raw: 0000000000000000 ffff8881d7863000 0000000100000010 0000000000000000 [ 53.499952] page dumped because: kasan: bad access detected [ 53.505646] [ 53.507253] Memory state around the buggy address: [ 53.512272] ffff8881d7863100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 53.519619] ffff8881d7863180: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 53.527285] >ffff8881d7863200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.534627] ^ [ 53.541637] ffff8881d7863280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 53.549056] ffff8881d7863300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.556394] ================================================================== [ 53.563792] Disabling lock debugging due to kernel taint [ 53.569365] Kernel panic - not syncing: panic_on_warn set ... [ 53.575246] CPU: 0 PID: 6080 Comm: syz-executor910 Tainted: G B 4.20.0-rc6+ #339 [ 53.584061] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.593391] Call Trace: [ 53.595959] dump_stack+0x244/0x39d [ 53.599572] ? dump_stack_print_info.cold.1+0x20/0x20 [ 53.604865] panic+0x2ad/0x55c [ 53.608141] ? add_taint.cold.5+0x16/0x16 [ 53.612273] ? preempt_schedule+0x4d/0x60 [ 53.616407] ? ___preempt_schedule+0x16/0x18 [ 53.620984] ? trace_hardirqs_on+0xb4/0x310 [ 53.625313] kasan_end_report+0x47/0x4f [ 53.629272] kasan_report.cold.8+0x76/0x309 [ 53.633620] ? tipc_group_bc_cong+0x327/0x3f0 [ 53.638103] __asan_report_load2_noabort+0x14/0x20 [ 53.643113] tipc_group_bc_cong+0x327/0x3f0 [ 53.647419] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 53.652507] ? tipc_group_cong+0x5d0/0x5d0 [ 53.656738] ? remove_wait_queue+0x1a6/0x360 [ 53.661230] ? add_wait_queue+0x2b0/0x2b0 [ 53.665366] ? __local_bh_enable_ip+0x160/0x260 [ 53.670035] tipc_send_group_bcast+0x50a/0xd90 [ 53.674604] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 53.679616] ? __init_waitqueue_head+0x150/0x150 [ 53.684361] ? refill_pi_state_cache.part.8+0x310/0x310 [ 53.689710] ? mark_held_locks+0x130/0x130 [ 53.694041] ? futex_wait_setup+0x266/0x3e0 [ 53.698403] ? futex_wake+0x760/0x760 [ 53.702188] ? print_usage_bug+0xc0/0xc0 [ 53.706330] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 53.711520] __tipc_sendmsg+0xeec/0x1d40 [ 53.715573] ? futex_wait+0x5ec/0xa50 [ 53.719360] ? tipc_sendmcast+0xf50/0xf50 [ 53.723487] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 53.728675] ? zap_class+0x640/0x640 [ 53.732368] ? print_usage_bug+0xc0/0xc0 [ 53.736479] ? find_held_lock+0x36/0x1c0 [ 53.740560] ? mark_held_locks+0xc7/0x130 [ 53.744712] ? __local_bh_enable_ip+0x160/0x260 [ 53.749369] ? __local_bh_enable_ip+0x160/0x260 [ 53.754022] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 53.758633] ? trace_hardirqs_on+0xbd/0x310 [ 53.762945] ? lock_release+0xa00/0xa00 [ 53.766915] ? lock_sock_nested+0xe2/0x120 [ 53.771132] ? trace_hardirqs_off_caller+0x310/0x310 [ 53.776221] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.781745] ? check_preemption_disabled+0x48/0x280 [ 53.786761] ? lock_sock_nested+0x9a/0x120 [ 53.791090] ? lock_sock_nested+0x9a/0x120 [ 53.795311] ? __local_bh_enable_ip+0x160/0x260 [ 53.799964] tipc_sendmsg+0x50/0x70 [ 53.803569] ? __tipc_sendmsg+0x1d40/0x1d40 [ 53.807873] sock_sendmsg+0xd5/0x120 [ 53.811707] ___sys_sendmsg+0x7fd/0x930 [ 53.815664] ? find_held_lock+0x36/0x1c0 [ 53.819713] ? copy_msghdr_from_user+0x580/0x580 [ 53.824450] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.829186] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 53.833752] ? retint_kernel+0x2d/0x2d [ 53.837620] ? trace_hardirqs_on_caller+0xc0/0x310 [ 53.842558] ? __fget_light+0x2e9/0x430 [ 53.846590] ? fget_raw+0x20/0x20 [ 53.850051] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.854884] ? retint_kernel+0x2d/0x2d [ 53.858887] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 53.864482] ? sockfd_lookup_light+0xc5/0x160 [ 53.868967] __sys_sendmsg+0x11d/0x280 [ 53.872839] ? __ia32_sys_shutdown+0x80/0x80 [ 53.877230] ? fput+0x130/0x1a0 [ 53.880602] ? __x64_sys_futex+0x47f/0x6a0 [ 53.884839] ? do_syscall_64+0x9a/0x820 [ 53.888818] ? do_syscall_64+0x9a/0x820 [ 53.892936] ? trace_hardirqs_off_caller+0x310/0x310 [ 53.898027] __x64_sys_sendmsg+0x78/0xb0 [ 53.902182] do_syscall_64+0x1b9/0x820 [ 53.906098] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 53.911551] ? syscall_return_slowpath+0x5e0/0x5e0 [ 53.916469] ? trace_hardirqs_on_caller+0x310/0x310 [ 53.921588] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 53.926597] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 53.933247] ? __switch_to_asm+0x40/0x70 [ 53.937303] ? __switch_to_asm+0x34/0x70 [ 53.941450] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 53.946319] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.951493] RIP: 0033:0x446389 [ 53.954677] Code: e8 2c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 53.973603] RSP: 002b:00007f0049639db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 53.981316] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 53.988629] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 53.996006] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 54.003377] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 54.010634] R13: 00007ffe295265af R14: 00007f004963a9c0 R15: 00000000006dad2c [ 54.018946] Kernel Offset: disabled [ 54.022572] Rebooting in 86400 seconds..