[ 28.910133] audit: type=1800 audit(1544602701.041:27): pid=5913 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 28.950961] audit: type=1800 audit(1544602701.041:28): pid=5913 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 29.732692] audit: type=1800 audit(1544602701.921:29): pid=5913 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 29.754955] audit: type=1800 audit(1544602701.921:30): pid=5913 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.64' (ECDSA) to the list of known hosts. syzkaller login: [ 38.749062] ================================================================== [ 38.756565] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 38.763291] kasan: CONFIG_KASAN_INLINE enabled [ 38.763410] Read of size 2 at addr ffff8881d7699674 by task syz-executor689/6084 [ 38.763419] [ 38.763435] CPU: 0 PID: 6084 Comm: syz-executor689 Not tainted 4.20.0-rc6+ #339 [ 38.769521] kasan: GPF could be caused by NULL-ptr deref or user memory access [ 38.775592] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.775597] Call Trace: [ 38.775618] dump_stack+0x244/0x39d [ 38.775654] ? dump_stack_print_info.cold.1+0x20/0x20 [ 38.775666] ? printk+0xa7/0xcf [ 38.775695] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.775709] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 38.775732] print_address_description.cold.7+0x9/0x1ff [ 38.775748] kasan_report.cold.8+0x242/0x309 [ 38.781995] general protection fault: 0000 [#1] PREEMPT SMP KASAN [ 38.784840] ? tipc_group_bc_cong+0x327/0x3f0 [ 38.792184] CPU: 1 PID: 6085 Comm: syz-executor689 Not tainted 4.20.0-rc6+ #339 [ 38.801529] __asan_report_load2_noabort+0x14/0x20 [ 38.804090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.807706] tipc_group_bc_cong+0x327/0x3f0 [ 38.812911] RIP: 0010:tipc_group_update_bc_members+0x38/0x1f0 [ 38.816203] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 38.820954] Code: 54 53 48 83 ec 18 89 55 c4 89 75 d0 e8 01 a3 d9 f9 49 8d 4e 72 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 89 4d c8 48 c1 ea 03 <0f> b6 14 02 48 89 c8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 76 [ 38.826039] ? tipc_group_cong+0x5d0/0x5d0 [ 38.831380] RSP: 0018:ffff8881cc88f370 EFLAGS: 00010202 [ 38.835780] ? remove_wait_queue+0x1a6/0x360 [ 38.841985] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000072 [ 38.846482] ? add_wait_queue+0x2b0/0x2b0 [ 38.853901] RDX: 000000000000000e RSI: ffffffff87a5e18f RDI: 0000000000000000 [ 38.858834] ? __local_bh_enable_ip+0x160/0x260 [ 38.868168] RBP: ffff8881cc88f3b0 R08: ffff8881c0996180 R09: ffffed103b5e5b5f [ 38.872971] tipc_send_group_bcast+0x50a/0xd90 [ 38.878836] R10: ffffed103b5e5b5f R11: ffff8881daf2dafb R12: ffff8881cc88f618 [ 38.883958] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 38.902840] R13: ffff8881c094a5dc R14: 0000000000000000 R15: 0000000000000000 [ 38.907061] ? __init_waitqueue_head+0x150/0x150 [ 38.912402] FS: 00007ffa6fd8b700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 [ 38.916795] ? refill_pi_state_cache.part.8+0x310/0x310 [ 38.924046] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 38.928187] ? mark_held_locks+0x130/0x130 [ 38.935442] CR2: 00000000004cc870 CR3: 00000001c0c07000 CR4: 00000000001406e0 [ 38.940095] ? futex_wait_setup+0x266/0x3e0 [ 38.947347] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 38.951916] ? futex_wake+0x760/0x760 [ 38.959175] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 38.964179] ? print_usage_bug+0xc0/0xc0 [ 38.971424] Call Trace: [ 38.976175] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 38.984393] tipc_send_group_bcast+0xa71/0xd90 [ 38.989761] __tipc_sendmsg+0xeec/0x1d40 [ 38.995635] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 38.999858] ? futex_wait+0x5ec/0xa50 [ 39.007590] ? __init_waitqueue_head+0x150/0x150 [ 39.011896] ? tipc_sendmcast+0xf50/0xf50 [ 39.019147] ? refill_pi_state_cache.part.8+0x310/0x310 [ 39.022943] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.030193] ? mark_held_locks+0x130/0x130 [ 39.034236] ? zap_class+0x640/0x640 [ 39.036803] ? futex_wait_setup+0x266/0x3e0 [ 39.041980] ? print_usage_bug+0xc0/0xc0 [ 39.046545] ? print_usage_bug+0xc0/0xc0 [ 39.050593] ? find_held_lock+0x36/0x1c0 [ 39.055588] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.059374] ? mark_held_locks+0xc7/0x130 [ 39.064124] __tipc_sendmsg+0xeec/0x1d40 [ 39.068253] ? __local_bh_enable_ip+0x160/0x260 [ 39.073601] ? futex_wait+0x5ec/0xa50 [ 39.078777] ? __local_bh_enable_ip+0x160/0x260 [ 39.082995] ? tipc_sendmcast+0xf50/0xf50 [ 39.086690] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 39.091011] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.095055] ? trace_hardirqs_on+0xbd/0x310 [ 39.099098] ? zap_class+0x640/0x640 [ 39.103143] ? lock_release+0xa00/0xa00 [ 39.108313] ? print_usage_bug+0xc0/0xc0 [ 39.112445] ? lock_sock_nested+0xe2/0x120 [ 39.116498] ? find_held_lock+0x36/0x1c0 [ 39.121162] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.124966] ? mark_held_locks+0xc7/0x130 [ 39.129621] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.133753] ? __local_bh_enable_ip+0x160/0x260 [ 39.138320] ? check_preemption_disabled+0x48/0x280 [ 39.143491] ? __local_bh_enable_ip+0x160/0x260 [ 39.147797] ? lock_sock_nested+0x9a/0x120 [ 39.151491] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 39.155453] ? lock_sock_nested+0x9a/0x120 [ 39.159510] ? trace_hardirqs_on+0xbd/0x310 [ 39.163729] ? __local_bh_enable_ip+0x160/0x260 [ 39.167790] ? lock_release+0xa00/0xa00 [ 39.172873] tipc_sendmsg+0x50/0x70 [ 39.177005] ? lock_sock_nested+0xe2/0x120 [ 39.182524] ? __tipc_sendmsg+0x1d40/0x1d40 [ 39.187179] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.192174] sock_sendmsg+0xd5/0x120 [ 39.196829] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.201059] ___sys_sendmsg+0x7fd/0x930 [ 39.205624] ? check_preemption_disabled+0x48/0x280 [ 39.209840] ? find_held_lock+0x36/0x1c0 [ 39.214143] ? lock_sock_nested+0x9a/0x120 [ 39.218795] ? copy_msghdr_from_user+0x580/0x580 [ 39.222752] ? lock_sock_nested+0x9a/0x120 [ 39.226364] ? __fd_install+0x2b5/0x8f0 [ 39.230579] ? __local_bh_enable_ip+0x160/0x260 [ 39.234890] ? check_preemption_disabled+0x48/0x280 [ 39.240001] tipc_sendmsg+0x50/0x70 [ 39.243694] ? __fget_light+0x2e9/0x430 [ 39.249214] ? __tipc_sendmsg+0x1d40/0x1d40 [ 39.253170] ? fget_raw+0x20/0x20 [ 39.258168] sock_sendmsg+0xd5/0x120 [ 39.262211] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.266424] ___sys_sendmsg+0x7fd/0x930 [ 39.271167] ? __fd_install+0x2f9/0x8f0 [ 39.275388] ? find_held_lock+0x36/0x1c0 [ 39.279342] ? get_unused_fd_flags+0x1a0/0x1a0 [ 39.283992] ? copy_msghdr_from_user+0x580/0x580 [ 39.288994] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.292604] ? __fd_install+0x2b5/0x8f0 [ 39.296566] ? sockfd_lookup_light+0xc5/0x160 [ 39.300869] ? check_preemption_disabled+0x48/0x280 [ 39.304302] __sys_sendmsg+0x11d/0x280 [ 39.308010] ? __fget_light+0x2e9/0x430 [ 39.313557] ? __ia32_sys_shutdown+0x80/0x80 [ 39.317529] ? fget_raw+0x20/0x20 [ 39.321515] ? fput+0x130/0x1a0 [ 39.325557] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.330136] ? __x64_sys_futex+0x47f/0x6a0 [ 39.334901] ? __fd_install+0x2f9/0x8f0 [ 39.340447] ? do_syscall_64+0x9a/0x820 [ 39.344406] ? get_unused_fd_flags+0x1a0/0x1a0 [ 39.348896] ? do_syscall_64+0x9a/0x820 [ 39.353895] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.357763] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.361719] ? sockfd_lookup_light+0xc5/0x160 [ 39.366110] __x64_sys_sendmsg+0x78/0xb0 [ 39.369560] __sys_sendmsg+0x11d/0x280 [ 39.372821] do_syscall_64+0x1b9/0x820 [ 39.378345] ? __ia32_sys_shutdown+0x80/0x80 [ 39.382568] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.386525] ? fput+0x130/0x1a0 [ 39.390484] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.395060] ? __x64_sys_futex+0x47f/0x6a0 [ 39.399015] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.404537] ? do_syscall_64+0x9a/0x820 [ 39.409621] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.414114] ? do_syscall_64+0x9a/0x820 [ 39.418160] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.422044] ? trace_hardirqs_off_caller+0x310/0x310 [ 39.425916] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.430313] __x64_sys_sendmsg+0x78/0xb0 [ 39.435662] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.439081] do_syscall_64+0x1b9/0x820 [ 39.444022] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.448234] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.453054] RIP: 0033:0x446489 [ 39.457127] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.462120] Code: e8 0c e8 ff ff 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 7b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 39.466106] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.471096] RSP: 002b:00007ffa6fd8adb8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 39.476216] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.481220] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446489 [ 39.485314] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.490146] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000006 [ 39.494032] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.499224] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 39.504595] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.507777] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dbc2c [ 39.512708] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.531599] R13: 00007ffc4209799f R14: 00007ffa6fd8b9c0 R15: 00000000006dbd2c [ 39.536441] RIP: 0033:0x446489 [ 39.544133] [ 39.549158] Code: e8 0c e8 ff ff 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 7b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 39.556418] Allocated by task 6089: [ 39.561427] RSP: 002b:00007ffa6fd8adb8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 39.568712] save_stack+0x43/0xd0 [ 39.573710] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446489 [ 39.581002] kasan_kmalloc+0xc7/0xe0 [ 39.585829] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000006 [ 39.593112] kmem_cache_alloc_trace+0x152/0x750 [ 39.598276] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 39.605558] tipc_group_create+0x152/0xa70 [ 39.608725] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dbc2c [ 39.610348] tipc_setsockopt+0x2d1/0xd70 [ 39.629269] R13: 00007ffc4209799f R14: 00007ffa6fd8b9c0 R15: 00000000006dbd2c [ 39.632913] __sys_setsockopt+0x1ba/0x3c0 [ 39.640598] Modules linked in: [ 39.644074] __x64_sys_setsockopt+0xbe/0x150 [ 39.657199] ---[ end trace 99575c47f8a73f82 ]--- [ 39.662310] do_syscall_64+0x1b9/0x820 [ 39.662327] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.662331] [ 39.662337] Freed by task 6089: [ 39.662358] save_stack+0x43/0xd0 [ 39.667254] RIP: 0010:tipc_group_update_bc_members+0x38/0x1f0 [ 39.674299] __kasan_slab_free+0x102/0x150 [ 39.674313] kasan_slab_free+0xe/0x10 [ 39.674324] kfree+0xcf/0x230 [ 39.674342] tipc_group_delete+0x2e4/0x3f0 [ 39.674354] tipc_sk_leave+0x113/0x220 [ 39.674365] tipc_setsockopt+0x97d/0xd70 [ 39.674379] __sys_setsockopt+0x1ba/0x3c0 [ 39.674398] __x64_sys_setsockopt+0xbe/0x150 [ 39.679425] Code: 54 53 48 83 ec 18 89 55 c4 89 75 d0 e8 01 a3 d9 f9 49 8d 4e 72 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 89 4d c8 48 c1 ea 03 <0f> b6 14 02 48 89 c8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 76 [ 39.685903] do_syscall_64+0x1b9/0x820 [ 39.685919] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.685923] [ 39.685942] The buggy address belongs to the object at ffff8881d7699600 [ 39.685942] which belongs to the cache kmalloc-192 of size 192 [ 39.685952] The buggy address is located 116 bytes inside of [ 39.685952] 192-byte region [ffff8881d7699600, ffff8881d76996c0) [ 39.685956] The buggy address belongs to the page: [ 39.685968] page:ffffea00075da640 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 39.685978] flags: 0x2fffc0000000200(slab) [ 39.685995] raw: 02fffc0000000200 ffffea00075debc8 ffffea00075da788 ffff8881da800040 [ 39.686011] raw: 0000000000000000 ffff8881d7699000 0000000100000010 0000000000000000 [ 39.694500] RSP: 0018:ffff8881cc88f370 EFLAGS: 00010202 [ 39.697328] page dumped because: kasan: bad access detected [ 39.697333] [ 39.697337] Memory state around the buggy address: [ 39.697351] ffff8881d7699500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.697361] ffff8881d7699580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.697374] >ffff8881d7699600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.702037] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000072 [ 39.704702] ^ [ 39.704714] ffff8881d7699680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.704723] ffff8881d7699700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.704728] ================================================================== [ 39.707909] Kernel panic - not syncing: panic_on_warn set ... [ 39.723217] RDX: 000000000000000e RSI: ffffffff87a5e18f RDI: 0000000000000000 [ 39.725671] Kernel Offset: disabled [ 39.951345] Rebooting in 86400 seconds..