Warning: Permanently added '10.128.0.5' (ECDSA) to the list of known hosts. executing program [ 43.841374] audit: type=1400 audit(1544618641.249:36): avc: denied { map } for pid=6183 comm="syz-executor589" path="/root/syz-executor589433343" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program [ 45.257948] ================================================================== [ 45.265431] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 45.272257] Read of size 2 at addr ffff8881d8032874 by task syz-executor589/6204 [ 45.279766] [ 45.281386] CPU: 0 PID: 6204 Comm: syz-executor589 Not tainted 4.20.0-rc6+ #151 [ 45.288816] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.298175] Call Trace: [ 45.300749] dump_stack+0x244/0x39d [ 45.304382] ? dump_stack_print_info.cold.1+0x20/0x20 [ 45.309584] ? printk+0xa7/0xcf [ 45.312845] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 45.317583] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 45.322668] print_address_description.cold.7+0x9/0x1ff [ 45.328016] kasan_report.cold.8+0x242/0x309 [ 45.332404] ? tipc_group_bc_cong+0x327/0x3f0 [ 45.336891] __asan_report_load2_noabort+0x14/0x20 [ 45.341821] tipc_group_bc_cong+0x327/0x3f0 [ 45.346131] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 45.351252] ? tipc_group_cong+0x5d0/0x5d0 [ 45.355474] ? remove_wait_queue+0x1a6/0x360 [ 45.359867] ? add_wait_queue+0x2b0/0x2b0 [ 45.364003] ? __local_bh_enable_ip+0x160/0x260 [ 45.368658] tipc_send_group_bcast+0x50a/0xd90 [ 45.373230] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 45.378243] ? __init_waitqueue_head+0x150/0x150 [ 45.382980] ? refill_pi_state_cache.part.8+0x310/0x310 [ 45.388347] ? mark_held_locks+0x130/0x130 [ 45.392570] ? avc_has_perm+0x469/0x7e0 [ 45.396526] ? lock_downgrade+0x900/0x900 [ 45.400660] ? check_preemption_disabled+0x48/0x280 [ 45.405664] __tipc_sendmsg+0xeec/0x1d40 [ 45.409704] ? rcu_softirq_qs+0x20/0x20 [ 45.413662] ? tipc_sendmcast+0xf50/0xf50 [ 45.417788] ? zap_class+0x640/0x640 [ 45.421479] ? print_usage_bug+0xc0/0xc0 [ 45.425526] ? find_held_lock+0x36/0x1c0 [ 45.429629] ? find_held_lock+0x36/0x1c0 [ 45.433692] ? mark_held_locks+0xc7/0x130 [ 45.437837] ? __local_bh_enable_ip+0x160/0x260 [ 45.442499] ? __local_bh_enable_ip+0x160/0x260 [ 45.447157] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 45.451731] ? trace_hardirqs_on+0xbd/0x310 [ 45.456038] ? lock_release+0xa00/0xa00 [ 45.459995] ? lock_sock_nested+0xe2/0x120 [ 45.464220] ? trace_hardirqs_off_caller+0x310/0x310 [ 45.469317] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.474838] ? check_preemption_disabled+0x48/0x280 [ 45.479837] ? lock_sock_nested+0x9a/0x120 [ 45.484074] ? lock_sock_nested+0x9a/0x120 [ 45.488445] ? __local_bh_enable_ip+0x160/0x260 [ 45.493140] tipc_sendmsg+0x50/0x70 [ 45.496749] ? __tipc_sendmsg+0x1d40/0x1d40 [ 45.501052] sock_sendmsg+0xd5/0x120 [ 45.504750] ___sys_sendmsg+0x7fd/0x930 [ 45.508709] ? find_held_lock+0x36/0x1c0 [ 45.512754] ? copy_msghdr_from_user+0x580/0x580 [ 45.517494] ? __fd_install+0x2b5/0x8f0 [ 45.521451] ? check_preemption_disabled+0x48/0x280 [ 45.526455] ? __fget_light+0x2e9/0x430 [ 45.530410] ? fget_raw+0x20/0x20 [ 45.533849] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.539364] ? __fd_install+0x2f9/0x8f0 [ 45.543319] ? get_unused_fd_flags+0x1a0/0x1a0 [ 45.547889] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.553406] ? sockfd_lookup_light+0xc5/0x160 [ 45.557894] __sys_sendmsg+0x11d/0x280 [ 45.561772] ? __ia32_sys_shutdown+0x80/0x80 [ 45.566171] ? __x64_sys_futex+0x47f/0x6a0 [ 45.570409] ? do_syscall_64+0x9a/0x820 [ 45.574367] ? do_syscall_64+0x9a/0x820 [ 45.578334] ? trace_hardirqs_off_caller+0x310/0x310 [ 45.583423] __x64_sys_sendmsg+0x78/0xb0 [ 45.587480] do_syscall_64+0x1b9/0x820 [ 45.591365] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 45.596729] ? syscall_return_slowpath+0x5e0/0x5e0 [ 45.601641] ? trace_hardirqs_on_caller+0x310/0x310 [ 45.606639] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 45.611643] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 45.618292] ? __switch_to_asm+0x40/0x70 [ 45.622332] ? __switch_to_asm+0x34/0x70 [ 45.626393] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.631231] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.636400] RIP: 0033:0x446389 [ 45.639574] 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 [ 45.658458] RSP: 002b:00007f7ef9ba0db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 45.666157] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 45.673416] RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000005 [ 45.680670] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 45.687923] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 45.695254] R13: 00007ffc89942b8f R14: 00007f7ef9ba19c0 R15: 00000000006dad2c [ 45.702529] [ 45.704143] Allocated by task 6205: [ 45.707782] save_stack+0x43/0xd0 [ 45.711245] kasan_kmalloc+0xc7/0xe0 [ 45.714942] kmem_cache_alloc_trace+0x152/0x750 [ 45.719607] tipc_group_create+0x152/0xa70 [ 45.723827] tipc_setsockopt+0x2d1/0xd70 [ 45.727867] __sys_setsockopt+0x1ba/0x3c0 [ 45.732003] __x64_sys_setsockopt+0xbe/0x150 [ 45.736390] do_syscall_64+0x1b9/0x820 [ 45.740261] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.745425] [ 45.747031] Freed by task 6205: [ 45.750290] save_stack+0x43/0xd0 [ 45.753725] __kasan_slab_free+0x102/0x150 [ 45.757938] kasan_slab_free+0xe/0x10 [ 45.761720] kfree+0xcf/0x230 [ 45.764808] tipc_group_delete+0x2e4/0x3f0 [ 45.769021] tipc_sk_leave+0x113/0x220 [ 45.772894] tipc_setsockopt+0x97d/0xd70 [ 45.776938] __sys_setsockopt+0x1ba/0x3c0 [ 45.781068] __x64_sys_setsockopt+0xbe/0x150 [ 45.785460] do_syscall_64+0x1b9/0x820 [ 45.789327] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.794491] [ 45.796104] The buggy address belongs to the object at ffff8881d8032800 [ 45.796104] which belongs to the cache kmalloc-192 of size 192 [ 45.808744] The buggy address is located 116 bytes inside of [ 45.808744] 192-byte region [ffff8881d8032800, ffff8881d80328c0) [ 45.820596] The buggy address belongs to the page: [ 45.825512] page:ffffea0007600c80 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 45.833710] flags: 0x2fffc0000000200(slab) [ 45.837938] raw: 02fffc0000000200 ffffea000717a4c8 ffffea00075fd8c8 ffff8881da800040 [ 45.845805] raw: 0000000000000000 ffff8881d8032000 0000000100000010 0000000000000000 [ 45.853664] page dumped because: kasan: bad access detected [ 45.859352] [ 45.860964] Memory state around the buggy address: [ 45.865877] ffff8881d8032700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.873228] ffff8881d8032780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.880583] >ffff8881d8032800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.887919] ^ [ 45.895019] ffff8881d8032880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.902369] ffff8881d8032900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.909709] ================================================================== [ 45.917045] Disabling lock debugging due to kernel taint [ 45.922614] Kernel panic - not syncing: panic_on_warn set ... [ 45.928529] CPU: 0 PID: 6204 Comm: syz-executor589 Tainted: G B 4.20.0-rc6+ #151 [ 45.937355] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.946696] Call Trace: [ 45.949272] dump_stack+0x244/0x39d [ 45.952896] ? dump_stack_print_info.cold.1+0x20/0x20 [ 45.958077] panic+0x2ad/0x55c [ 45.961258] ? add_taint.cold.5+0x16/0x16 [ 45.965394] ? preempt_schedule+0x4d/0x60 [ 45.969529] ? ___preempt_schedule+0x16/0x18 [ 45.973946] ? trace_hardirqs_on+0xb4/0x310 [ 45.978253] kasan_end_report+0x47/0x4f [ 45.982212] kasan_report.cold.8+0x76/0x309 [ 45.986516] ? tipc_group_bc_cong+0x327/0x3f0 [ 45.991026] __asan_report_load2_noabort+0x14/0x20 [ 45.995941] tipc_group_bc_cong+0x327/0x3f0 [ 46.000248] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 46.005336] ? tipc_group_cong+0x5d0/0x5d0 [ 46.009576] ? remove_wait_queue+0x1a6/0x360 [ 46.013972] ? add_wait_queue+0x2b0/0x2b0 [ 46.018118] ? __local_bh_enable_ip+0x160/0x260 [ 46.022781] tipc_send_group_bcast+0x50a/0xd90 [ 46.027354] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 46.032417] ? __init_waitqueue_head+0x150/0x150 [ 46.037172] ? refill_pi_state_cache.part.8+0x310/0x310 [ 46.042521] ? mark_held_locks+0x130/0x130 [ 46.046741] ? avc_has_perm+0x469/0x7e0 [ 46.050703] ? lock_downgrade+0x900/0x900 [ 46.054837] ? check_preemption_disabled+0x48/0x280 [ 46.059841] __tipc_sendmsg+0xeec/0x1d40 [ 46.063893] ? rcu_softirq_qs+0x20/0x20 [ 46.067991] ? tipc_sendmcast+0xf50/0xf50 [ 46.072129] ? zap_class+0x640/0x640 [ 46.075827] ? print_usage_bug+0xc0/0xc0 [ 46.079871] ? find_held_lock+0x36/0x1c0 [ 46.083924] ? find_held_lock+0x36/0x1c0 [ 46.087971] ? mark_held_locks+0xc7/0x130 [ 46.092113] ? __local_bh_enable_ip+0x160/0x260 [ 46.096767] ? __local_bh_enable_ip+0x160/0x260 [ 46.101431] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 46.106009] ? trace_hardirqs_on+0xbd/0x310 [ 46.110315] ? lock_release+0xa00/0xa00 [ 46.114300] ? lock_sock_nested+0xe2/0x120 [ 46.118536] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.123660] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.129193] ? check_preemption_disabled+0x48/0x280 [ 46.134225] ? lock_sock_nested+0x9a/0x120 [ 46.138454] ? lock_sock_nested+0x9a/0x120 [ 46.142696] ? __local_bh_enable_ip+0x160/0x260 [ 46.147360] tipc_sendmsg+0x50/0x70 [ 46.150971] ? __tipc_sendmsg+0x1d40/0x1d40 [ 46.155279] sock_sendmsg+0xd5/0x120 [ 46.158977] ___sys_sendmsg+0x7fd/0x930 [ 46.162941] ? find_held_lock+0x36/0x1c0 [ 46.166986] ? copy_msghdr_from_user+0x580/0x580 [ 46.171724] ? __fd_install+0x2b5/0x8f0 [ 46.175686] ? check_preemption_disabled+0x48/0x280 [ 46.180699] ? __fget_light+0x2e9/0x430 [ 46.184656] ? fget_raw+0x20/0x20 [ 46.188113] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.193631] ? __fd_install+0x2f9/0x8f0 [ 46.197588] ? get_unused_fd_flags+0x1a0/0x1a0 [ 46.202157] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.207823] ? sockfd_lookup_light+0xc5/0x160 [ 46.212307] __sys_sendmsg+0x11d/0x280 [ 46.216179] ? __ia32_sys_shutdown+0x80/0x80 [ 46.220570] ? __x64_sys_futex+0x47f/0x6a0 [ 46.224789] ? do_syscall_64+0x9a/0x820 [ 46.228747] ? do_syscall_64+0x9a/0x820 [ 46.232706] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.237792] __x64_sys_sendmsg+0x78/0xb0 [ 46.241839] do_syscall_64+0x1b9/0x820 [ 46.245709] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 46.251064] ? syscall_return_slowpath+0x5e0/0x5e0 [ 46.255981] ? trace_hardirqs_on_caller+0x310/0x310 [ 46.260980] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 46.266013] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 46.272679] ? __switch_to_asm+0x40/0x70 [ 46.276724] ? __switch_to_asm+0x34/0x70 [ 46.280769] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.285609] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.290777] RIP: 0033:0x446389 [ 46.293957] 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 [ 46.312839] RSP: 002b:00007f7ef9ba0db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 46.320527] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 46.327778] RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000005 [ 46.335028] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 46.342281] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 46.349531] R13: 00007ffc89942b8f R14: 00007f7ef9ba19c0 R15: 00000000006dad2c [ 46.357647] Kernel Offset: disabled [ 46.361267] Rebooting in 86400 seconds..