Warning: Permanently added '10.128.10.54' (ECDSA) to the list of known hosts. executing program [ 39.280139] ================================================================== [ 39.287645] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 39.294476] Read of size 2 at addr ffff8881d88fc674 by task syz-executor052/6028 [ 39.301994] [ 39.303630] CPU: 0 PID: 6028 Comm: syz-executor052 Not tainted 4.20.0-rc6+ #339 [ 39.311065] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.320414] Call Trace: [ 39.323023] dump_stack+0x244/0x39d [ 39.326648] ? dump_stack_print_info.cold.1+0x20/0x20 [ 39.331839] ? printk+0xa7/0xcf [ 39.335127] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.339876] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 39.344978] print_address_description.cold.7+0x9/0x1ff [ 39.350333] kasan_report.cold.8+0x242/0x309 [ 39.354734] ? tipc_group_bc_cong+0x327/0x3f0 [ 39.359220] __asan_report_load2_noabort+0x14/0x20 [ 39.364145] tipc_group_bc_cong+0x327/0x3f0 [ 39.368459] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 39.373556] ? tipc_group_cong+0x5d0/0x5d0 [ 39.377779] ? remove_wait_queue+0x1a6/0x360 [ 39.382180] ? add_wait_queue+0x2b0/0x2b0 [ 39.386334] ? __local_bh_enable_ip+0x160/0x260 [ 39.391017] tipc_send_group_bcast+0x50a/0xd90 [ 39.395627] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 39.400650] ? __init_waitqueue_head+0x150/0x150 [ 39.405391] ? refill_pi_state_cache.part.8+0x310/0x310 [ 39.410759] ? mark_held_locks+0x130/0x130 [ 39.414989] ? futex_wait_setup+0x266/0x3e0 [ 39.419313] ? futex_wake+0x760/0x760 [ 39.423117] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.428324] __tipc_sendmsg+0xeec/0x1d40 [ 39.432376] ? futex_wait+0x5ec/0xa50 [ 39.436174] ? tipc_sendmcast+0xf50/0xf50 [ 39.440328] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.445510] ? zap_class+0x640/0x640 [ 39.449227] ? print_usage_bug+0xc0/0xc0 [ 39.453286] ? find_held_lock+0x36/0x1c0 [ 39.457341] ? mark_held_locks+0xc7/0x130 [ 39.461481] ? __local_bh_enable_ip+0x160/0x260 [ 39.466142] ? __local_bh_enable_ip+0x160/0x260 [ 39.470802] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 39.475382] ? trace_hardirqs_on+0xbd/0x310 [ 39.479717] ? lock_release+0xa00/0xa00 [ 39.483680] ? lock_sock_nested+0xe2/0x120 [ 39.487923] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.493053] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.498600] ? check_preemption_disabled+0x48/0x280 [ 39.503606] ? lock_sock_nested+0x9a/0x120 [ 39.507845] ? lock_sock_nested+0x9a/0x120 [ 39.512068] ? __local_bh_enable_ip+0x160/0x260 [ 39.516726] tipc_sendmsg+0x50/0x70 [ 39.520339] ? __tipc_sendmsg+0x1d40/0x1d40 [ 39.524648] sock_sendmsg+0xd5/0x120 [ 39.528353] ___sys_sendmsg+0x7fd/0x930 [ 39.532348] ? copy_msghdr_from_user+0x580/0x580 [ 39.537139] ? trace_hardirqs_on+0xbd/0x310 [ 39.541458] ? _raw_spin_unlock_bh+0x30/0x40 [ 39.545858] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.550947] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.556474] ? __fget_light+0x2e9/0x430 [ 39.560433] ? fget_raw+0x20/0x20 [ 39.563879] ? _raw_spin_unlock_bh+0x30/0x40 [ 39.568284] ? release_sock+0x1ec/0x2c0 [ 39.572254] ? __release_sock+0x3a0/0x3a0 [ 39.576388] ? __local_bh_enable_ip+0x160/0x260 [ 39.581047] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.586570] ? sockfd_lookup_light+0xc5/0x160 [ 39.591048] __sys_sendmsg+0x11d/0x280 [ 39.594935] ? __ia32_sys_shutdown+0x80/0x80 [ 39.599346] ? __x64_sys_futex+0x47f/0x6a0 [ 39.603567] ? do_syscall_64+0x9a/0x820 [ 39.607522] ? do_syscall_64+0x9a/0x820 [ 39.611496] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.616586] ? trace_hardirqs_off+0xb8/0x310 [ 39.620991] __x64_sys_sendmsg+0x78/0xb0 [ 39.625051] do_syscall_64+0x1b9/0x820 [ 39.628923] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.634310] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.639271] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.644273] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.649288] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 39.655939] ? __switch_to_asm+0x40/0x70 [ 39.659984] ? __switch_to_asm+0x34/0x70 [ 39.664045] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.668894] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.674067] RIP: 0033:0x445719 [ 39.677246] Code: e8 6c b6 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 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 39.696141] RSP: 002b:00007febce0f0db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 39.703840] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000445719 [ 39.711092] RDX: 0000000000040080 RSI: 0000000020001580 RDI: 0000000000000004 [ 39.718345] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 39.725599] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 39.732853] R13: 00007ffea340d06f R14: 00007febce0f19c0 R15: 00000000006dad2c [ 39.740108] [ 39.741716] Allocated by task 6027: [ 39.745329] save_stack+0x43/0xd0 [ 39.748766] kasan_kmalloc+0xc7/0xe0 [ 39.752461] kmem_cache_alloc_trace+0x152/0x750 [ 39.757127] tipc_group_create+0x152/0xa70 [ 39.761380] tipc_setsockopt+0x2d1/0xd70 [ 39.765422] __sys_setsockopt+0x1ba/0x3c0 [ 39.769562] __x64_sys_setsockopt+0xbe/0x150 [ 39.773967] do_syscall_64+0x1b9/0x820 [ 39.777848] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.783013] [ 39.784632] Freed by task 6027: [ 39.787893] save_stack+0x43/0xd0 [ 39.791325] __kasan_slab_free+0x102/0x150 [ 39.795540] kasan_slab_free+0xe/0x10 [ 39.799318] kfree+0xcf/0x230 [ 39.802407] tipc_group_delete+0x2e4/0x3f0 [ 39.806651] tipc_sk_leave+0x113/0x220 [ 39.810522] tipc_setsockopt+0x97d/0xd70 [ 39.814566] __sys_setsockopt+0x1ba/0x3c0 [ 39.818698] __x64_sys_setsockopt+0xbe/0x150 [ 39.823088] do_syscall_64+0x1b9/0x820 [ 39.827007] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.832188] [ 39.833846] The buggy address belongs to the object at ffff8881d88fc600 [ 39.833846] which belongs to the cache kmalloc-192 of size 192 [ 39.846486] The buggy address is located 116 bytes inside of [ 39.846486] 192-byte region [ffff8881d88fc600, ffff8881d88fc6c0) [ 39.858340] The buggy address belongs to the page: [ 39.863263] page:ffffea0007623f00 count:1 mapcount:0 mapping:ffff8881da800040 index:0xffff8881d88fc800 [ 39.872686] flags: 0x2fffc0000000200(slab) [ 39.876933] raw: 02fffc0000000200 ffffea000761b308 ffffea0007624008 ffff8881da800040 [ 39.884797] raw: ffff8881d88fc800 ffff8881d88fc000 0000000100000005 0000000000000000 [ 39.892671] page dumped because: kasan: bad access detected [ 39.898387] [ 39.900006] Memory state around the buggy address: [ 39.904916] ffff8881d88fc500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.912270] ffff8881d88fc580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.919623] >ffff8881d88fc600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.926974] ^ [ 39.933968] ffff8881d88fc680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.941310] ffff8881d88fc700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.948692] ================================================================== [ 39.956042] Disabling lock debugging due to kernel taint [ 39.964543] Kernel panic - not syncing: panic_on_warn set ... [ 39.970489] CPU: 1 PID: 6028 Comm: syz-executor052 Tainted: G B 4.20.0-rc6+ #339 [ 39.979340] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.988674] Call Trace: [ 39.991267] dump_stack+0x244/0x39d [ 39.994891] ? dump_stack_print_info.cold.1+0x20/0x20 [ 40.000094] panic+0x2ad/0x55c [ 40.003269] ? add_taint.cold.5+0x16/0x16 [ 40.007413] ? preempt_schedule+0x4d/0x60 [ 40.011562] ? ___preempt_schedule+0x16/0x18 [ 40.015987] ? trace_hardirqs_on+0xb4/0x310 [ 40.020293] kasan_end_report+0x47/0x4f [ 40.024247] kasan_report.cold.8+0x76/0x309 [ 40.028569] ? tipc_group_bc_cong+0x327/0x3f0 [ 40.033047] __asan_report_load2_noabort+0x14/0x20 [ 40.038014] tipc_group_bc_cong+0x327/0x3f0 [ 40.042330] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 40.047421] ? tipc_group_cong+0x5d0/0x5d0 [ 40.051652] ? remove_wait_queue+0x1a6/0x360 [ 40.056046] ? add_wait_queue+0x2b0/0x2b0 [ 40.060184] ? __local_bh_enable_ip+0x160/0x260 [ 40.064847] tipc_send_group_bcast+0x50a/0xd90 [ 40.069420] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 40.074453] ? __init_waitqueue_head+0x150/0x150 [ 40.079239] ? refill_pi_state_cache.part.8+0x310/0x310 [ 40.084604] ? mark_held_locks+0x130/0x130 [ 40.088835] ? futex_wait_setup+0x266/0x3e0 [ 40.093162] ? futex_wake+0x760/0x760 [ 40.096949] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 40.102123] __tipc_sendmsg+0xeec/0x1d40 [ 40.106167] ? futex_wait+0x5ec/0xa50 [ 40.109953] ? tipc_sendmcast+0xf50/0xf50 [ 40.114081] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 40.119262] ? zap_class+0x640/0x640 [ 40.122956] ? print_usage_bug+0xc0/0xc0 [ 40.127005] ? find_held_lock+0x36/0x1c0 [ 40.131046] ? mark_held_locks+0xc7/0x130 [ 40.135178] ? __local_bh_enable_ip+0x160/0x260 [ 40.139832] ? __local_bh_enable_ip+0x160/0x260 [ 40.144494] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 40.149067] ? trace_hardirqs_on+0xbd/0x310 [ 40.153387] ? lock_release+0xa00/0xa00 [ 40.157351] ? lock_sock_nested+0xe2/0x120 [ 40.161571] ? trace_hardirqs_off_caller+0x310/0x310 [ 40.166685] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.172210] ? check_preemption_disabled+0x48/0x280 [ 40.177210] ? lock_sock_nested+0x9a/0x120 [ 40.181428] ? lock_sock_nested+0x9a/0x120 [ 40.185649] ? __local_bh_enable_ip+0x160/0x260 [ 40.190319] tipc_sendmsg+0x50/0x70 [ 40.193980] ? __tipc_sendmsg+0x1d40/0x1d40 [ 40.198299] sock_sendmsg+0xd5/0x120 [ 40.202001] ___sys_sendmsg+0x7fd/0x930 [ 40.205991] ? copy_msghdr_from_user+0x580/0x580 [ 40.210747] ? trace_hardirqs_on+0xbd/0x310 [ 40.215054] ? _raw_spin_unlock_bh+0x30/0x40 [ 40.219445] ? trace_hardirqs_off_caller+0x310/0x310 [ 40.224542] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.230064] ? __fget_light+0x2e9/0x430 [ 40.234018] ? fget_raw+0x20/0x20 [ 40.237486] ? _raw_spin_unlock_bh+0x30/0x40 [ 40.241882] ? release_sock+0x1ec/0x2c0 [ 40.245846] ? __release_sock+0x3a0/0x3a0 [ 40.249977] ? __local_bh_enable_ip+0x160/0x260 [ 40.254645] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.260164] ? sockfd_lookup_light+0xc5/0x160 [ 40.264656] __sys_sendmsg+0x11d/0x280 [ 40.268530] ? __ia32_sys_shutdown+0x80/0x80 [ 40.272927] ? __x64_sys_futex+0x47f/0x6a0 [ 40.277176] ? do_syscall_64+0x9a/0x820 [ 40.281131] ? do_syscall_64+0x9a/0x820 [ 40.285089] ? trace_hardirqs_off_caller+0x310/0x310 [ 40.290173] ? trace_hardirqs_off+0xb8/0x310 [ 40.294568] __x64_sys_sendmsg+0x78/0xb0 [ 40.298611] do_syscall_64+0x1b9/0x820 [ 40.302479] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.307845] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.312761] ? trace_hardirqs_on_caller+0x310/0x310 [ 40.317793] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.322795] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 40.329441] ? __switch_to_asm+0x40/0x70 [ 40.333512] ? __switch_to_asm+0x34/0x70 [ 40.337603] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.342437] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.347630] RIP: 0033:0x445719 [ 40.350809] Code: e8 6c b6 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 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 40.369716] RSP: 002b:00007febce0f0db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 40.377419] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000445719 [ 40.384680] RDX: 0000000000040080 RSI: 0000000020001580 RDI: 0000000000000004 [ 40.391932] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 40.399199] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 40.406455] R13: 00007ffea340d06f R14: 00007febce0f19c0 R15: 00000000006dad2c [ 40.415452] Kernel Offset: disabled [ 40.419077] Rebooting in 86400 seconds..