Warning: Permanently added '10.128.0.9' (ECDSA) to the list of known hosts. executing program executing program [ 57.041815] ================================================================== [ 57.049375] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 57.056197] Read of size 2 at addr ffff8881d9a84774 by task syz-executor871/6069 [ 57.063705] [ 57.065319] CPU: 0 PID: 6069 Comm: syz-executor871 Not tainted 4.20.0-rc6+ #226 [ 57.072748] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.082080] Call Trace: [ 57.084667] dump_stack+0x244/0x39d [ 57.088282] ? dump_stack_print_info.cold.1+0x20/0x20 [ 57.093461] ? printk+0xa7/0xcf [ 57.096741] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 57.101482] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 57.106571] print_address_description.cold.7+0x9/0x1ff [ 57.111917] kasan_report.cold.8+0x242/0x309 [ 57.116320] ? tipc_group_bc_cong+0x327/0x3f0 [ 57.120802] __asan_report_load2_noabort+0x14/0x20 [ 57.125720] tipc_group_bc_cong+0x327/0x3f0 [ 57.130026] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 57.135112] ? tipc_group_cong+0x5d0/0x5d0 [ 57.139330] ? remove_wait_queue+0x1a6/0x360 [ 57.143739] ? add_wait_queue+0x2b0/0x2b0 [ 57.147874] ? __local_bh_enable_ip+0x160/0x260 [ 57.152527] tipc_send_group_bcast+0x50a/0xd90 [ 57.157103] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 57.162102] ? __init_waitqueue_head+0x150/0x150 [ 57.166839] ? refill_pi_state_cache.part.8+0x310/0x310 [ 57.172191] ? mark_held_locks+0x130/0x130 [ 57.176406] ? futex_wait_setup+0x266/0x3e0 [ 57.180726] ? futex_wake+0x760/0x760 [ 57.184511] ? print_usage_bug+0xc0/0xc0 [ 57.188557] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 57.193745] __tipc_sendmsg+0xeec/0x1d40 [ 57.197793] ? futex_wait+0x5ec/0xa50 [ 57.201577] ? tipc_sendmcast+0xf50/0xf50 [ 57.205711] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 57.210887] ? zap_class+0x640/0x640 [ 57.214584] ? print_usage_bug+0xc0/0xc0 [ 57.218639] ? find_held_lock+0x36/0x1c0 [ 57.222704] ? mark_held_locks+0xc7/0x130 [ 57.226840] ? __local_bh_enable_ip+0x160/0x260 [ 57.231490] ? __local_bh_enable_ip+0x160/0x260 [ 57.236141] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 57.240704] ? trace_hardirqs_on+0xbd/0x310 [ 57.245020] ? lock_release+0xa00/0xa00 [ 57.248978] ? lock_sock_nested+0xe2/0x120 [ 57.253202] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.258290] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.263813] ? check_preemption_disabled+0x48/0x280 [ 57.268808] ? lock_sock_nested+0x9a/0x120 [ 57.273021] ? lock_sock_nested+0x9a/0x120 [ 57.277236] ? __local_bh_enable_ip+0x160/0x260 [ 57.281891] tipc_sendmsg+0x50/0x70 [ 57.285501] ? __tipc_sendmsg+0x1d40/0x1d40 [ 57.289803] sock_sendmsg+0xd5/0x120 [ 57.293527] ___sys_sendmsg+0x7fd/0x930 [ 57.297490] ? find_held_lock+0x36/0x1c0 [ 57.301534] ? copy_msghdr_from_user+0x580/0x580 [ 57.306426] ? __fd_install+0x2b5/0x8f0 [ 57.310502] ? check_preemption_disabled+0x48/0x280 [ 57.315512] ? __fget_light+0x2e9/0x430 [ 57.319737] ? fget_raw+0x20/0x20 [ 57.323300] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.328928] ? __fd_install+0x2f9/0x8f0 [ 57.332894] ? get_unused_fd_flags+0x1a0/0x1a0 [ 57.337480] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 57.343214] ? sockfd_lookup_light+0xc5/0x160 [ 57.347699] __sys_sendmsg+0x11d/0x280 [ 57.351576] ? __ia32_sys_shutdown+0x80/0x80 [ 57.355973] ? fput+0x130/0x1a0 [ 57.359284] ? __x64_sys_futex+0x47f/0x6a0 [ 57.363515] ? do_syscall_64+0x9a/0x820 [ 57.367592] ? do_syscall_64+0x9a/0x820 [ 57.371567] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.376663] __x64_sys_sendmsg+0x78/0xb0 [ 57.380712] do_syscall_64+0x1b9/0x820 [ 57.384588] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 57.390108] ? syscall_return_slowpath+0x5e0/0x5e0 [ 57.395134] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 57.399964] ? trace_hardirqs_on_caller+0x310/0x310 [ 57.404968] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 57.409971] ? prepare_exit_to_usermode+0x291/0x3b0 [ 57.414974] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 57.419909] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.425263] RIP: 0033:0x446389 [ 57.428449] 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 [ 57.447478] RSP: 002b:00007f17e8d58db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 57.455177] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000446389 [ 57.462435] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 57.469692] RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000 [ 57.476954] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac2c [ 57.484214] R13: 00007ffee95e2b9f R14: 00007f17e8d599c0 R15: 00000000006dad2c [ 57.491483] [ 57.493103] Allocated by task 6070: [ 57.496722] save_stack+0x43/0xd0 [ 57.500159] kasan_kmalloc+0xc7/0xe0 [ 57.503980] kmem_cache_alloc_trace+0x152/0x750 [ 57.508650] tipc_group_create+0x152/0xa70 [ 57.512871] tipc_setsockopt+0x2d1/0xd70 [ 57.516919] __sys_setsockopt+0x1ba/0x3c0 [ 57.521158] __x64_sys_setsockopt+0xbe/0x150 [ 57.525662] do_syscall_64+0x1b9/0x820 [ 57.529544] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.534716] [ 57.536324] Freed by task 6070: [ 57.539592] save_stack+0x43/0xd0 [ 57.543145] __kasan_slab_free+0x102/0x150 [ 57.547370] kasan_slab_free+0xe/0x10 [ 57.551269] kfree+0xcf/0x230 [ 57.554362] tipc_group_delete+0x2e4/0x3f0 [ 57.558609] tipc_sk_leave+0x113/0x220 [ 57.562494] tipc_setsockopt+0x97d/0xd70 [ 57.566548] __sys_setsockopt+0x1ba/0x3c0 [ 57.570693] __x64_sys_setsockopt+0xbe/0x150 [ 57.575226] do_syscall_64+0x1b9/0x820 [ 57.579106] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.584273] [ 57.585884] The buggy address belongs to the object at ffff8881d9a84700 [ 57.585884] which belongs to the cache kmalloc-192 of size 192 [ 57.598535] The buggy address is located 116 bytes inside of [ 57.598535] 192-byte region [ffff8881d9a84700, ffff8881d9a847c0) [ 57.610402] The buggy address belongs to the page: [ 57.615323] page:ffffea000766a100 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 57.623453] flags: 0x2fffc0000000200(slab) [ 57.627793] raw: 02fffc0000000200 ffffea000766f688 ffffea000766a2c8 ffff8881da800040 [ 57.635674] raw: 0000000000000000 ffff8881d9a84000 0000000100000010 0000000000000000 [ 57.643539] page dumped because: kasan: bad access detected [ 57.649229] [ 57.650836] Memory state around the buggy address: [ 57.655747] ffff8881d9a84600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 57.663093] ffff8881d9a84680: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 57.670443] >ffff8881d9a84700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.677787] ^ [ 57.684886] ffff8881d9a84780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 57.692242] ffff8881d9a84800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 57.699579] ================================================================== [ 57.707088] Disabling lock debugging due to kernel taint [ 57.712955] Kernel panic - not syncing: panic_on_warn set ... [ 57.718883] CPU: 0 PID: 6069 Comm: syz-executor871 Tainted: G B 4.20.0-rc6+ #226 [ 57.727716] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.737059] Call Trace: [ 57.739651] dump_stack+0x244/0x39d [ 57.743272] ? dump_stack_print_info.cold.1+0x20/0x20 [ 57.748452] panic+0x2ad/0x55c [ 57.751653] ? add_taint.cold.5+0x16/0x16 [ 57.755797] ? preempt_schedule+0x4d/0x60 [ 57.759938] ? ___preempt_schedule+0x16/0x18 [ 57.764340] ? trace_hardirqs_on+0xb4/0x310 [ 57.768664] kasan_end_report+0x47/0x4f [ 57.772635] kasan_report.cold.8+0x76/0x309 [ 57.776956] ? tipc_group_bc_cong+0x327/0x3f0 [ 57.781439] __asan_report_load2_noabort+0x14/0x20 [ 57.786353] tipc_group_bc_cong+0x327/0x3f0 [ 57.790660] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 57.795751] ? tipc_group_cong+0x5d0/0x5d0 [ 57.800098] ? remove_wait_queue+0x1a6/0x360 [ 57.804502] ? add_wait_queue+0x2b0/0x2b0 [ 57.808647] ? __local_bh_enable_ip+0x160/0x260 [ 57.813304] tipc_send_group_bcast+0x50a/0xd90 [ 57.817987] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 57.823000] ? __init_waitqueue_head+0x150/0x150 [ 57.827744] ? refill_pi_state_cache.part.8+0x310/0x310 [ 57.833218] ? mark_held_locks+0x130/0x130 [ 57.837445] ? futex_wait_setup+0x266/0x3e0 [ 57.841754] ? futex_wake+0x760/0x760 [ 57.845663] ? print_usage_bug+0xc0/0xc0 [ 57.849812] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 57.855099] __tipc_sendmsg+0xeec/0x1d40 [ 57.859147] ? futex_wait+0x5ec/0xa50 [ 57.862949] ? tipc_sendmcast+0xf50/0xf50 [ 57.867099] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 57.872285] ? zap_class+0x640/0x640 [ 57.875993] ? print_usage_bug+0xc0/0xc0 [ 57.880051] ? find_held_lock+0x36/0x1c0 [ 57.884204] ? mark_held_locks+0xc7/0x130 [ 57.888340] ? __local_bh_enable_ip+0x160/0x260 [ 57.892995] ? __local_bh_enable_ip+0x160/0x260 [ 57.897658] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 57.902238] ? trace_hardirqs_on+0xbd/0x310 [ 57.906552] ? lock_release+0xa00/0xa00 [ 57.910522] ? lock_sock_nested+0xe2/0x120 [ 57.914742] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.919835] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.925363] ? check_preemption_disabled+0x48/0x280 [ 57.930469] ? lock_sock_nested+0x9a/0x120 [ 57.934882] ? lock_sock_nested+0x9a/0x120 [ 57.939218] ? __local_bh_enable_ip+0x160/0x260 [ 57.943878] tipc_sendmsg+0x50/0x70 [ 57.947490] ? __tipc_sendmsg+0x1d40/0x1d40 [ 57.951802] sock_sendmsg+0xd5/0x120 [ 57.955537] ___sys_sendmsg+0x7fd/0x930 [ 57.959521] ? find_held_lock+0x36/0x1c0 [ 57.963586] ? copy_msghdr_from_user+0x580/0x580 [ 57.968452] ? __fd_install+0x2b5/0x8f0 [ 57.972515] ? check_preemption_disabled+0x48/0x280 [ 57.977529] ? __fget_light+0x2e9/0x430 [ 57.981592] ? fget_raw+0x20/0x20 [ 57.985045] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.990572] ? __fd_install+0x2f9/0x8f0 [ 57.994537] ? get_unused_fd_flags+0x1a0/0x1a0 [ 57.999120] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 58.004649] ? sockfd_lookup_light+0xc5/0x160 [ 58.009132] __sys_sendmsg+0x11d/0x280 [ 58.013007] ? __ia32_sys_shutdown+0x80/0x80 [ 58.017404] ? fput+0x130/0x1a0 [ 58.020670] ? __x64_sys_futex+0x47f/0x6a0 [ 58.024894] ? do_syscall_64+0x9a/0x820 [ 58.028866] ? do_syscall_64+0x9a/0x820 [ 58.032830] ? trace_hardirqs_off_caller+0x310/0x310 [ 58.037925] __x64_sys_sendmsg+0x78/0xb0 [ 58.041972] do_syscall_64+0x1b9/0x820 [ 58.045843] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 58.051194] ? syscall_return_slowpath+0x5e0/0x5e0 [ 58.056110] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 58.060939] ? trace_hardirqs_on_caller+0x310/0x310 [ 58.066049] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 58.071078] ? prepare_exit_to_usermode+0x291/0x3b0 [ 58.076090] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 58.080925] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.086191] RIP: 0033:0x446389 [ 58.089381] 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 [ 58.108274] RSP: 002b:00007f17e8d58db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 58.115973] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000446389 [ 58.123227] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 58.130482] RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000 [ 58.137738] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac2c [ 58.144995] R13: 00007ffee95e2b9f R14: 00007f17e8d599c0 R15: 00000000006dad2c [ 58.153283] Kernel Offset: disabled [ 58.156975] Rebooting in 86400 seconds..