Warning: Permanently added '10.128.0.39' (ECDSA) to the list of known hosts. executing program executing program executing program executing program [ 36.156289] ================================================================== [ 36.163922] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 36.170861] Read of size 2 at addr ffff8881d7afed74 by task syz-executor187/6000 [ 36.178375] [ 36.179993] CPU: 1 PID: 6000 Comm: syz-executor187 Not tainted 4.20.0-rc6+ #371 [ 36.187416] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.196767] Call Trace: [ 36.199355] dump_stack+0x244/0x39d [ 36.202972] ? dump_stack_print_info.cold.1+0x20/0x20 [ 36.208142] ? printk+0xa7/0xcf [ 36.211430] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.216169] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.221274] print_address_description.cold.7+0x9/0x1ff [ 36.226620] kasan_report.cold.8+0x242/0x309 [ 36.231020] ? tipc_group_bc_cong+0x327/0x3f0 [ 36.235505] __asan_report_load2_noabort+0x14/0x20 [ 36.240420] tipc_group_bc_cong+0x327/0x3f0 [ 36.244737] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 36.249829] ? tipc_group_cong+0x5d0/0x5d0 [ 36.254046] ? remove_wait_queue+0x1a6/0x360 [ 36.258436] ? add_wait_queue+0x2b0/0x2b0 [ 36.262573] ? __local_bh_enable_ip+0x160/0x260 [ 36.267411] tipc_send_group_bcast+0x50a/0xd90 [ 36.271985] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 36.276987] ? __init_waitqueue_head+0x150/0x150 [ 36.281726] ? refill_pi_state_cache.part.8+0x310/0x310 [ 36.287076] ? mark_held_locks+0x130/0x130 [ 36.291290] ? futex_wait_setup+0x266/0x3e0 [ 36.295594] ? futex_wake+0x760/0x760 [ 36.299371] ? print_usage_bug+0xc0/0xc0 [ 36.303409] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 36.308578] __tipc_sendmsg+0xeec/0x1d40 [ 36.312622] ? futex_wait+0x5ec/0xa50 [ 36.316411] ? tipc_sendmcast+0xf50/0xf50 [ 36.320540] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 36.325713] ? zap_class+0x640/0x640 [ 36.329413] ? print_usage_bug+0xc0/0xc0 [ 36.333463] ? find_held_lock+0x36/0x1c0 [ 36.337515] ? mark_held_locks+0xc7/0x130 [ 36.341738] ? __local_bh_enable_ip+0x160/0x260 [ 36.346391] ? __local_bh_enable_ip+0x160/0x260 [ 36.351046] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 36.355631] ? trace_hardirqs_on+0xbd/0x310 [ 36.359935] ? lock_release+0xa00/0xa00 [ 36.363893] ? lock_sock_nested+0xe2/0x120 [ 36.368111] ? trace_hardirqs_off_caller+0x310/0x310 [ 36.373198] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.378840] ? check_preemption_disabled+0x48/0x280 [ 36.383832] ? lock_sock_nested+0x9a/0x120 [ 36.388046] ? lock_sock_nested+0x9a/0x120 [ 36.392291] ? __local_bh_enable_ip+0x160/0x260 [ 36.397352] tipc_sendmsg+0x50/0x70 [ 36.400977] ? __tipc_sendmsg+0x1d40/0x1d40 [ 36.405313] sock_sendmsg+0xd5/0x120 [ 36.409013] ___sys_sendmsg+0x7fd/0x930 [ 36.412971] ? find_held_lock+0x36/0x1c0 [ 36.417019] ? copy_msghdr_from_user+0x580/0x580 [ 36.421782] ? __fd_install+0x2b5/0x8f0 [ 36.425742] ? check_preemption_disabled+0x48/0x280 [ 36.430743] ? __fget_light+0x2e9/0x430 [ 36.434697] ? fget_raw+0x20/0x20 [ 36.438138] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.443694] ? __fd_install+0x2f9/0x8f0 [ 36.447661] ? get_unused_fd_flags+0x1a0/0x1a0 [ 36.452243] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.457850] ? sockfd_lookup_light+0xc5/0x160 [ 36.462341] __sys_sendmsg+0x11d/0x280 [ 36.466213] ? __ia32_sys_shutdown+0x80/0x80 [ 36.470613] ? fput+0x130/0x1a0 [ 36.473896] ? __x64_sys_futex+0x47f/0x6a0 [ 36.478119] ? do_syscall_64+0x9a/0x820 [ 36.482081] ? do_syscall_64+0x9a/0x820 [ 36.486052] ? trace_hardirqs_off_caller+0x310/0x310 [ 36.491136] __x64_sys_sendmsg+0x78/0xb0 [ 36.495177] do_syscall_64+0x1b9/0x820 [ 36.499067] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.504417] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.509326] ? trace_hardirqs_on_caller+0x310/0x310 [ 36.514321] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.519323] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 36.526073] ? __switch_to_asm+0x40/0x70 [ 36.530115] ? __switch_to_asm+0x34/0x70 [ 36.534184] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.539011] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.544179] RIP: 0033:0x446389 [ 36.547354] 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 [ 36.566235] RSP: 002b:00007fa8152e7db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 36.573923] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 36.581190] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 36.588443] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 36.595704] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 36.602956] R13: 00007ffc64be899f R14: 00007fa8152e89c0 R15: 00000000006dad2c [ 36.610215] [ 36.611823] Allocated by task 6001: [ 36.615451] save_stack+0x43/0xd0 [ 36.618887] kasan_kmalloc+0xc7/0xe0 [ 36.622579] kmem_cache_alloc_trace+0x152/0x750 [ 36.627232] tipc_group_create+0x152/0xa70 [ 36.631447] tipc_setsockopt+0x2d1/0xd70 [ 36.635489] __sys_setsockopt+0x1ba/0x3c0 [ 36.639619] __x64_sys_setsockopt+0xbe/0x150 [ 36.644028] do_syscall_64+0x1b9/0x820 [ 36.647897] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.653072] [ 36.654679] Freed by task 6001: [ 36.657941] save_stack+0x43/0xd0 [ 36.661466] __kasan_slab_free+0x102/0x150 [ 36.665689] kasan_slab_free+0xe/0x10 [ 36.669469] kfree+0xcf/0x230 [ 36.672557] tipc_group_delete+0x2e4/0x3f0 [ 36.676771] tipc_sk_leave+0x113/0x220 [ 36.680639] tipc_setsockopt+0x97d/0xd70 [ 36.684682] __sys_setsockopt+0x1ba/0x3c0 [ 36.688810] __x64_sys_setsockopt+0xbe/0x150 [ 36.693197] do_syscall_64+0x1b9/0x820 [ 36.697063] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.702227] [ 36.703831] The buggy address belongs to the object at ffff8881d7afed00 [ 36.703831] which belongs to the cache kmalloc-192 of size 192 [ 36.716472] The buggy address is located 116 bytes inside of [ 36.716472] 192-byte region [ffff8881d7afed00, ffff8881d7afedc0) [ 36.728327] The buggy address belongs to the page: [ 36.733235] page:ffffea00075ebf80 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 36.741363] flags: 0x2fffc0000000200(slab) [ 36.745577] raw: 02fffc0000000200 ffffea00075e0608 ffffea0007589d48 ffff8881da800040 [ 36.753435] raw: 0000000000000000 ffff8881d7afe000 0000000100000010 0000000000000000 [ 36.761290] page dumped because: kasan: bad access detected [ 36.766977] [ 36.768592] Memory state around the buggy address: [ 36.773498] ffff8881d7afec00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.780837] ffff8881d7afec80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.788177] >ffff8881d7afed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.795718] ^ [ 36.802708] ffff8881d7afed80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 36.810046] ffff8881d7afee00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.817413] ================================================================== [ 36.824747] Disabling lock debugging due to kernel taint [ 36.830510] Kernel panic - not syncing: panic_on_warn set ... [ 36.836413] CPU: 1 PID: 6000 Comm: syz-executor187 Tainted: G B 4.20.0-rc6+ #371 [ 36.845222] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.854570] Call Trace: [ 36.857160] dump_stack+0x244/0x39d [ 36.860768] ? dump_stack_print_info.cold.1+0x20/0x20 [ 36.865938] panic+0x2ad/0x55c [ 36.869117] ? add_taint.cold.5+0x16/0x16 [ 36.873272] ? preempt_schedule+0x4d/0x60 [ 36.877404] ? ___preempt_schedule+0x16/0x18 [ 36.881813] ? trace_hardirqs_on+0xb4/0x310 [ 36.886122] kasan_end_report+0x47/0x4f [ 36.890096] kasan_report.cold.8+0x76/0x309 [ 36.894411] ? tipc_group_bc_cong+0x327/0x3f0 [ 36.898889] __asan_report_load2_noabort+0x14/0x20 [ 36.903793] tipc_group_bc_cong+0x327/0x3f0 [ 36.908095] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 36.913176] ? tipc_group_cong+0x5d0/0x5d0 [ 36.917391] ? remove_wait_queue+0x1a6/0x360 [ 36.921785] ? add_wait_queue+0x2b0/0x2b0 [ 36.925912] ? __local_bh_enable_ip+0x160/0x260 [ 36.930562] tipc_send_group_bcast+0x50a/0xd90 [ 36.935127] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 36.940126] ? __init_waitqueue_head+0x150/0x150 [ 36.944868] ? refill_pi_state_cache.part.8+0x310/0x310 [ 36.950217] ? mark_held_locks+0x130/0x130 [ 36.954431] ? futex_wait_setup+0x266/0x3e0 [ 36.958731] ? futex_wake+0x760/0x760 [ 36.962509] ? print_usage_bug+0xc0/0xc0 [ 36.966563] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 36.971732] __tipc_sendmsg+0xeec/0x1d40 [ 36.975772] ? futex_wait+0x5ec/0xa50 [ 36.979559] ? tipc_sendmcast+0xf50/0xf50 [ 36.983709] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 36.988878] ? zap_class+0x640/0x640 [ 36.992573] ? print_usage_bug+0xc0/0xc0 [ 36.996632] ? find_held_lock+0x36/0x1c0 [ 37.000688] ? mark_held_locks+0xc7/0x130 [ 37.004814] ? __local_bh_enable_ip+0x160/0x260 [ 37.009467] ? __local_bh_enable_ip+0x160/0x260 [ 37.014116] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 37.018690] ? trace_hardirqs_on+0xbd/0x310 [ 37.022988] ? lock_release+0xa00/0xa00 [ 37.026941] ? lock_sock_nested+0xe2/0x120 [ 37.031163] ? trace_hardirqs_off_caller+0x310/0x310 [ 37.036246] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.041765] ? check_preemption_disabled+0x48/0x280 [ 37.046763] ? lock_sock_nested+0x9a/0x120 [ 37.051072] ? lock_sock_nested+0x9a/0x120 [ 37.055284] ? __local_bh_enable_ip+0x160/0x260 [ 37.059959] tipc_sendmsg+0x50/0x70 [ 37.063576] ? __tipc_sendmsg+0x1d40/0x1d40 [ 37.067898] sock_sendmsg+0xd5/0x120 [ 37.071797] ___sys_sendmsg+0x7fd/0x930 [ 37.075779] ? find_held_lock+0x36/0x1c0 [ 37.079824] ? copy_msghdr_from_user+0x580/0x580 [ 37.084561] ? __fd_install+0x2b5/0x8f0 [ 37.088625] ? check_preemption_disabled+0x48/0x280 [ 37.093639] ? __fget_light+0x2e9/0x430 [ 37.097590] ? fget_raw+0x20/0x20 [ 37.101031] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.106550] ? __fd_install+0x2f9/0x8f0 [ 37.110516] ? get_unused_fd_flags+0x1a0/0x1a0 [ 37.115083] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.120621] ? sockfd_lookup_light+0xc5/0x160 [ 37.125103] __sys_sendmsg+0x11d/0x280 [ 37.128969] ? __ia32_sys_shutdown+0x80/0x80 [ 37.133360] ? fput+0x130/0x1a0 [ 37.136618] ? __x64_sys_futex+0x47f/0x6a0 [ 37.140836] ? do_syscall_64+0x9a/0x820 [ 37.144790] ? do_syscall_64+0x9a/0x820 [ 37.148747] ? trace_hardirqs_off_caller+0x310/0x310 [ 37.153847] __x64_sys_sendmsg+0x78/0xb0 [ 37.157891] do_syscall_64+0x1b9/0x820 [ 37.161760] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.167102] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.172016] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.177129] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.182130] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 37.188777] ? __switch_to_asm+0x40/0x70 [ 37.192826] ? __switch_to_asm+0x34/0x70 [ 37.196873] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.201696] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.206863] RIP: 0033:0x446389 [ 37.210053] 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 [ 37.228947] RSP: 002b:00007fa8152e7db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 37.236831] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 37.244080] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 37.251332] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 37.258604] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 37.265854] R13: 00007ffc64be899f R14: 00007fa8152e89c0 R15: 00000000006dad2c [ 37.274219] Kernel Offset: disabled [ 37.277840] Rebooting in 86400 seconds..